INFO: No output directory specified (--dir) INFO: Using directory: "MAXIV_DanMAX_pxrd2d_20250426_060227" INFO: Regenerating c-file: MAXIV_DanMAX_pxrd2d.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 ./MAXIV_DanMAX_pxrd2d.c MAXIV_DanMAX_pxrd2d.instr 2025-04-26 06:03:48.997 | 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 :Filter(0):read_table-lib :Filter(1):interoff-lib :Bragg_crystal(0):perfect_crystals-lib :perfect_crystals-lib(0):read_table-lib :Mirror_toroid(0):read_table-lib :Mirror_toroid(1):reflectivity-lib :Mirror(0):read_table-lib :Mirror(1):reflectivity-lib :Mirror(2):interoff-lib :Lens_parab(0):read_table-lib :PowderN(0):read_table-lib :PowderN(1):interoff-lib 2025-04-26 06:03:48.997 | 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:03:48.998 | 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:03:48.998 | 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:03:48.998 | 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:03:48.998 | 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:03:48.998 | 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:03:48.998 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib reflectivity-lib perfect_crystals-lib monitor_nd-lib interoff-lib The instrument has 26 parameters ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: -> SPLIT _instrument_var._parameters.SPLITS at component powdern ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component Origin Component dmu is NOACC, CPUONLY=True ->FUNNEL mode enabled, SPLIT within buffer. -> GPU kernel from component src_div -> GPU kernel from component src_e -> GPU kernel from component FM1 -> GPU kernel from component FM2 -> GPU kernel from component FEMM -> GPU kernel from component oh0 -> GPU kernel from component oh_diamond_filter1 -> GPU kernel from component oh_premono_ap -> GPU kernel from component DCM0_a0 -> GPU kernel from component DCM0 -> GPU kernel from component DCM0_a1 -> GPU kernel from component DCM1_a0 -> GPU kernel from component DCM1 -> GPU kernel from component DCM1_a1 -> GPU kernel from component DMM0_a0 -> GPU kernel from component DMM0a -> GPU kernel from component DMM0b -> GPU kernel from component DMM0_a1 -> GPU kernel from component DMM1_a0 -> GPU kernel from component DMM1 -> GPU kernel from component DMM1_a1 -> GPU kernel from component oh_postmono_ap -> GPU kernel from component oh_postmono_psd -> GPU kernel from component oh_postmono_div -> GPU kernel from component oh_postmono_e -> GPU kernel from component oh_2dcrl_guard -> GPU kernel from component oh_2dcrl -> GPU kernel from component oh_end_ap -> GPU kernel from component eh0 -> GPU kernel from component eh_start_psd -> GPU kernel from component eh_start_div -> GPU kernel from component eh_start_e -> GPU kernel from component Imaging -> GPU kernel from component imaging_psd -> GPU kernel from component imaging_div -> GPU kernel from component imaging_e -> GPU kernel from component pxrd_2d_pt -> GPU kernel from component pxrd2_slit -> GPU kernel from component pxrd2_psd -> GPU kernel from component pxrd2_div -> GPU kernel from component pxrd2_e -> SPLIT within buffer at component powdern -> GPU kernel from component pxrd_2d_a -> GPU kernel from component beamstop2 -> GPU kernel from component Pilatus_2M ----------------------------------------------------------- CFLAGS= -DFUNNEL -lgsl -lgslcblas -std=c99 DEBUG: CMD: mcxtrace-antlr -I${MCXTRACE} finished INFO: Recompiling: ./MAXIV_DanMAX_pxrd2d.out DEBUG: CMD: mpicc -o ./MAXIV_DanMAX_pxrd2d.out ./MAXIV_DanMAX_pxrd2d.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 -DFUNNEL -lgsl -lgslcblas -std=c99 ./MAXIV_DanMAX_pxrd2d.c:5619:6: error: conflicting types for 'mt_srandom'; have 'void(uint32_t)' {aka 'void(unsigned int)'} 5619 | void mt_srandom(uint32_t seed) { | ^~~~~~~~~~ ./MAXIV_DanMAX_pxrd2d.c:887:6: note: previous declaration of 'mt_srandom' with type 'void(long unsigned int)' 887 | void mt_srandom (unsigned long x); | ^~~~~~~~~~ ./MAXIV_DanMAX_pxrd2d.c:5657:10: error: conflicting types for 'mt_random'; have 'uint32_t(void)' {aka 'unsigned int(void)'} 5657 | uint32_t mt_random(void) { | ^~~~~~~~~ ./MAXIV_DanMAX_pxrd2d.c:886:15: note: previous declaration of 'mt_random' with type 'long unsigned int(void)' 886 | unsigned long mt_random(void); | ^~~~~~~~~ ./MAXIV_DanMAX_pxrd2d.c: In function 'cif2hkl': ./MAXIV_DanMAX_pxrd2d.c:8115:22: warning: implicit declaration of function 'Open_File' [-Wimplicit-function-declaration] 8115 | FILE *f_infile = Open_File(infile, "r", inpath); | ^~~~~~~~~ ./MAXIV_DanMAX_pxrd2d.c:8115:22: warning: initialization of 'FILE *' from 'int' makes pointer from integer without a cast [-Wint-conversion] ./MAXIV_DanMAX_pxrd2d.c:8152:18: warning: initialization of 'FILE *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 8152 | FILE *file = Open_File(OUTFILE,"r", NULL); | ^~~~~~~~~ ./MAXIV_DanMAX_pxrd2d.c: At top level: ./MAXIV_DanMAX_pxrd2d.c:9273:9: error: conflicting types for 'Open_File'; have 'FILE *(char *, const char *, char *)' 9273 | FILE *Open_File(char *File, const char *Mode, char *Path) | ^~~~~~~~~ ./MAXIV_DanMAX_pxrd2d.c:8115:22: note: previous implicit declaration of 'Open_File' with type 'int()' 8115 | FILE *f_infile = Open_File(infile, "r", inpath); | ^~~~~~~~~ ./MAXIV_DanMAX_pxrd2d.c: In function 'reflec_Init': ./MAXIV_DanMAX_pxrd2d.c:10571:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 10571 | int N=(unsigned int)((double **) pars)[0]; | ^ INFO: call to mpicc failed with Command 'mpicc -o ./MAXIV_DanMAX_pxrd2d.out ./MAXIV_DanMAX_pxrd2d.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 -DFUNNEL -lgsl -lgslcblas -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 ./MAXIV_DanMAX_pxrd2d.out ./MAXIV_DanMAX_pxrd2d.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 -DFUNNEL -lgsl -lgslcblas -std=c99' returned non-zero exit status 1.