INFO: No output directory specified (--dir) INFO: Using directory: "MAXII_711_20250426_055628" INFO: Regenerating c-file: MAXII_711.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 ./MAXII_711.c MAXII_711.instr 2025-04-26 05:57:21.956 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Source_gaussian(0):read_table-lib :Mirror_curved(0):read_table-lib :Mirror_curved(1):reflectivity-lib :Perfect_crystal(0):read_table-lib :PowderN(0):read_table-lib :PowderN(1):interoff-lib 2025-04-26 05:57:21.956 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib reflectivity-lib interoff-lib 2025-04-26 05:57:21.956 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib reflectivity-lib interoff-lib 2025-04-26 05:57:21.957 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib reflectivity-lib interoff-lib 2025-04-26 05:57:21.957 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib reflectivity-lib line 3:2 extraneous input 'double' expecting {'__stdcall', '__cdecl', '__clrcall', '__fastcall', '__thiscall', '__vectorcall', '(', '*', '^', Identifier} 2025-04-26 05:57:24.356 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 3,2 2025-04-26 05:57:24.356 | ERROR | mccode_antlr.translators.c_listener:syntaxError:41 - ~~^ extraneous input 'double' expecting {'__stdcall', '__cdecl', '__clrcall', '__fastcall', '__thiscall', '__vectorcall', '(', '*', '^', Identifier} 2025-04-26 05:57:24.356 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - double pmul; 2025-04-26 05:57:24.356 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - double pint; 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 source_mon -> GPU kernel from component slit0 -> GPU kernel from component mirror_mount -> GPU kernel from component mirror -> GPU kernel from component mirror_exit_0 -> GPU kernel from component mirror_exit -> GPU kernel from component mirror_exit_lmon -> GPU kernel from component mirror_exit_psd -> GPU kernel from component slit_main -> GPU kernel from component mono_mount -> GPU kernel from component monochromator -> GPU kernel from component mono_exit_0 -> GPU kernel from component mono_exit -> GPU kernel from component mono_exit_lmon -> GPU kernel from component mono_exit_psd -> GPU kernel from component slit_saxs -> GPU kernel from component slit_saxs2 -> GPU kernel from component sample_mon -> GPU kernel from component sample_rot_ome -> GPU kernel from component sample_rot_chi -> GPU kernel from component sample_rot_phi -> GPU kernel from component sample -> GPU kernel from component psd4pi -> GPU kernel from component bigpsd -> GPU kernel from component bigradial -> GPU kernel from component rot_tt -> GPU kernel from component detector ----------------------------------------------------------- DEBUG: CMD: mcxtrace-antlr -I${MCXTRACE} finished INFO: Recompiling: ./MAXII_711.out DEBUG: CMD: mpicc -o ./MAXII_711.out ./MAXII_711.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 ./MAXII_711.c:5619:6: error: conflicting types for 'mt_srandom'; have 'void(uint32_t)' {aka 'void(unsigned int)'} 5619 | void mt_srandom(uint32_t seed) { | ^~~~~~~~~~ ./MAXII_711.c:887:6: note: previous declaration of 'mt_srandom' with type 'void(long unsigned int)' 887 | void mt_srandom (unsigned long x); | ^~~~~~~~~~ ./MAXII_711.c:5657:10: error: conflicting types for 'mt_random'; have 'uint32_t(void)' {aka 'unsigned int(void)'} 5657 | uint32_t mt_random(void) { | ^~~~~~~~~ ./MAXII_711.c:886:15: note: previous declaration of 'mt_random' with type 'long unsigned int(void)' 886 | unsigned long mt_random(void); | ^~~~~~~~~ ./MAXII_711.c: In function 'cif2hkl': ./MAXII_711.c:7686:22: warning: implicit declaration of function 'Open_File' [-Wimplicit-function-declaration] 7686 | FILE *f_infile = Open_File(infile, "r", inpath); | ^~~~~~~~~ ./MAXII_711.c:7686:22: warning: initialization of 'FILE *' from 'int' makes pointer from integer without a cast [-Wint-conversion] ./MAXII_711.c:7723:18: warning: initialization of 'FILE *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 7723 | FILE *file = Open_File(OUTFILE,"r", NULL); | ^~~~~~~~~ ./MAXII_711.c: At top level: ./MAXII_711.c:8672:9: error: conflicting types for 'Open_File'; have 'FILE *(char *, const char *, char *)' 8672 | FILE *Open_File(char *File, const char *Mode, char *Path) | ^~~~~~~~~ ./MAXII_711.c:7686:22: note: previous implicit declaration of 'Open_File' with type 'int()' 7686 | FILE *f_infile = Open_File(infile, "r", inpath); | ^~~~~~~~~ ./MAXII_711.c: In function 'reflec_Init': ./MAXII_711.c:9970:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 9970 | int N=(unsigned int)((double **) pars)[0]; | ^ INFO: call to mpicc failed with Command 'mpicc -o ./MAXII_711.out ./MAXII_711.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 ./MAXII_711.out ./MAXII_711.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.