loading system configuration loading override configuration from /home/nexmap/pkwi/McCode/tools/Python/mctest/../mccodelib/mcstas-test/McStas-2.x_CPU_MPICC/mccode_config.json INFO: No output directory specified (--dir) INFO: Using directory: "Union_NCrystal_mix_example_20231220_005254" INFO: Regenerating c-file: Union_NCrystal_mix_example.c DEBUG: CMD: mcstas -t -o ./Union_NCrystal_mix_example.c /home/nexmap/pkwi/TESTS/2023-12-20/McStas-2.x_CPU_MPICC_5e7/Union_NCrystal_mix_example/Union_NCrystal_mix_example.instr Info: 'NCrystal_sample' is a contributed component. CFLAGS= -Wl,-rpath,CMD(ncrystal-config --show libdir) -LCMD(ncrystal-config --show libdir) -lNCrystal -ICMD(ncrystal-config --show includedir) -I@MCCODE_LIB@/share/ -Wl,-rpath,CMD(ncrystal-config --show libdir) -LCMD(ncrystal-config --show libdir) -lNCrystal -ICMD(ncrystal-config --show includedir) 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 -Wl,-rpath,/home/nexmap/pkwi/McStas/mcstas/2.x-dev/lib -L/home/nexmap/pkwi/McStas/mcstas/2.x-dev/lib -lNCrystal -I/home/nexmap/pkwi/McStas/mcstas/2.x-dev/include -I/home/nexmap/pkwi/McStas/mcstas/2.x-dev/tools/Python/mcrun/../mccodelib/../../../share/ -Wl,-rpath,/home/nexmap/pkwi/McStas/mcstas/2.x-dev/lib -L/home/nexmap/pkwi/McStas/mcstas/2.x-dev/lib -lNCrystal -I/home/nexmap/pkwi/McStas/mcstas/2.x-dev/include In file included from /home/nexmap/pkwi/McStas/mcstas/2.x-dev/tools/Python/mcrun/../mccodelib/../../../union/NCrystal_process.comp:105: /home/nexmap/pkwi/McStas/mcstas/2.x-dev/tools/Python/mcrun/../mccodelib/../../../share/Union_functions.c: In function ‘write_tagging_tree’: /home/nexmap/pkwi/McStas/mcstas/2.x-dev/tools/Python/mcrun/../mccodelib/../../../share/Union_functions.c:1604: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 mccode-r.h:42: /usr/include/stdlib.h:828: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)); ~~~~~~~~~~~~~~^~~~~~~~ /home/nexmap/pkwi/McStas/mcstas/2.x-dev/tools/Python/mcrun/../mccodelib/../../../share/Union_functions.c:1613:20: warning: passing argument 1 of ‘printf_history’ from incompatible pointer type [-Wincompatible-pointer-types] printf_history(&total_history.saved_histories[history_iterate]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mccode-r.h:201:5: note: in definition of macro ‘MPI_MASTER’ In file included from /home/nexmap/pkwi/McStas/mcstas/2.x-dev/tools/Python/mcrun/../mccodelib/../../../union/NCrystal_process.comp:105: /home/nexmap/pkwi/McStas/mcstas/2.x-dev/tools/Python/mcrun/../mccodelib/../../../share/Union_functions.c:1434: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: ===