INFO: No output directory specified (--dir) INFO: Using directory: "MAXII_811_20250426_055739" INFO: Regenerating c-file: MAXII_811.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_811.c MAXII_811.instr 2025-04-26 05:58:57.848 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Source_gaussian(0):read_table-lib :Filter(0):read_table-lib :Filter(1):interoff-lib :Mirror_curved(0):read_table-lib :Mirror_curved(1):reflectivity-lib :Bragg_crystal(0):perfect_crystals-lib :perfect_crystals-lib(0):read_table-lib :Absorption_sample(0):read_table-lib :Absorption_sample(1):interoff-lib :PowderN(0):read_table-lib :PowderN(1):interoff-lib 2025-04-26 05:58:57.849 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib reflectivity-lib perfect_crystals-lib interoff-lib 2025-04-26 05:58:57.849 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib reflectivity-lib interoff-lib perfect_crystals-lib 2025-04-26 05:58:57.849 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib perfect_crystals-lib interoff-lib reflectivity-lib 2025-04-26 05:58:57.849 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib reflectivity-lib perfect_crystals-lib interoff-lib 2025-04-26 05:58:57.849 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib reflectivity-lib perfect_crystals-lib interoff-lib 2025-04-26 05:58:57.849 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib reflectivity-lib perfect_crystals-lib interoff-lib line 3:2 extraneous input 'double' expecting {'__stdcall', '__cdecl', '__clrcall', '__fastcall', '__thiscall', '__vectorcall', '(', '*', '^', Identifier} 2025-04-26 05:59:00.491 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 3,2 2025-04-26 05:59:00.491 | ERROR | mccode_antlr.translators.c_listener:syntaxError:41 - ~~^ extraneous input 'double' expecting {'__stdcall', '__cdecl', '__clrcall', '__fastcall', '__thiscall', '__vectorcall', '(', '*', '^', Identifier} 2025-04-26 05:59:00.491 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - double pmul; 2025-04-26 05:59:00.491 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - double pint; The instrument has 18 parameters ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: -> SPLIT 10 at component si_sample ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component Origin -> GPU kernel from component wiggler -> GPU kernel from component source_psd -> GPU kernel from component source_E -> GPU kernel from component source_L -> GPU kernel from component ap1 -> GPU kernel from component ap2 -> GPU kernel from component fe_c_filter -> GPU kernel from component prim_slitv -> GPU kernel from component prim_slith -> GPU kernel from component ap3 -> GPU kernel from component m_entry_psd -> GPU kernel from component m_entry_E -> GPU kernel from component m_entry_L -> GPU kernel from component mirror1_pos -> GPU kernel from component mirror1_mnt -> GPU kernel from component mirror1 -> GPU kernel from component mirror1_exit -> GPU kernel from component att_filter1 -> GPU kernel from component att_filter2 -> GPU kernel from component att_filter3 -> GPU kernel from component c_filter -> GPU kernel from component mono_lower -> GPU kernel from component mono_upper_mnt -> GPU kernel from component mono_upper -> GPU kernel from component mirror2_mnt -> GPU kernel from component mirror2 -> GPU kernel from component mirror2_exit -> GPU kernel from component be_window -> GPU kernel from component hutch_psd -> GPU kernel from component hutch_E -> GPU kernel from component hutch_E2 -> GPU kernel from component hucth_L -> GPU kernel from component xafs_slit -> GPU kernel from component I0 -> GPU kernel from component xafs_sample_pos -> GPU kernel from component xafs_sample -> GPU kernel from component I1 -> GPU kernel from component xafs_ref_sample_pos -> GPU kernel from component xafs_ref_sample -> GPU kernel from component I2 -> GPU kernel from component diff_sample_pos -> GPU kernel from component diff_sample_psd -> SPLIT within buffer at component si_sample -> GPU kernel from component tth_arm -> GPU kernel from component sphere_psd -> GPU kernel from component square_psd -> GPU kernel from component pilatus100k ----------------------------------------------------------- CFLAGS= -std=c99 DEBUG: CMD: mcxtrace-antlr -I${MCXTRACE} finished INFO: Recompiling: ./MAXII_811.out DEBUG: CMD: mpicc -o ./MAXII_811.out ./MAXII_811.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 -std=c99 ./MAXII_811.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_811.c:887:6: note: previous declaration of 'mt_srandom' with type 'void(long unsigned int)' 887 | void mt_srandom (unsigned long x); | ^~~~~~~~~~ ./MAXII_811.c:5657:10: error: conflicting types for 'mt_random'; have 'uint32_t(void)' {aka 'unsigned int(void)'} 5657 | uint32_t mt_random(void) { | ^~~~~~~~~ ./MAXII_811.c:886:15: note: previous declaration of 'mt_random' with type 'long unsigned int(void)' 886 | unsigned long mt_random(void); | ^~~~~~~~~ ./MAXII_811.c: In function 'cif2hkl': ./MAXII_811.c:7722:22: warning: implicit declaration of function 'Open_File' [-Wimplicit-function-declaration] 7722 | FILE *f_infile = Open_File(infile, "r", inpath); | ^~~~~~~~~ ./MAXII_811.c:7722:22: warning: initialization of 'FILE *' from 'int' makes pointer from integer without a cast [-Wint-conversion] ./MAXII_811.c:7759:18: warning: initialization of 'FILE *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 7759 | FILE *file = Open_File(OUTFILE,"r", NULL); | ^~~~~~~~~ ./MAXII_811.c: At top level: ./MAXII_811.c:8928:9: error: conflicting types for 'Open_File'; have 'FILE *(char *, const char *, char *)' 8928 | FILE *Open_File(char *File, const char *Mode, char *Path) | ^~~~~~~~~ ./MAXII_811.c:7722:22: note: previous implicit declaration of 'Open_File' with type 'int()' 7722 | FILE *f_infile = Open_File(infile, "r", inpath); | ^~~~~~~~~ ./MAXII_811.c: In function 'reflec_Init': ./MAXII_811.c:10226:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 10226 | int N=(unsigned int)((double **) pars)[0]; | ^ INFO: call to mpicc failed with Command 'mpicc -o ./MAXII_811.out ./MAXII_811.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 -std=c99' 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_811.out ./MAXII_811.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 -std=c99' returned non-zero exit status 1.