INFO: No output directory specified (--dir) INFO: Using directory: "ATHENA_cfgA_1mm_FEMd_20250426_054506" INFO: Regenerating c-file: ATHENA_cfgA_1mm_FEMd.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_cfgA_1mm_FEMd.c ATHENA_cfgA_1mm_FEMd.instr 2025-04-26 05:45:07.025 | 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_cfgA_1mm_FEMd/ATHENA_cfgA_1mm_FEMd.instr at 287,97 2025-04-26 05:45:07.025 | 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:45:07.026 | INFO | mccode_antlr.reader.reader:syntaxError:31 - AT(0,0,FL) RELATIVE optics_centre 2025-04-26 05:45:07.026 | INFO | mccode_antlr.reader.reader:syntaxError:31 - 2025-04-26 05:45:07.026 | INFO | mccode_antlr.reader.reader:syntaxError:31 - /*A detector that may be changed from outside this file*/ 2025-04-26 05:45:07.026 | 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:45:07.026 | ERROR | mccode_antlr.reader.reader:syntaxError:32 - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ extraneous input 'int' expecting ')' 2025-04-26 05:45:07.026 | INFO | mccode_antlr.reader.reader:syntaxError:34 - AT(0,0,FL) RELATIVE optics_centre 2025-04-26 05:45:07.026 | INFO | mccode_antlr.reader.reader:syntaxError:34 - 2025-04-26 05:45:07.027 | 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_cfgA_1mm_FEMd/ATHENA_cfgA_1mm_FEMd.instr at 287,101 2025-04-26 05:45:07.027 | 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:45:07.027 | INFO | mccode_antlr.reader.reader:syntaxError:31 - AT(0,0,FL) RELATIVE optics_centre 2025-04-26 05:45:07.027 | INFO | mccode_antlr.reader.reader:syntaxError:31 - 2025-04-26 05:45:07.027 | INFO | mccode_antlr.reader.reader:syntaxError:31 - /*A detector that may be changed from outside this file*/ 2025-04-26 05:45:07.027 | 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:45:07.027 | ERROR | mccode_antlr.reader.reader:syntaxError:32 - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ extraneous input 'NX' expecting ')' 2025-04-26 05:45:07.027 | INFO | mccode_antlr.reader.reader:syntaxError:34 - AT(0,0,FL) RELATIVE optics_centre 2025-04-26 05:45:07.027 | INFO | mccode_antlr.reader.reader:syntaxError:34 - 2025-04-26 05:45:07.028 | 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_cfgA_1mm_FEMd/ATHENA_cfgA_1mm_FEMd.instr at 287,111 2025-04-26 05:45:07.028 | 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:45:07.028 | INFO | mccode_antlr.reader.reader:syntaxError:31 - AT(0,0,FL) RELATIVE optics_centre 2025-04-26 05:45:07.028 | INFO | mccode_antlr.reader.reader:syntaxError:31 - 2025-04-26 05:45:07.028 | INFO | mccode_antlr.reader.reader:syntaxError:31 - /*A detector that may be changed from outside this file*/ 2025-04-26 05:45:07.028 | 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:45:07.029 | ERROR | mccode_antlr.reader.reader:syntaxError:32 - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ extraneous input 'int' expecting ')' 2025-04-26 05:45:07.029 | INFO | mccode_antlr.reader.reader:syntaxError:34 - AT(0,0,FL) RELATIVE optics_centre 2025-04-26 05:45:07.029 | INFO | mccode_antlr.reader.reader:syntaxError:34 - 2025-04-26 05:45:07.029 | 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_cfgA_1mm_FEMd/ATHENA_cfgA_1mm_FEMd.instr at 287,115 2025-04-26 05:45:07.029 | 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:45:07.029 | INFO | mccode_antlr.reader.reader:syntaxError:31 - AT(0,0,FL) RELATIVE optics_centre 2025-04-26 05:45:07.029 | INFO | mccode_antlr.reader.reader:syntaxError:31 - 2025-04-26 05:45:07.029 | INFO | mccode_antlr.reader.reader:syntaxError:31 - /*A detector that may be changed from outside this file*/ 2025-04-26 05:45:07.029 | 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:45:07.030 | ERROR | mccode_antlr.reader.reader:syntaxError:32 - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ extraneous input 'NY' expecting ')' 2025-04-26 05:45:07.030 | INFO | mccode_antlr.reader.reader:syntaxError:34 - AT(0,0,FL) RELATIVE optics_centre 2025-04-26 05:45:07.030 | INFO | mccode_antlr.reader.reader:syntaxError:34 - 2025-04-26 05:45:48.702 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Source_div(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:45:48.703 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2025-04-26 05:45:48.703 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to monitor_nd-lib read_table-lib interoff-lib WARNING: --> USERVAR nid is of type long long --> and may need specific per-particle initialization through an EXTEND block! The instrument has 31 parameters ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component Origin -> GPU kernel from component srca -> GPU kernel from component src -> GPU kernel from component srcoffaxis -> GPU kernel from component detector_pre_optics -> GPU kernel from component emon_preoptics -> GPU kernel from component optics_centre -> GPU kernel from component displacement_a -> GPU kernel from component a_1 -> GPU kernel from component misalign_rot_p -> GPU kernel from component ref_p -> GPU kernel from component mm_p_1 -> GPU kernel from component det_mid_optics -> GPU kernel from component emon_mid_optics -> GPU kernel from component misalign_rot_h -> GPU kernel from component ref_h -> GPU kernel from component mm_h_1 -> GPU kernel from component detector_post_optics -> GPU kernel from component det_post_op_dblscat -> GPU kernel from component emon_post_optics -> GPU kernel from component emon_post_optics_dblscat -> 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 -> GPU kernel from component FLmond ----------------------------------------------------------- DEBUG: CMD: mcxtrace-antlr -I${MCXTRACE} finished INFO: Recompiling: ./ATHENA_cfgA_1mm_FEMd.out DEBUG: CMD: mpicc -o ./ATHENA_cfgA_1mm_FEMd.out ./ATHENA_cfgA_1mm_FEMd.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_cfgA_1mm_FEMd.c:5653:6: error: conflicting types for 'mt_srandom'; have 'void(uint32_t)' {aka 'void(unsigned int)'} 5653 | void mt_srandom(uint32_t seed) { | ^~~~~~~~~~ ./ATHENA_cfgA_1mm_FEMd.c:921:6: note: previous declaration of 'mt_srandom' with type 'void(long unsigned int)' 921 | void mt_srandom (unsigned long x); | ^~~~~~~~~~ ./ATHENA_cfgA_1mm_FEMd.c:5691:10: error: conflicting types for 'mt_random'; have 'uint32_t(void)' {aka 'unsigned int(void)'} 5691 | uint32_t mt_random(void) { | ^~~~~~~~~ ./ATHENA_cfgA_1mm_FEMd.c:920:15: note: previous declaration of 'mt_random' with type 'long unsigned int(void)' 920 | unsigned long mt_random(void); | ^~~~~~~~~ ./ATHENA_cfgA_1mm_FEMd.c: In function '_user_focal_detector_setpos': ./ATHENA_cfgA_1mm_FEMd.c:14274:49: warning: passing argument 1 of 'stracpy' makes pointer from integer without a cast [-Wint-conversion] 14274 | stracpy(_user_focal_detector_var._parameters.nx, (("")), 16384); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ | | | int ./ATHENA_cfgA_1mm_FEMd.c:2143:21: note: expected 'char *' but argument is of type 'int' 2143 | char *stracpy(char *destination, const char *source, size_t amount) | ~~~~~~^~~~~~~~~~~ ./ATHENA_cfgA_1mm_FEMd.c:14276:44: error: subscripted value is neither array nor pointer nor vector 14276 | _user_focal_detector_var._parameters.nx[0] = '\0'; | ^ ./ATHENA_cfgA_1mm_FEMd.c:14279:49: warning: passing argument 1 of 'stracpy' makes pointer from integer without a cast [-Wint-conversion] 14279 | stracpy(_user_focal_detector_var._parameters.ny, (("")), 16384); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ | | | int ./ATHENA_cfgA_1mm_FEMd.c:2143:21: note: expected 'char *' but argument is of type 'int' 2143 | char *stracpy(char *destination, const char *source, size_t amount) | ~~~~~~^~~~~~~~~~~ ./ATHENA_cfgA_1mm_FEMd.c:14281:44: error: subscripted value is neither array nor pointer nor vector 14281 | _user_focal_detector_var._parameters.ny[0] = '\0'; | ^ INFO: call to mpicc failed with Command 'mpicc -o ./ATHENA_cfgA_1mm_FEMd.out ./ATHENA_cfgA_1mm_FEMd.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_cfgA_1mm_FEMd.out ./ATHENA_cfgA_1mm_FEMd.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.