INFO: No output directory specified (--dir) INFO: Using directory: "Test_FluoPowder_20250426_065024" INFO: Regenerating c-file: Test_FluoPowder.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_FluoPowder.c Test_FluoPowder.instr 2025-04-26 06:51:20.390 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Source_flat(0):read_table-lib :PowderN(0):read_table-lib :PowderN(1):interoff-lib :Single_crystal(0):read_table-lib :Single_crystal(1):interoff-lib :FluoPowder(0):read_table-lib :FluoPowder(1):interoff-lib :Fluorescence(0):read_table-lib :Monitor_nD(0):monitor_nd-lib :Monitor_nD(1):read_table-lib :Monitor_nD(2):interoff-lib 2025-04-26 06:51:20.391 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2025-04-26 06:51:20.391 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2025-04-26 06:51:20.391 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2025-04-26 06:51:20.391 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib monitor_nd-lib 2025-04-26 06:51:20.391 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2025-04-26 06:51:20.391 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2025-04-26 06:51:24.930 | INFO | mccode_antlr.translators.c_listener:visitDeclarator:341 - Could not convert an integer from ('XRAYLIB_LINES_MAX+1',) due to invalid literal for int() with base 10: 'XRAYLIB_LINES_MAX+1' line 2:2 extraneous input '%' expecting {, '__extension__', '__m128', '__m128d', '__m128i', '__typeof__', '__inline__', '__stdcall', '__declspec', '__cdecl', '__clrcall', '__fastcall', '__thiscall', '__vectorcall', '__attribute__', 'auto', 'char', 'const', 'double', 'enum', 'extern', 'float', 'inline', 'int', 'long', 'register', 'restrict', 'short', 'signed', 'static', 'struct', 'typedef', 'union', 'unsigned', 'void', 'volatile', '_Alignas', '_Atomic', '_Bool', '_Complex', '_Noreturn', '_Static_assert', '_Thread_local', '(', '*', '^', ';', Identifier} 2025-04-26 06:51:24.934 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 2,2 2025-04-26 06:51:24.934 | ERROR | mccode_antlr.translators.c_listener:syntaxError:41 - ~~^ extraneous input '%' expecting {, '__extension__', '__m128', '__m128d', '__m128i', '__typeof__', '__inline__', '__stdcall', '__declspec', '__cdecl', '__clrcall', '__fastcall', '__thiscall', '__vectorcall', '__attribute__', 'auto', 'char', 'const', 'double', 'enum', 'extern', 'float', 'inline', 'int', 'long', 'register', 'restrict', 'short', 'signed', 'static', 'struct', 'typedef', 'union', 'unsigned', 'void', 'volatile', '_Alignas', '_Atomic', '_Bool', '_Complex', '_Noreturn', '_Static_assert', '_Thread_local', '(', '*', '^', ';', Identifier} 2025-04-26 06:51:24.934 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - 2025-04-26 06:51:24.935 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - #ifndef FLUORESCENCE_DECL line 2:11 no viable alternative at input 'include "interoff-lib"' 2025-04-26 06:51:24.956 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 2,11 2025-04-26 06:51:24.957 | ERROR | mccode_antlr.translators.c_listener:syntaxError:41 - ~~~~~~~~~~~^ no viable alternative at input 'include "interoff-lib"' 2025-04-26 06:51:24.957 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - 2025-04-26 06:51:24.957 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - #ifndef FLUORESCENCE_DECL 2025-04-26 06:51:25.098 | INFO | mccode_antlr.translators.c_listener:visitDeclarator:341 - Could not convert an integer from ('XRAYLIB_LINES_MAX+1',) due to invalid literal for int() with base 10: 'XRAYLIB_LINES_MAX+1' 2025-04-26 06:51:25.203 | INFO | mccode_antlr.translators.c_listener:visitDeclarator:341 - Could not convert an integer from ('MCSX_REFL_SLIST_SIZE',) due to invalid literal for int() with base 10: 'MCSX_REFL_SLIST_SIZE' The instrument has 5 parameters ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: -> SPLIT 10 at component sample_cradle ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component Origin -> GPU kernel from component src -> SPLIT within buffer at component sample_cradle -> GPU kernel from component Pow -> GPU kernel from component SX Component FL_pow is NOACC, CPUONLY=True ->FUNNEL mode enabled, SPLIT within buffer. Component Fluo is NOACC, CPUONLY=True ->FUNNEL mode enabled, SPLIT within buffer. -> CPU section from component Fluo Component FluoG is NOACC, CPUONLY=True ->FUNNEL mode enabled, SPLIT within buffer. -> CPU section from component FluoG -> GPU kernel from component Sph_mon -> GPU kernel from component Sph_mon_pow -> GPU kernel from component Sph_mon_flu -> GPU kernel from component E_mon -> GPU kernel from component E_mon_pow -> GPU kernel from component E_mon_flu ----------------------------------------------------------- CFLAGS= -lxrl -DUSE_OFF -DFUNNEL DEBUG: CMD: mcxtrace-antlr -I${MCXTRACE} finished INFO: Recompiling: ./Test_FluoPowder.out DEBUG: CMD: mpicc -o ./Test_FluoPowder.out ./Test_FluoPowder.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 -lxrl -DUSE_OFF -DFUNNEL ./Test_FluoPowder.c:5624:6: error: conflicting types for 'mt_srandom'; have 'void(uint32_t)' {aka 'void(unsigned int)'} 5624 | void mt_srandom(uint32_t seed) { | ^~~~~~~~~~ ./Test_FluoPowder.c:892:6: note: previous declaration of 'mt_srandom' with type 'void(long unsigned int)' 892 | void mt_srandom (unsigned long x); | ^~~~~~~~~~ ./Test_FluoPowder.c:5662:10: error: conflicting types for 'mt_random'; have 'uint32_t(void)' {aka 'unsigned int(void)'} 5662 | uint32_t mt_random(void) { | ^~~~~~~~~ ./Test_FluoPowder.c:891:15: note: previous declaration of 'mt_random' with type 'long unsigned int(void)' 891 | unsigned long mt_random(void); | ^~~~~~~~~ ./Test_FluoPowder.c: In function 'cif2hkl': ./Test_FluoPowder.c:7667:22: warning: implicit declaration of function 'Open_File' [-Wimplicit-function-declaration] 7667 | FILE *f_infile = Open_File(infile, "r", inpath); | ^~~~~~~~~ ./Test_FluoPowder.c:7667:22: warning: initialization of 'FILE *' from 'int' makes pointer from integer without a cast [-Wint-conversion] ./Test_FluoPowder.c:7704:18: warning: initialization of 'FILE *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 7704 | FILE *file = Open_File(OUTFILE,"r", NULL); | ^~~~~~~~~ ./Test_FluoPowder.c: In function 'fluo_get_material': ./Test_FluoPowder.c:9547:18: warning: initialization of 'FILE *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 9547 | FILE *file = Open_File(filename, "r", NULL); | ^~~~~~~~~ ./Test_FluoPowder.c: At top level: ./Test_FluoPowder.c:9624:3: error: expected identifier or '(' before '%' token 9624 | %include "interoff-lib" // for OFF/PLY geometry | ^ ./Test_FluoPowder.c:9879:34: error: field '_parameters' has incomplete type 9879 | _class_Progress_bar_parameters _parameters; | ^~~~~~~~~~~ ./Test_FluoPowder.c:10518:9: error: conflicting types for 'Open_File'; have 'FILE *(char *, const char *, char *)' 10518 | FILE *Open_File(char *File, const char *Mode, char *Path) | ^~~~~~~~~ ./Test_FluoPowder.c:7667:22: note: previous implicit declaration of 'Open_File' with type 'int()' 7667 | FILE *f_infile = Open_File(infile, "r", inpath); | ^~~~~~~~~ INFO: call to mpicc failed with Command 'mpicc -o ./Test_FluoPowder.out ./Test_FluoPowder.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 -lxrl -DUSE_OFF -DFUNNEL' 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_FluoPowder.out ./Test_FluoPowder.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 -lxrl -DUSE_OFF -DFUNNEL' returned non-zero exit status 1.