INFO: No output directory specified (--dir) INFO: Using directory: "vinput2mcpl_20250506_034604" INFO: Regenerating c-file: vinput2mcpl.c DEBUG: CMD: /home/runner/work/McCode/McCode/install_mcstas/bin/mcstas -t -o ./vinput2mcpl.c vinput2mcpl.instr Warning: 'Virtual_input' is an obsolete component (not maintained). CFLAGS= -DFUNNEL @MCPLFLAGS@ ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: Component virtual_output is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. -> CPU section from component virtual_output -> GPU kernel from component mcpl_output ----------------------------------------------------------- DEBUG: CMD: /home/runner/work/McCode/McCode/install_mcstas/bin/mcstas finished INFO: Recompiling: ./vinput2mcpl.out --> launching cmd: mcpl-config --show buildflags DEBUG: CMD: mpicc -o ./vinput2mcpl.out ./vinput2mcpl.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 -DFUNNEL -Wl,-rpath,/opt/hostedtoolcache/Python/3.12.10/x64/lib/python3.12/site-packages/_mcpl_core/data/lib -Wl,/opt/hostedtoolcache/Python/3.12.10/x64/lib/python3.12/site-packages/_mcpl_core/data/lib/libmcpl.so -I/opt/hostedtoolcache/Python/3.12.10/x64/lib/python3.12/site-packages/_mcpl_core/data/include ./vinput2mcpl.c: In function ‘class_MCPL_output_init’: ./vinput2mcpl.c:9145:17: warning: zero-length gnu_printf format string [-Wformat-zero-length] 9145 | sprintf(tmpstr, ""); | ^~ ./vinput2mcpl.c:9238:8: warning: format not a string literal and no format arguments [-Wformat-security] 9238 | MPI_MASTER( | ^~~~~~~~~~ ./vinput2mcpl.c: In function ‘class_MCPL_output_finally’: ./vinput2mcpl.c:10565:5: warning: format not a string literal and no format arguments [-Wformat-security] 10565 | sprintf(finalfile,merge_outfilename); | ^~~~~~~ ./vinput2mcpl.c: In function ‘detector_import’: ./vinput2mcpl.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 file included from /usr/include/stdio.h:980, from ./vinput2mcpl.c:272: In function ‘snprintf’, inlined from ‘detector_import’ at ./vinput2mcpl.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 ()); | ~~~~~~~~~~~~~~~~~ ./vinput2mcpl.c: In function ‘Open_File’: ./vinput2mcpl.c:7259:41: warning: ‘__snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=] 7259 | snprintf(path, 1024, "%s%c%s", dir, MC_PATHSEP_C, File); | ^ In function ‘snprintf’, inlined from ‘Open_File’ at ./vinput2mcpl.c:7259: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 ()); | ~~~~~~~~~~~~~~~~~ ./vinput2mcpl.c: In function ‘Open_File’: ./vinput2mcpl.c:7274:41: warning: ‘__snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=] 7274 | snprintf(path, 1024, "%s%c%s", dir, MC_PATHSEP_C, File); | ^ In function ‘snprintf’, inlined from ‘Open_File’ at ./vinput2mcpl.c:7274: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 ()); | ~~~~~~~~~~~~~~~~~ ./vinput2mcpl.c: In function ‘Open_File’: ./vinput2mcpl.c:7282:37: warning: ‘__snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=] 7282 | snprintf(path, 1024, "%s%c%s", dir, MC_PATHSEP_C, File); | ^ In function ‘snprintf’, inlined from ‘Open_File’ at ./vinput2mcpl.c:7282: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 ()); | ~~~~~~~~~~~~~~~~~ ./vinput2mcpl.c: In function ‘Open_File’: ./vinput2mcpl.c:7288:35: warning: ‘%s’ directive output may be truncated writing 4 bytes into a region of size between 0 and 1023 [-Wformat-truncation=] 7288 | 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 ./vinput2mcpl.c:7288: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 ()); | ~~~~~~~~~~~~~~~~~ ./vinput2mcpl.c: In function ‘Open_File’: ./vinput2mcpl.c:7294:35: warning: ‘%s’ directive output may be truncated writing 7 bytes into a region of size between 0 and 1023 [-Wformat-truncation=] 7294 | 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 ./vinput2mcpl.c:7294: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 ()); | ~~~~~~~~~~~~~~~~~ ./vinput2mcpl.c: In function ‘class_MCPL_output_init’: ./vinput2mcpl.c:9140:103: warning: ‘%s’ directive writing up to 16383 bytes into a region of size between 681 and 946 [-Wformat-overflow=] 9140 | sprintf(tmpstr, "Message(%s): You are using MCPL_output with MPI, hence you will get %i filenames %s.node_#i.mcpl{.gz} as output.\n",NAME_CURRENT_COMP,mpi_node_count,filename); | ^~ In function ‘sprintf’, inlined from ‘class_MCPL_output_init’ at ./vinput2mcpl.c:9140:5: /usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: ‘__sprintf_chk’ output between 109 and 16757 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 ()); | ~~~~~~~~~~~~~~~~~ ./vinput2mcpl.c: In function ‘class_MCPL_output_init’: ./vinput2mcpl.c:9173:45: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 234 [-Wformat-truncation=] 9173 | snprintf(line,255,"Output by COMPONENT: %s",NAME_CURRENT_COMP); | ^~ In function ‘snprintf’, inlined from ‘class_MCPL_output_init’ at ./vinput2mcpl.c:9173:5: /usr/include/x86_64-linux-gnu/bits/stdio2.h:54:10: note: ‘__snprintf_chk’ output between 22 and 277 bytes into a destination of size 255 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ ./vinput2mcpl.c: In function ‘class_MCPL_output_init’: ./vinput2mcpl.c:9233:41: warning: ‘%s’ directive output may be truncated writing up to 16383 bytes into a region of size 244 [-Wformat-truncation=] 9233 | snprintf(line,255,"userflags: %s",userflagcomment); | ^~ In function ‘snprintf’, inlined from ‘class_MCPL_output_init’ at ./vinput2mcpl.c:9233:11: /usr/include/x86_64-linux-gnu/bits/stdio2.h:54:10: note: ‘__snprintf_chk’ output between 12 and 16395 bytes into a destination of size 255 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ ./vinput2mcpl.c: In function ‘class_MCPL_output_finally’: ./vinput2mcpl.c:10578:29: warning: ‘.gz’ directive writing 3 bytes into a region of size between 1 and 1024 [-Wformat-overflow=] 10578 | sprintf(finalfilegz,"%s.gz",finalfile); | ^~~~~~~ ./vinput2mcpl.c:10578:32: note: format string is defined here 10578 | sprintf(finalfilegz,"%s.gz",finalfile); | ^~~ In function ‘sprintf’, inlined from ‘class_MCPL_output_finally’ at ./vinput2mcpl.c:10574:5: /usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: ‘__sprintf_chk’ output between 4 and 1027 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: ===