INFO: No output directory specified (--dir) INFO: Using directory: "Test_Sqw_20250426_065615" INFO: Regenerating c-file: Test_Sqw.c WARNING: Full-path code-generator "/home/nexmap/pkwi/McXtrace/mcxtrace/3.x-dev/bin/mcxtrace-antlr -I${MCXTRACE}" not found!! WARNING: Attempting replacement by "mcxtrace-antlr -I${MCXTRACE}" DEBUG: CMD: mcxtrace-antlr -I${MCXTRACE} -t -o ./Test_Sqw.c Test_Sqw.instr 2025-04-26 06:56:43.018 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Source_flat(0):read_table-lib :Isotropic_Sqw(0):read_table-lib :Isotropic_Sqw(1):interoff-lib 2025-04-26 06:56:43.019 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib 2025-04-26 06:56:43.019 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib line 1234:4 missing '}' at ')' 2025-04-26 06:56:45.835 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 1234,4 2025-04-26 06:56:45.835 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - MPI_MASTER( 2025-04-26 06:56:45.835 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (Sqw->verbose_output > 0) { 2025-04-26 06:56:45.836 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - printf( "Isotropic_Sqw: %s: Temperature computed from S(q,w) data from %s is T=%g [K].\n", 2025-04-26 06:56:45.836 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - Sqw->compname, file, T); 2025-04-26 06:56:45.836 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - ); 2025-04-26 06:56:45.836 | ERROR | mccode_antlr.translators.c_listener:syntaxError:41 - ~~~~^ missing '}' at ')' 2025-04-26 06:56:45.836 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - } 2025-04-26 06:56:45.836 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - } line 1238:2 mismatched input 'if' expecting 2025-04-26 06:56:45.845 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 1238,2 2025-04-26 06:56:45.845 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - ); 2025-04-26 06:56:45.845 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - } 2025-04-26 06:56:45.845 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - } 2025-04-26 06:56:45.845 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - 2025-04-26 06:56:45.845 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (Sqw->Temperature == 0) { 2025-04-26 06:56:45.845 | ERROR | mccode_antlr.translators.c_listener:syntaxError:41 - ~~^ mismatched input 'if' expecting 2025-04-26 06:56:45.845 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - Sqw->Temperature = T_file ? T_file : T; /* 0: not set: we use file value, else computed */ 2025-04-26 06:56:45.846 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - } else if (Sqw->Temperature ==-1) { 2025-04-26 06:56:45.917 | INFO | mccode_antlr.translators.c_listener:visitDeclarator:341 - Could not convert an integer from ('CHAR_BUF_LENGTH',) due to invalid literal for int() with base 10: 'CHAR_BUF_LENGTH' 2025-04-26 06:56:45.938 | INFO | mccode_antlr.translators.c_listener:visitDeclarator:341 - Could not convert an integer from ('w_bins',) due to invalid literal for int() with base 10: 'w_bins' 2025-04-26 06:56:45.940 | INFO | mccode_antlr.translators.c_listener:visitDeclarator:341 - Could not convert an integer from ('q_bins',) due to invalid literal for int() with base 10: 'q_bins' No initialization present? ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component Origin -> GPU kernel from component Source -> GPU kernel from component sample_cradle -> GPU kernel from component Sqw -> GPU kernel from component Sph_mon ----------------------------------------------------------- DEBUG: CMD: mcxtrace-antlr -I${MCXTRACE} finished INFO: Recompiling: ./Test_Sqw.out DEBUG: CMD: mpicc -o ./Test_Sqw.out ./Test_Sqw.c -lm -DUSE_MPI -lmpi -fno-PIC -fPIE -flto -O3 -mtune=native -march=native -fno-math-errno -ftree-vectorize -g -DNDEBUG -D_POSIX_SOURCE -std=c99 -lm ./Test_Sqw.c:5619:6: error: conflicting types for 'mt_srandom'; have 'void(uint32_t)' {aka 'void(unsigned int)'} 5619 | void mt_srandom(uint32_t seed) { | ^~~~~~~~~~ ./Test_Sqw.c:887:6: note: previous declaration of 'mt_srandom' with type 'void(long unsigned int)' 887 | void mt_srandom (unsigned long x); | ^~~~~~~~~~ ./Test_Sqw.c:5657:10: error: conflicting types for 'mt_random'; have 'uint32_t(void)' {aka 'unsigned int(void)'} 5657 | uint32_t mt_random(void) { | ^~~~~~~~~ ./Test_Sqw.c:886:15: note: previous declaration of 'mt_random' with type 'long unsigned int(void)' 886 | unsigned long mt_random(void); | ^~~~~~~~~ INFO: call to mpicc failed with Command 'mpicc -o ./Test_Sqw.out ./Test_Sqw.c -lm -DUSE_MPI -lmpi -fno-PIC -fPIE -flto -O3 -mtune=native -march=native -fno-math-errno -ftree-vectorize -g -DNDEBUG -D_POSIX_SOURCE -std=c99 -lm' returned non-zero exit status 1. Traceback (most recent call last): File "/home/nexmap/pkwi/McXtrace/mcxtrace/3.x-dev/tools/Python/mxrun/mxrun.py", line 616, in main() File "/home/nexmap/pkwi/McXtrace/mcxtrace/3.x-dev/tools/Python/mxrun/mxrun.py", line 524, in main mcstas.prepare(options) File "/home/nexmap/pkwi/McXtrace/mcxtrace/3.x-dev/tools/Python/mxrun/mccode.py", line 311, in prepare Process(lexer.quote(options.cc)).run(args) File "/home/nexmap/pkwi/McXtrace/mcxtrace/3.x-dev/tools/Python/mxrun/mccode.py", line 77, in run raise err File "/home/nexmap/pkwi/McXtrace/mcxtrace/3.x-dev/tools/Python/mxrun/mccode.py", line 73, in run proc = run(command, shell=True, check=True, text=True, capture_output=pipe) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nexmap/pkwi/McXtrace/mcxtrace/3.x-dev/miniconda3/lib/python3.12/subprocess.py", line 571, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command 'mpicc -o ./Test_Sqw.out ./Test_Sqw.c -lm -DUSE_MPI -lmpi -fno-PIC -fPIE -flto -O3 -mtune=native -march=native -fno-math-errno -ftree-vectorize -g -DNDEBUG -D_POSIX_SOURCE -std=c99 -lm' returned non-zero exit status 1.