INFO: No output directory specified (--dir) INFO: Using directory: "SOLEIL_SIXS_20250426_062334" INFO: Regenerating c-file: SOLEIL_SIXS.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 ./SOLEIL_SIXS.c SOLEIL_SIXS.instr 2025-04-26 06:24:22.655 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Monitor_nD(0):monitor_nd-lib :Monitor_nD(1):read_table-lib :Monitor_nD(2):interoff-lib :Bragg_crystal(0):perfect_crystals-lib :perfect_crystals-lib(0):read_table-lib :Mirror_curved(0):read_table-lib :Mirror_curved(1):reflectivity-lib :Single_crystal(0):read_table-lib :Single_crystal(1):interoff-lib 2025-04-26 06:24:22.655 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib reflectivity-lib perfect_crystals-lib monitor_nd-lib interoff-lib 2025-04-26 06:24:22.655 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib reflectivity-lib perfect_crystals-lib interoff-lib monitor_nd-lib 2025-04-26 06:24:22.655 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib reflectivity-lib monitor_nd-lib interoff-lib perfect_crystals-lib 2025-04-26 06:24:22.656 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib perfect_crystals-lib monitor_nd-lib interoff-lib reflectivity-lib 2025-04-26 06:24:26.487 | 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 10 parameters ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: -> SPLIT 10 at component sample_stage ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component origin Component Source_U20 is NOACC, CPUONLY=True ->FUNNEL mode enabled, SPLIT within buffer. -> GPU kernel from component mon_src_e -> GPU kernel from component slit -> GPU kernel from component slit_mon_xy -> GPU kernel from component DCM_location -> GPU kernel from component dcm_xtal0 -> GPU kernel from component dcm0 -> GPU kernel from component dcm_xtal1 -> GPU kernel from component dcm1 -> GPU kernel from component mon_dcm_e -> GPU kernel from component mon_dcm_xy -> GPU kernel from component M1_location -> GPU kernel from component M1_rotated -> GPU kernel from component M1 -> GPU kernel from component M1_out -> GPU kernel from component M2_location -> GPU kernel from component M2_rotated -> GPU kernel from component M2 -> GPU kernel from component M2_out -> SPLIT within buffer at component sample_stage -> GPU kernel from component sx_layer -> GPU kernel from component sx_bulk -> GPU kernel from component sample_out -> GPU kernel from component det4pi -> GPU kernel from component detector_layer -> GPU kernel from component detector_bulk ----------------------------------------------------------- CFLAGS= -lgsl -lgslcblas -DFUNNEL -std=c99 DEBUG: CMD: mcxtrace-antlr -I${MCXTRACE} finished INFO: Recompiling: ./SOLEIL_SIXS.out DEBUG: CMD: mpicc -o ./SOLEIL_SIXS.out ./SOLEIL_SIXS.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 -lgsl -lgslcblas -DFUNNEL -std=c99 ./SOLEIL_SIXS.c:5624:6: error: conflicting types for 'mt_srandom'; have 'void(uint32_t)' {aka 'void(unsigned int)'} 5624 | void mt_srandom(uint32_t seed) { | ^~~~~~~~~~ ./SOLEIL_SIXS.c:892:6: note: previous declaration of 'mt_srandom' with type 'void(long unsigned int)' 892 | void mt_srandom (unsigned long x); | ^~~~~~~~~~ ./SOLEIL_SIXS.c:5662:10: error: conflicting types for 'mt_random'; have 'uint32_t(void)' {aka 'unsigned int(void)'} 5662 | uint32_t mt_random(void) { | ^~~~~~~~~ ./SOLEIL_SIXS.c:891:15: note: previous declaration of 'mt_random' with type 'long unsigned int(void)' 891 | unsigned long mt_random(void); | ^~~~~~~~~ ./SOLEIL_SIXS.c: In function 'cif2hkl': ./SOLEIL_SIXS.c:7908:22: warning: implicit declaration of function 'Open_File' [-Wimplicit-function-declaration] 7908 | FILE *f_infile = Open_File(infile, "r", inpath); | ^~~~~~~~~ ./SOLEIL_SIXS.c:7908:22: warning: initialization of 'FILE *' from 'int' makes pointer from integer without a cast [-Wint-conversion] ./SOLEIL_SIXS.c:7945:18: warning: initialization of 'FILE *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 7945 | FILE *file = Open_File(OUTFILE,"r", NULL); | ^~~~~~~~~ ./SOLEIL_SIXS.c: At top level: ./SOLEIL_SIXS.c:9257:9: error: conflicting types for 'Open_File'; have 'FILE *(char *, const char *, char *)' 9257 | FILE *Open_File(char *File, const char *Mode, char *Path) | ^~~~~~~~~ ./SOLEIL_SIXS.c:7908:22: note: previous implicit declaration of 'Open_File' with type 'int()' 7908 | FILE *f_infile = Open_File(infile, "r", inpath); | ^~~~~~~~~ ./SOLEIL_SIXS.c: In function 'reflec_Init': ./SOLEIL_SIXS.c:10555:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 10555 | int N=(unsigned int)((double **) pars)[0]; | ^ INFO: call to mpicc failed with Command 'mpicc -o ./SOLEIL_SIXS.out ./SOLEIL_SIXS.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 -lgsl -lgslcblas -DFUNNEL -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 ./SOLEIL_SIXS.out ./SOLEIL_SIXS.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 -lgsl -lgslcblas -DFUNNEL -std=c99' returned non-zero exit status 1.