INFO: No output directory specified (--dir) INFO: Using directory: "BTsimple_20250506_032907" INFO: Regenerating c-file: BTsimple.c DEBUG: CMD: /home/runner/work/McCode/McCode/install_mcstas/bin/mcstas -t -o ./BTsimple.c BTsimple.instr CFLAGS= ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: ----------------------------------------------------------- DEBUG: CMD: /home/runner/work/McCode/McCode/install_mcstas/bin/mcstas finished INFO: Recompiling: ./BTsimple.out DEBUG: CMD: mpicc -o ./BTsimple.out ./BTsimple.c -lm -DUSE_MPI -lmpi -O2 -g -DNDEBUG -I${CONDA_PREFIX}/include -Wl,-rpath,${CONDA_PREFIX}/lib -L${CONDA_PREFIX}/lib -fno-PIC -fPIE -flto -O3 -mtune=native -march=native -fno-math-errno -ftree-vectorize -g -DNDEBUG -D_POSIX_SOURCE -std=c99 -lm ./BTsimple.c: In function ‘detector_import’: ./BTsimple.c:2487:57: warning: ‘ ’ directive output may be truncated writing 1 byte into a region of size between 0 and 1023 [-Wformat-truncation=] 2487 | snprintf(detector.variables, CHAR_BUF_LENGTH, "%s %s %s_err N", detector.xvar, c, c); | ^ In file included from /usr/include/stdio.h:980, from ./BTsimple.c:285: In function ‘snprintf’, inlined from ‘detector_import’ at ./BTsimple.c:2487:5: /usr/include/x86_64-linux-gnu/bits/stdio2.h:54:10: note: ‘__snprintf_chk’ output 9 or more bytes (assuming 1032) into a destination of size 1024 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ ./BTsimple.c: In function ‘Open_File’: ./BTsimple.c:7288:41: warning: ‘__snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=] 7288 | snprintf(path, 1024, "%s%c%s", dir, MC_PATHSEP_C, File); | ^ In function ‘snprintf’, inlined from ‘Open_File’ at ./BTsimple.c:7288:13: /usr/include/x86_64-linux-gnu/bits/stdio2.h:54:10: note: ‘__snprintf_chk’ output 2 or more bytes (assuming 1025) into a destination of size 1024 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ ./BTsimple.c: In function ‘Open_File’: ./BTsimple.c:7303:41: warning: ‘__snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=] 7303 | snprintf(path, 1024, "%s%c%s", dir, MC_PATHSEP_C, File); | ^ In function ‘snprintf’, inlined from ‘Open_File’ at ./BTsimple.c:7303:13: /usr/include/x86_64-linux-gnu/bits/stdio2.h:54:10: note: ‘__snprintf_chk’ output 2 or more bytes (assuming 1025) into a destination of size 1024 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ ./BTsimple.c: In function ‘Open_File’: ./BTsimple.c:7311:37: warning: ‘__snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=] 7311 | snprintf(path, 1024, "%s%c%s", dir, MC_PATHSEP_C, File); | ^ In function ‘snprintf’, inlined from ‘Open_File’ at ./BTsimple.c:7311:9: /usr/include/x86_64-linux-gnu/bits/stdio2.h:54:10: note: ‘__snprintf_chk’ output 2 or more bytes (assuming 1025) into a destination of size 1024 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ ./BTsimple.c: In function ‘Open_File’: ./BTsimple.c:7317:35: warning: ‘%s’ directive output may be truncated writing 4 bytes into a region of size between 0 and 1023 [-Wformat-truncation=] 7317 | snprintf(path, 1024, "%s%c%s%c%s", dir, MC_PATHSEP_C, "data", MC_PATHSEP_C, File); | ^~ ~~~~~~ In function ‘snprintf’, inlined from ‘Open_File’ at ./BTsimple.c:7317:9: /usr/include/x86_64-linux-gnu/bits/stdio2.h:54:10: note: ‘__snprintf_chk’ output 7 or more bytes (assuming 1030) into a destination of size 1024 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ ./BTsimple.c: In function ‘Open_File’: ./BTsimple.c:7323:35: warning: ‘%s’ directive output may be truncated writing 7 bytes into a region of size between 0 and 1023 [-Wformat-truncation=] 7323 | snprintf(path, 1024, "%s%c%s%c%s", dir, MC_PATHSEP_C, "contrib", MC_PATHSEP_C, File); | ^~ ~~~~~~~~~ In function ‘snprintf’, inlined from ‘Open_File’ at ./BTsimple.c:7323:9: /usr/include/x86_64-linux-gnu/bits/stdio2.h:54:10: note: ‘__snprintf_chk’ output 10 or more bytes (assuming 1033) into a destination of size 1024 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ DEBUG: CMD: mpicc finished INFO: ===