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_external_component_20230901_002740" INFO: Regenerating c-file: Union_external_component.c DEBUG: CMD: mcstas -t -o ./Union_external_component.c /home/nexmap/pkwi/TESTS/2023-09-01/McStas_CPU_MPICC_KISS_1e7/Union_external_component/Union_external_component.instr Warning: DECLARE block contains 2 assignments (= sign). Move them into an INITIALIZE section. May fail at compile. CFLAGS= -I@MCCODE_LIB@/share/ -DFUNNEL WARNING: The parameter format of Al_powder is initialized using a static {,,,} vector. -> Such static vectors support literal numbers ONLY. -> Any vector use of variables or defines must happen via a DECLARE/INITIALIZE pointer. WARNING: The parameter format of cylinder_sample_powder is initialized using a static {,,,} vector. -> Such static vectors support literal numbers ONLY. -> Any vector use of variables or defines must happen via a DECLARE/INITIALIZE pointer. ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: Component test_sample is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. -> CPU section from component test_sample -> GPU kernel from component cylinder_sample_powder Component test_sample_after is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. -> CPU section from component test_sample_after -> GPU kernel from component m4pi ----------------------------------------------------------- DEBUG: CMD: mcstas finished INFO: Recompiling: ./Union_external_component.out DEBUG: CMD: mpicc -o ./Union_external_component.out ./Union_external_component.c -lm -DUSE_MPI -lmpi -g -lm -O2 -DUSE_MPI -lmpi -std=c99 -D_POSIX_SOURCE -I/u/data/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/../mccodelib/../../../share/ -DFUNNEL ./Union_external_component.c: In function ‘write_tagging_tree’: ./Union_external_component.c:7945:105: warning: passing argument 4 of ‘qsort’ from incompatible pointer type [-Wincompatible-pointer-types] 7945 | qsort(total_history.saved_histories,total_history.used_elements,sizeof (struct saved_history_struct), Sample_compare_history_intensities); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int (*)(const struct saved_history_struct *, const struct saved_history_struct *) In file included from ./Union_external_component.c:261: /usr/include/stdlib.h:837:34: 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 *)’ 837 | __compar_fn_t __compar) __nonnull ((1, 4)); | ~~~~~~~~~~~~~~^~~~~~~~ ./Union_external_component.c:7954:20: warning: passing argument 1 of ‘printf_history’ from incompatible pointer type [-Wincompatible-pointer-types] 7954 | printf_history(&total_history.saved_histories[history_iterate]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | struct saved_history_struct * ./Union_external_component.c:517:5: note: in definition of macro ‘MPI_MASTER’ 517 | { statement; } \ | ^~~~~~~~~ ./Union_external_component.c:7775:50: note: expected ‘struct dynamic_history_list *’ but argument is of type ‘struct saved_history_struct *’ 7775 | void printf_history(struct dynamic_history_list *history) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ ./Union_external_component.c: In function ‘cif2hkl’: ./Union_external_component.c:37924:38: warning: return discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 37924 | if(!ext || ext == infile) return infile; | ^~~~~~ ./Union_external_component.c:37933:41: warning: return discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 37933 | && strcasecmp(ext, "res")) return infile; | ^~~~~~ ./Union_external_component.c:37936:26: warning: return discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 37936 | if (!OUTFILE) return infile; | ^~~~~~ /usr/bin/ld: /u/data/pkwi/tmp-nightly//ccXuu9CM.o: in function `cif2hkl': /u/data/pkwi/TESTS/2023-09-01/McStas_CPU_MPICC_KISS_1e7/Union_external_component/./Union_external_component.c:37938: warning: the use of `tmpnam' is dangerous, better use `mkstemp' DEBUG: CMD: mpicc finished INFO: ===