INFO: No output directory specified (--dir) INFO: Using directory: "Tools_ONION_20250506_032336" INFO: Regenerating c-file: Tools_ONION.c DEBUG: CMD: /home/runner/work/McCode/McCode/install_mcstas/bin/mcstas -t -o ./Tools_ONION.c Tools_ONION.instr Info: 'SNS_source' is a contributed component. CFLAGS= -DLOADPATH=GETPATH(data) @NEXUSFLAGS@ ----------------------------------------------------------- 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: ./Tools_ONION.out --> pointing path data to /home/runner/work/McCode/McCode/install_mcstas/share/mcstas/resources/data DEBUG: CMD: mpicc -o ./Tools_ONION.out ./Tools_ONION.c -lm -DUSE_MPI -lmpi -O2 -g -DNDEBUG -I${CONDA_PREFIX}/include -Wl,-rpath,${CONDA_PREFIX}/lib -L${CONDA_PREFIX}/lib -fno-PIC -fPIE -O3 -mtune=native -march=native -fno-math-errno -ftree-vectorize -g -DNDEBUG -D_POSIX_SOURCE -std=c99 -lm -DLOADPATH=/home/runner/work/McCode/McCode/install_mcstas/share/mcstas/resources/data -Wl,-rpath,/usr/lib -L/usr/lib -DUSE_NEXUS -lNeXus -I/usr/include/nexus ./Tools_ONION.c: In function ‘detector_import’: ./Tools_ONION.c:2387:18: warning: zero-length gnu_printf format string [-Wformat-zero-length] 2387 | sprintf(pref,""); | ^~ ./Tools_ONION.c: In function ‘Monitor_nD_Init’: ./Tools_ONION.c:8368:24: warning: zero-length gnu_printf format string [-Wformat-zero-length] 8368 | sprintf(pref,""); | ^~ ./Tools_ONION.c: In function ‘detector_import’: ./Tools_ONION.c:2392:36: warning: ‘%s’ directive writing up to 1023 bytes into a region of size between 1008 and 1022 [-Wformat-overflow=] 2392 | sprintf(detector.nexuscomp,"%s%d_%s",pref,index-1,detector.component); | ^~ ~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:980, from ./Tools_ONION.c:272: In function ‘sprintf’, inlined from ‘detector_import’ at ./Tools_ONION.c:2392:3: /usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: ‘__sprintf_chk’ output between 3 and 1040 bytes into a destination of size 1024 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ ./Tools_ONION.c: In function ‘detector_import’: ./Tools_ONION.c:2474:57: warning: ‘ ’ directive output may be truncated writing 1 byte into a region of size between 0 and 1023 [-Wformat-truncation=] 2474 | snprintf(detector.variables, CHAR_BUF_LENGTH, "%s %s %s_err N", detector.xvar, c, c); | ^ In function ‘snprintf’, inlined from ‘detector_import’ at ./Tools_ONION.c:2474: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 ()); | ~~~~~~~~~~~~~~~~~ ./Tools_ONION.c: In function ‘Monitor_nD_Init’: ./Tools_ONION.c:7794:33: warning: ‘%li’ directive writing between 1 and 20 bytes into a region of size between 0 and 127 [-Wformat-overflow=] 7794 | sprintf(Vars->Mon_File, "%s_%li", Vars->compcurname, t); | ^~~ In function ‘sprintf’, inlined from ‘Monitor_nD_Init’ at ./Tools_ONION.c:7794:5: /usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: ‘__sprintf_chk’ output between 3 and 149 bytes into a destination of size 128 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ ./Tools_ONION.c: In function ‘Monitor_nD_Init’: ./Tools_ONION.c:8474:42: warning: ‘%s’ directive writing up to 1023 bytes into a region of size between 1008 and 1022 [-Wformat-overflow=] 8474 | sprintf(detector.nexuscomp,"%s%d_%s",pref,Vars->compcurindex-1,detector.component); | ^~ ~~~~~~~~~~~~~~~~~~ In function ‘sprintf’, inlined from ‘Monitor_nD_Init’ at ./Tools_ONION.c:8474:2: /usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: ‘__sprintf_chk’ output between 3 and 1040 bytes into a destination of size 1024 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ ./Tools_ONION.c: In function ‘Monitor_nD_Init’: ./Tools_ONION.c:8484:37: warning: ‘ (’ directive writing 2 bytes into a region of size between 0 and 1023 [-Wformat-overflow=] 8484 | sprintf(metadatatmp,"%s %s (%ld bins)",metadata,Vars->Coord_Label[i],Vars->Coord_Bin[i]); | ^~ In function ‘sprintf’, inlined from ‘Monitor_nD_Init’ at ./Tools_ONION.c:8484:8: /usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: ‘__sprintf_chk’ output 11 or more bytes (assuming 1034) into a destination of size 1024 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ ./Tools_ONION.c: In function ‘Monitor_nD_Init’: ./Tools_ONION.c:8481:39: warning: ‘ (’ directive writing 2 bytes into a region of size between 0 and 1023 [-Wformat-overflow=] 8481 | sprintf(metadatatmp,"%s %s (%ld bins) x ",metadata,Vars->Coord_Label[i],Vars->Coord_Bin[i]); | ^~ In function ‘sprintf’, inlined from ‘Monitor_nD_Init’ at ./Tools_ONION.c:8481:10: /usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: ‘__sprintf_chk’ output 14 or more bytes (assuming 1037) into a destination of size 1024 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ ./Tools_ONION.c: In function ‘Monitor_nD_Init’: ./Tools_ONION.c:8484:37: warning: ‘ (’ directive writing 2 bytes into a region of size between 0 and 1023 [-Wformat-overflow=] 8484 | sprintf(metadatatmp,"%s %s (%ld bins)",metadata,Vars->Coord_Label[i],Vars->Coord_Bin[i]); | ^~ In function ‘sprintf’, inlined from ‘Monitor_nD_Init’ at ./Tools_ONION.c:8484:8: /usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: ‘__sprintf_chk’ output 11 or more bytes (assuming 1034) into a destination of size 1024 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ ./Tools_ONION.c: In function ‘Open_File’: ./Tools_ONION.c:10034:41: warning: ‘__snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=] 10034 | snprintf(path, 1024, "%s%c%s", dir, MC_PATHSEP_C, File); | ^ In function ‘snprintf’, inlined from ‘Open_File’ at ./Tools_ONION.c:10034: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 ()); | ~~~~~~~~~~~~~~~~~ ./Tools_ONION.c: In function ‘Open_File’: ./Tools_ONION.c:10049:41: warning: ‘__snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=] 10049 | snprintf(path, 1024, "%s%c%s", dir, MC_PATHSEP_C, File); | ^ In function ‘snprintf’, inlined from ‘Open_File’ at ./Tools_ONION.c:10049: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 ()); | ~~~~~~~~~~~~~~~~~ ./Tools_ONION.c: In function ‘Open_File’: ./Tools_ONION.c:10057:37: warning: ‘__snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=] 10057 | snprintf(path, 1024, "%s%c%s", dir, MC_PATHSEP_C, File); | ^ In function ‘snprintf’, inlined from ‘Open_File’ at ./Tools_ONION.c:10057: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 ()); | ~~~~~~~~~~~~~~~~~ ./Tools_ONION.c: In function ‘Open_File’: ./Tools_ONION.c:10063:35: warning: ‘%s’ directive output may be truncated writing 4 bytes into a region of size between 0 and 1023 [-Wformat-truncation=] 10063 | 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 ./Tools_ONION.c:10063: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 ()); | ~~~~~~~~~~~~~~~~~ ./Tools_ONION.c: In function ‘Open_File’: ./Tools_ONION.c:10069:35: warning: ‘%s’ directive output may be truncated writing 7 bytes into a region of size between 0 and 1023 [-Wformat-truncation=] 10069 | 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 ./Tools_ONION.c:10069: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 ()); | ~~~~~~~~~~~~~~~~~ ./Tools_ONION.c: In function ‘off_display’: ./Tools_ONION.c:12746:37: warning: ‘%g’ directive writing between 1 and 13 bytes into a region of size between 0 and 1023 [-Wformat-overflow=] 12746 | sprintf(pixelinfotmp, "%s,%g,%g,%g", pixelinfo, x2-cmx, y2-cmy, z2-cmz); | ^~ ./Tools_ONION.c:12746:33: note: assuming directive output of 12 bytes 12746 | sprintf(pixelinfotmp, "%s,%g,%g,%g", pixelinfo, x2-cmx, y2-cmy, z2-cmz); | ^~~~~~~~~~~~~ ./Tools_ONION.c:12746:33: note: assuming directive output of 12 bytes ./Tools_ONION.c:12746:33: note: assuming directive output of 12 bytes In function ‘sprintf’, inlined from ‘off_display’ at ./Tools_ONION.c:12746:11: /usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: ‘__sprintf_chk’ output between 7 and 1066 bytes into a destination of size 1024 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ ./Tools_ONION.c: In function ‘off_display’: ./Tools_ONION.c:12746:37: warning: ‘%g’ directive writing between 1 and 13 bytes into a region of size between 0 and 1023 [-Wformat-overflow=] 12746 | sprintf(pixelinfotmp, "%s,%g,%g,%g", pixelinfo, x2-cmx, y2-cmy, z2-cmz); | ^~ ./Tools_ONION.c:12746:33: note: assuming directive output of 12 bytes 12746 | sprintf(pixelinfotmp, "%s,%g,%g,%g", pixelinfo, x2-cmx, y2-cmy, z2-cmz); | ^~~~~~~~~~~~~ ./Tools_ONION.c:12746:33: note: assuming directive output of 12 bytes ./Tools_ONION.c:12746:33: note: assuming directive output of 12 bytes In function ‘sprintf’, inlined from ‘off_display’ at ./Tools_ONION.c:12746:11: /usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: ‘__sprintf_chk’ output between 7 and 1066 bytes into a destination of size 1024 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ ./Tools_ONION.c: In function ‘off_display’: ./Tools_ONION.c:12746:37: warning: ‘%g’ directive writing between 1 and 13 bytes into a region of size between 0 and 1023 [-Wformat-overflow=] 12746 | sprintf(pixelinfotmp, "%s,%g,%g,%g", pixelinfo, x2-cmx, y2-cmy, z2-cmz); | ^~ ./Tools_ONION.c:12746:33: note: assuming directive output of 12 bytes 12746 | sprintf(pixelinfotmp, "%s,%g,%g,%g", pixelinfo, x2-cmx, y2-cmy, z2-cmz); | ^~~~~~~~~~~~~ ./Tools_ONION.c:12746:33: note: assuming directive output of 12 bytes ./Tools_ONION.c:12746:33: note: assuming directive output of 12 bytes In function ‘sprintf’, inlined from ‘off_display’ at ./Tools_ONION.c:12746:11: /usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: ‘__sprintf_chk’ output between 7 and 1066 bytes into a destination of size 1024 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ DEBUG: CMD: mpicc finished INFO: ===