INFO: No output directory specified (--dir) INFO: Using directory: "ATHENA_1sh_W1_OA_20250426_054029" INFO: Regenerating c-file: ATHENA_1sh_W1_OA.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 ./ATHENA_1sh_W1_OA.c ATHENA_1sh_W1_OA.instr 2025-04-26 05:40:30.427 | ERROR | mccode_antlr.reader.reader:syntaxError:26 - Syntax error in parsing Instrument /home/nexmap/pkwi/xTESTS/2025-04-26/ANTLR_mpi_x_16_1e7_Linux_1e7/ATHENA_1sh_W1_OA/ATHENA_1sh_W1_OA.instr at 174,97 2025-04-26 05:40:30.428 | INFO | mccode_antlr.reader.reader:syntaxError:31 - COMPONENT ultrafocal_detector = PSD_monitor(restore_xray=1,xwidth=1e-12, yheight=1e-12, nx=201, ny=201, filename="ultrafocal_det.dat") 2025-04-26 05:40:30.428 | INFO | mccode_antlr.reader.reader:syntaxError:31 - AT(0,0,FL) RELATIVE optics_centre 2025-04-26 05:40:30.428 | INFO | mccode_antlr.reader.reader:syntaxError:31 - 2025-04-26 05:40:30.428 | INFO | mccode_antlr.reader.reader:syntaxError:31 - /*A detector that may be changed from outside this file*/ 2025-04-26 05:40:30.428 | INFO | mccode_antlr.reader.reader:syntaxError:31 - COMPONENT user_focal_detector = PSD_monitor(restore_xray=1, xwidth=XWidth, yheight=YHeight, nx=((int)NX), ny=((int)NY), filename="user_focal_detector.dat") 2025-04-26 05:40:30.428 | ERROR | mccode_antlr.reader.reader:syntaxError:32 - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ extraneous input 'int' expecting ')' 2025-04-26 05:40:30.428 | INFO | mccode_antlr.reader.reader:syntaxError:34 - AT(0,0,FL) RELATIVE optics_centre 2025-04-26 05:40:30.428 | INFO | mccode_antlr.reader.reader:syntaxError:34 - 2025-04-26 05:40:30.429 | ERROR | mccode_antlr.reader.reader:syntaxError:26 - Syntax error in parsing Instrument /home/nexmap/pkwi/xTESTS/2025-04-26/ANTLR_mpi_x_16_1e7_Linux_1e7/ATHENA_1sh_W1_OA/ATHENA_1sh_W1_OA.instr at 174,101 2025-04-26 05:40:30.429 | INFO | mccode_antlr.reader.reader:syntaxError:31 - COMPONENT ultrafocal_detector = PSD_monitor(restore_xray=1,xwidth=1e-12, yheight=1e-12, nx=201, ny=201, filename="ultrafocal_det.dat") 2025-04-26 05:40:30.429 | INFO | mccode_antlr.reader.reader:syntaxError:31 - AT(0,0,FL) RELATIVE optics_centre 2025-04-26 05:40:30.429 | INFO | mccode_antlr.reader.reader:syntaxError:31 - 2025-04-26 05:40:30.429 | INFO | mccode_antlr.reader.reader:syntaxError:31 - /*A detector that may be changed from outside this file*/ 2025-04-26 05:40:30.429 | INFO | mccode_antlr.reader.reader:syntaxError:31 - COMPONENT user_focal_detector = PSD_monitor(restore_xray=1, xwidth=XWidth, yheight=YHeight, nx=((int)NX), ny=((int)NY), filename="user_focal_detector.dat") 2025-04-26 05:40:30.429 | ERROR | mccode_antlr.reader.reader:syntaxError:32 - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ extraneous input 'NX' expecting ')' 2025-04-26 05:40:30.429 | INFO | mccode_antlr.reader.reader:syntaxError:34 - AT(0,0,FL) RELATIVE optics_centre 2025-04-26 05:40:30.430 | INFO | mccode_antlr.reader.reader:syntaxError:34 - 2025-04-26 05:40:30.430 | ERROR | mccode_antlr.reader.reader:syntaxError:26 - Syntax error in parsing Instrument /home/nexmap/pkwi/xTESTS/2025-04-26/ANTLR_mpi_x_16_1e7_Linux_1e7/ATHENA_1sh_W1_OA/ATHENA_1sh_W1_OA.instr at 174,111 2025-04-26 05:40:30.430 | INFO | mccode_antlr.reader.reader:syntaxError:31 - COMPONENT ultrafocal_detector = PSD_monitor(restore_xray=1,xwidth=1e-12, yheight=1e-12, nx=201, ny=201, filename="ultrafocal_det.dat") 2025-04-26 05:40:30.430 | INFO | mccode_antlr.reader.reader:syntaxError:31 - AT(0,0,FL) RELATIVE optics_centre 2025-04-26 05:40:30.430 | INFO | mccode_antlr.reader.reader:syntaxError:31 - 2025-04-26 05:40:30.431 | INFO | mccode_antlr.reader.reader:syntaxError:31 - /*A detector that may be changed from outside this file*/ 2025-04-26 05:40:30.431 | INFO | mccode_antlr.reader.reader:syntaxError:31 - COMPONENT user_focal_detector = PSD_monitor(restore_xray=1, xwidth=XWidth, yheight=YHeight, nx=((int)NX), ny=((int)NY), filename="user_focal_detector.dat") 2025-04-26 05:40:30.431 | ERROR | mccode_antlr.reader.reader:syntaxError:32 - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ extraneous input 'int' expecting ')' 2025-04-26 05:40:30.431 | INFO | mccode_antlr.reader.reader:syntaxError:34 - AT(0,0,FL) RELATIVE optics_centre 2025-04-26 05:40:30.431 | INFO | mccode_antlr.reader.reader:syntaxError:34 - 2025-04-26 05:40:30.431 | ERROR | mccode_antlr.reader.reader:syntaxError:26 - Syntax error in parsing Instrument /home/nexmap/pkwi/xTESTS/2025-04-26/ANTLR_mpi_x_16_1e7_Linux_1e7/ATHENA_1sh_W1_OA/ATHENA_1sh_W1_OA.instr at 174,115 2025-04-26 05:40:30.431 | INFO | mccode_antlr.reader.reader:syntaxError:31 - COMPONENT ultrafocal_detector = PSD_monitor(restore_xray=1,xwidth=1e-12, yheight=1e-12, nx=201, ny=201, filename="ultrafocal_det.dat") 2025-04-26 05:40:30.431 | INFO | mccode_antlr.reader.reader:syntaxError:31 - AT(0,0,FL) RELATIVE optics_centre 2025-04-26 05:40:30.432 | INFO | mccode_antlr.reader.reader:syntaxError:31 - 2025-04-26 05:40:30.432 | INFO | mccode_antlr.reader.reader:syntaxError:31 - /*A detector that may be changed from outside this file*/ 2025-04-26 05:40:30.432 | INFO | mccode_antlr.reader.reader:syntaxError:31 - COMPONENT user_focal_detector = PSD_monitor(restore_xray=1, xwidth=XWidth, yheight=YHeight, nx=((int)NX), ny=((int)NY), filename="user_focal_detector.dat") 2025-04-26 05:40:30.432 | ERROR | mccode_antlr.reader.reader:syntaxError:32 - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ extraneous input 'NY' expecting ')' 2025-04-26 05:40:30.432 | INFO | mccode_antlr.reader.reader:syntaxError:34 - AT(0,0,FL) RELATIVE optics_centre 2025-04-26 05:40:30.432 | INFO | mccode_antlr.reader.reader:syntaxError:34 - 2025-04-26 05:41:13.272 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Source_div(0):read_table-lib :Shell_p(0):read_table-lib :Shell_h(0):read_table-lib :Monitor_nD(0):monitor_nd-lib :Monitor_nD(1):read_table-lib :Monitor_nD(2):interoff-lib 2025-04-26 05:41:13.273 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2025-04-26 05:41:13.273 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2025-04-26 05:41:13.273 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2025-04-26 05:41:13.273 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib The instrument has 12 parameters ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component Origin -> GPU kernel from component src -> GPU kernel from component srcradsym -> GPU kernel from component srcoffaxis -> GPU kernel from component detector_pre_optics -> GPU kernel from component optics_centre -> GPU kernel from component Shell_p_1 -> GPU kernel from component midopdet -> GPU kernel from component Shell_h_1 -> GPU kernel from component detector_post_optics -> GPU kernel from component emon_post_optics -> GPU kernel from component focal_detector -> GPU kernel from component superfocal_detector -> GPU kernel from component ultrafocal_detector -> GPU kernel from component user_focal_detector -> GPU kernel from component auto_focal_detector ----------------------------------------------------------- DEBUG: CMD: mcxtrace-antlr -I${MCXTRACE} finished INFO: Recompiling: ./ATHENA_1sh_W1_OA.out DEBUG: CMD: mpicc -o ./ATHENA_1sh_W1_OA.out ./ATHENA_1sh_W1_OA.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 ./ATHENA_1sh_W1_OA.c:5619:6: error: conflicting types for 'mt_srandom'; have 'void(uint32_t)' {aka 'void(unsigned int)'} 5619 | void mt_srandom(uint32_t seed) { | ^~~~~~~~~~ ./ATHENA_1sh_W1_OA.c:887:6: note: previous declaration of 'mt_srandom' with type 'void(long unsigned int)' 887 | void mt_srandom (unsigned long x); | ^~~~~~~~~~ ./ATHENA_1sh_W1_OA.c:5657:10: error: conflicting types for 'mt_random'; have 'uint32_t(void)' {aka 'unsigned int(void)'} 5657 | uint32_t mt_random(void) { | ^~~~~~~~~ ./ATHENA_1sh_W1_OA.c:886:15: note: previous declaration of 'mt_random' with type 'long unsigned int(void)' 886 | unsigned long mt_random(void); | ^~~~~~~~~ ./ATHENA_1sh_W1_OA.c: In function '_user_focal_detector_setpos': ./ATHENA_1sh_W1_OA.c:13604:49: warning: passing argument 1 of 'stracpy' makes pointer from integer without a cast [-Wint-conversion] 13604 | stracpy(_user_focal_detector_var._parameters.nx, (("")), 16384); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ | | | int ./ATHENA_1sh_W1_OA.c:2109:21: note: expected 'char *' but argument is of type 'int' 2109 | char *stracpy(char *destination, const char *source, size_t amount) | ~~~~~~^~~~~~~~~~~ ./ATHENA_1sh_W1_OA.c:13606:44: error: subscripted value is neither array nor pointer nor vector 13606 | _user_focal_detector_var._parameters.nx[0] = '\0'; | ^ ./ATHENA_1sh_W1_OA.c:13609:49: warning: passing argument 1 of 'stracpy' makes pointer from integer without a cast [-Wint-conversion] 13609 | stracpy(_user_focal_detector_var._parameters.ny, (("")), 16384); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ | | | int ./ATHENA_1sh_W1_OA.c:2109:21: note: expected 'char *' but argument is of type 'int' 2109 | char *stracpy(char *destination, const char *source, size_t amount) | ~~~~~~^~~~~~~~~~~ ./ATHENA_1sh_W1_OA.c:13611:44: error: subscripted value is neither array nor pointer nor vector 13611 | _user_focal_detector_var._parameters.ny[0] = '\0'; | ^ INFO: call to mpicc failed with Command 'mpicc -o ./ATHENA_1sh_W1_OA.out ./ATHENA_1sh_W1_OA.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 ./ATHENA_1sh_W1_OA.out ./ATHENA_1sh_W1_OA.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.