loading system configuration loading override configuration from /home/nexmap/pkwi/McCode/tools/Python/mctest/../mccodelib/mcstas-test/McStas_CPU_MPICC_KISS/mccode_config.json INFO: No output directory specified (--dir) INFO: Using directory: "Union_NCrystal_mix_example_20230201_001957" INFO: Regenerating c-file: Union_NCrystal_mix_example.c DEBUG: CMD: mcstas -t -o ./Union_NCrystal_mix_example.c /home/nexmap/pkwi/TESTS/2023-02-01/McStas_CPU_MPICC_KISS_1e7/Union_NCrystal_mix_example/Union_NCrystal_mix_example.instr Info: 'NCrystal_sample' is a contributed component. Warning: DECLARE block contains 1 assignments (= sign). Move them into an INITIALIZE section. May fail at compile. Warning: DECLARE block contains 2 assignments (= sign). Move them into an INITIALIZE section. May fail at compile. CFLAGS= -Wl,-rpath,CMD(ncrystal-config --show libdir) -LCMD(ncrystal-config --show libdir) -lNCrystal -ICMD(ncrystal-config --show includedir) -I@MCCODE_LIB@/share/ -DFUNNEL -Wl,-rpath,CMD(ncrystal-config --show libdir) -LCMD(ncrystal-config --show libdir) -lNCrystal -ICMD(ncrystal-config --show includedir) -DFUNNEL ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: Component master is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. -> CPU section from component master -> GPU kernel from component mono_out Component powder_sample is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. -> CPU section from component powder_sample -> GPU kernel from component powder_pattern_detc ----------------------------------------------------------- INFO: Recompiling: ./Union_NCrystal_mix_example.out --> launching cmd: ncrystal-config --show libdir --> launching cmd: ncrystal-config --show libdir --> launching cmd: ncrystal-config --show includedir --> launching cmd: ncrystal-config --show libdir --> launching cmd: ncrystal-config --show libdir --> launching cmd: ncrystal-config --show includedir DEBUG: CMD: mpicc -o ./Union_NCrystal_mix_example.out ./Union_NCrystal_mix_example.c -lm -DUSE_MPI -lmpi -g -lm -O2 -DUSE_MPI -lmpi -std=c99 -D_POSIX_SOURCE -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/lib -L/u/data/pkwi/McStas/mcstas/3.x-dev/lib -lNCrystal -I/u/data/pkwi/McStas/mcstas/3.x-dev/include -I/u/data/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/../mccodelib/../../../share/ -DFUNNEL -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/lib -L/u/data/pkwi/McStas/mcstas/3.x-dev/lib -lNCrystal -I/u/data/pkwi/McStas/mcstas/3.x-dev/include -DFUNNEL ./Union_NCrystal_mix_example.c: In function ‘write_tagging_tree’: ./Union_NCrystal_mix_example.c:7782:105: warning: passing argument 4 of ‘qsort’ from incompatible pointer type [-Wincompatible-pointer-types] qsort(total_history.saved_histories,total_history.used_elements,sizeof (struct saved_history_struct), Sample_compare_history_intensities); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./Union_NCrystal_mix_example.c:230: /usr/include/stdlib.h:761:20: note: expected ‘__compar_fn_t’ {aka ‘int (*)(const void *, const void *)’} but argument is of type ‘int (*)(const struct saved_history_struct *, const struct saved_history_struct *)’ __compar_fn_t __compar) __nonnull ((1, 4)); ~~~~~~~~~~~~~~^~~~~~~~ ./Union_NCrystal_mix_example.c:7791:20: warning: passing argument 1 of ‘printf_history’ from incompatible pointer type [-Wincompatible-pointer-types] printf_history(&total_history.saved_histories[history_iterate]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./Union_NCrystal_mix_example.c:452:5: note: in definition of macro ‘MPI_MASTER’ { statement; } \ ^~~~~~~~~ ./Union_NCrystal_mix_example.c:7612:50: note: expected ‘struct dynamic_history_list *’ but argument is of type ‘struct saved_history_struct *’ void printf_history(struct dynamic_history_list *history) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ INFO: ===