Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target i686 --nodeps /builddir/build/SPECS/octave-mcxlab.spec'], chrootPath='/var/lib/mock/fedora-rawhide-i686-1672110755.581950/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.pgsn6uth:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.pgsn6uth:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '0c8babc3a52b4722a46b7abb0b511cae', '-D', '/var/lib/mock/fedora-rawhide-i686-1672110755.581950/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.pgsn6uth:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target i686 --nodeps /builddir/build/SPECS/octave-mcxlab.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: i686 Building for target i686 setting SOURCE_DATE_EPOCH=1658448000 Wrote: /builddir/build/SRPMS/octave-mcxlab-0.9.5-8.fc38.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target i686 --nodeps /builddir/build/SPECS/octave-mcxlab.spec'], chrootPath='/var/lib/mock/fedora-rawhide-i686-1672110755.581950/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.pgsn6uth:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.pgsn6uth:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'b9245a237ace4e118c98cb6ba1496c91', '-D', '/var/lib/mock/fedora-rawhide-i686-1672110755.581950/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.pgsn6uth:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target i686 --nodeps /builddir/build/SPECS/octave-mcxlab.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: i686 Building for target i686 setting SOURCE_DATE_EPOCH=1658448000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.tj8JqR + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf mcxcl-0.9.5 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/mcxcl-0.9.5.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd mcxcl-0.9.5 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -rf .git_filters deploy setup example + cp utils/cwdiffusion.m utils/getdistance.m utils/hobbysplines.m utils/image3i.m utils/islicer.m utils/loadmc2.m utils/loadmch.m utils/mcxdcsg1.m utils/mcxdettime.m utils/mcxdettpsf.m utils/mcxdetweight.m utils/mcxfluence2energy.m utils/mcxloadfile.m utils/mcxloadnii.m utils/mcxmeanpath.m utils/mcxmeanscat.m utils/mcxplotphotons.m utils/mcxplotvol.m utils/normalizemcx.m utils/serialcorr.m utils/slice3i.m utils/stacked_bar3.m utils/tddiffusion.m mcxlabcl + cat + cp LICENSE.txt COPYING + cat + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.TlBGzz + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib/gfortran/modules' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd mcxcl-0.9.5 + cd src ++ octave-config -p OCTLIBDIR + make oct LIBOPENCLDIR=/usr/lib/octave/7.3.0 xxd -i mcx_core.cl | sed 's/\([0-9a-f]\)$/\0, 0x00/' > mcx_core.clh g++ -g -pedantic -Wall -O3 -DMCX_EMBED_CL -DMCX_OPENCL -DUSE_OS_TIMER -Wno-variadic-macros -fPIC -DMCX_CONTAINER -c -fPIC -DMCX_CONTAINER -o mcx_host.o mcx_host.cpp mcx_host.cpp:154:63: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] 154 | if(cfg->isgpuinfo) MCX_FPRINTF(stdout,S_YELLOW"Platform [%d] Name %s\n"S_RESET,i,pbuf); | ^ mcx_host.cpp:221:58: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] 221 | MCX_FPRINTF(stdout,S_BLUE"============ %s device ID %d [%d of %d]: %s ============\n"S_RESET,devname[j],cuid,k+1,devnum,cuinfo.name); | ^ mcx_host.cpp:245:65: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] 245 | mcx_error(-(int)99,S_RED"ERROR: one can not mix devices between different platforms\n"S_RESET,__FILE__,__LINE__); | ^ mcx_host.cpp:734:54: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] 734 | MCX_FPRINTF(cfg->flog,S_RED"WARNING: the saved trajectory positions (%d) \ | ^ mcx_host.cpp:759:52: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] 759 | MCX_FPRINTF(cfg->flog,S_RED"WARNING: the detected photon (%d) \ | ^ mcx_host.cpp:763:47: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] 763 | MCX_FPRINTF(cfg->flog,"detected "S_BOLD""S_BLUE"%d photons"S_RESET", total: "S_BOLD""S_BLUE"%d"S_RESET"\t",detected,cfg->detectedcount+detected); | ^ mcx_host.cpp:763:64: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] 763 | MCX_FPRINTF(cfg->flog,"detected "S_BOLD""S_BLUE"%d photons"S_RESET", total: "S_BOLD""S_BLUE"%d"S_RESET"\t",detected,cfg->detectedcount+detected); | ^ mcx_host.cpp:763:72: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] 763 | MCX_FPRINTF(cfg->flog,"detected "S_BOLD""S_BLUE"%d photons"S_RESET", total: "S_BOLD""S_BLUE"%d"S_RESET"\t",detected,cfg->detectedcount+detected); | ^ mcx_host.cpp:763:91: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] 763 | MCX_FPRINTF(cfg->flog,"detected "S_BOLD""S_BLUE"%d photons"S_RESET", total: "S_BOLD""S_BLUE"%d"S_RESET"\t",detected,cfg->detectedcount+detected); | ^ mcx_host.cpp:763:108: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] 763 | MCX_FPRINTF(cfg->flog,"detected "S_BOLD""S_BLUE"%d photons"S_RESET", total: "S_BOLD""S_BLUE"%d"S_RESET"\t",detected,cfg->detectedcount+detected); | ^ mcx_host.cpp:763:116: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] 763 | MCX_FPRINTF(cfg->flog,"detected "S_BOLD""S_BLUE"%d photons"S_RESET", total: "S_BOLD""S_BLUE"%d"S_RESET"\t",detected,cfg->detectedcount+detected); | ^ mcx_host.cpp:943:28: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] 943 | MCX_FPRINTF(cfg->flog,"simulated %ld photons (%ld) with %d devices (repeat x%d)\nMCX simulation speed: "S_BOLD""S_BLUE"%.2f photon/ms"S_RESET"\n", | ^ mcx_host.cpp:943:116: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] 943 | MCX_FPRINTF(cfg->flog,"simulated %ld photons (%ld) with %d devices (repeat x%d)\nMCX simulation speed: "S_BOLD""S_BLUE"%.2f photon/ms"S_RESET"\n", | ^ mcx_host.cpp:943:124: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] 943 | MCX_FPRINTF(cfg->flog,"simulated %ld photons (%ld) with %d devices (repeat x%d)\nMCX simulation speed: "S_BOLD""S_BLUE"%.2f photon/ms"S_RESET"\n", | ^ mcx_host.cpp:947:36: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] 947 | MCX_FPRINTF(cfg->flog,"source #%d total simulated energy: %.2f\tabsorbed: "S_BOLD""S_BLUE"%5.5f%%"S_RESET"\n(loss due to initial specular reflection is excluded in the total)\n", | ^ mcx_host.cpp:947:95: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] 947 | MCX_FPRINTF(cfg->flog,"source #%d total simulated energy: %.2f\tabsorbed: "S_BOLD""S_BLUE"%5.5f%%"S_RESET"\n(loss due to initial specular reflection is excluded in the total)\n", | ^ mcx_host.cpp:947:103: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] 947 | MCX_FPRINTF(cfg->flog,"source #%d total simulated energy: %.2f\tabsorbed: "S_BOLD""S_BLUE"%5.5f%%"S_RESET"\n(loss due to initial specular reflection is excluded in the total)\n", | ^ mcx_host.cpp:951:32: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] 951 | MCX_FPRINTF(cfg->flog,"total simulated energy: %.2f\tabsorbed: "S_BOLD""S_BLUE"%5.5f%%"S_RESET"\n(loss due to initial specular reflection is excluded in the total)\n", | ^ mcx_host.cpp:951:80: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] 951 | MCX_FPRINTF(cfg->flog,"total simulated energy: %.2f\tabsorbed: "S_BOLD""S_BLUE"%5.5f%%"S_RESET"\n(loss due to initial specular reflection is excluded in the total)\n", | ^ mcx_host.cpp:951:88: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] 951 | MCX_FPRINTF(cfg->flog,"total simulated energy: %.2f\tabsorbed: "S_BOLD""S_BLUE"%5.5f%%"S_RESET"\n(loss due to initial specular reflection is excluded in the total)\n", | ^ In file included from /usr/include/CL/cl.h:20, from mcx_host.hpp:9, from mcx_host.cpp:22: /usr/include/CL/cl_version.h:22:104: note: '#pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)' 22 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)") | ^ mcx_host.cpp: In function 'void mcx_run_simulation(Config*, float*, float*)': mcx_host.cpp:353:17: warning: the address of 'devices' will never be NULL [-Waddress] 353 | if(devices == NULL){ | ^ mcx_host.cpp:296:19: note: 'devices' declared here 296 | cl_device_id devices[MAX_DEVICE]; | ^~~~~~~ mcx_host.cpp:344:91: warning: 'dimlen' is used uninitialized [-Wuninitialized] 344 | (uint)cfg->maxjumpdebug,cfg->gscatter,is2d,cfg->replaydet,cfg->srcnum}; | ^ mcx_host.cpp:289:15: note: 'dimlen' declared here 289 | cl_uint4 dimlen; | ^~~~~~ mcx_host.cpp:344:91: warning: 'cachebox' is used uninitialized [-Wuninitialized] 344 | (uint)cfg->maxjumpdebug,cfg->gscatter,is2d,cfg->replaydet,cfg->srcnum}; | ^ mcx_host.cpp:288:15: note: 'cachebox' declared here 288 | cl_uint2 cachebox; | ^~~~~~~~ gcc -g -pedantic -Wall -O3 -DMCX_EMBED_CL -DMCX_OPENCL -DUSE_OS_TIMER -std=c99 -fPIC -DMCX_CONTAINER -c -o mcx_utils.o mcx_utils.c In file included from mcx_utils.c:35: mcx_utils.c: In function 'mcx_loadconfig': mcx_utils.c:665:27: warning: format '%lu' expects argument of type 'long unsigned int *', but argument 3 has type 'size_t *' {aka 'unsigned int *'} [-Wformat=] 665 | MCX_ASSERT(fscanf(in,"%lu", &(count) )==1); | ^~~~~ ~~~~~~~~ | | | size_t * {aka unsigned int *} mcx_utils.h:18:36: note: in definition of macro 'MCX_ASSERT' 18 | #define MCX_ASSERT(x) mcx_assess((x),"assert error",__FILE__,__LINE__) | ^ mcx_utils.c:665:30: note: format string is defined here 665 | MCX_ASSERT(fscanf(in,"%lu", &(count) )==1); | ~~^ | | | long unsigned int * | %u mcx_utils.c: In function 'mcx_savedata': mcx_utils.c:396:28: warning: '%s' directive writing up to 255 bytes into a region of size between 0 and 1023 [-Wformat-overflow=] 396 | sprintf(name,"%s%c%s",cfg->rootpath,pathsep,cfg->session); | ^~ mcx_utils.c:396:10: note: 'sprintf' output between 2 and 1280 bytes into a destination of size 1024 396 | sprintf(name,"%s%c%s",cfg->rootpath,pathsep,cfg->session); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mcx_utils.c:404:26: warning: 'sprintf' may write a terminating nul past the end of the destination [-Wformat-overflow=] 404 | sprintf(fname,"%s.%s",name,outputformat[(int)cfg->outputformat]); | ^ mcx_utils.c:404:6: note: 'sprintf' output 2 or more bytes (assuming 1025) into a destination of size 1024 404 | sprintf(fname,"%s.%s",name,outputformat[(int)cfg->outputformat]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mcx_utils.c: In function 'mcx_savedetphoton': mcx_utils.c:423:39: warning: '%s' directive writing up to 255 bytes into a region of size between 0 and 1023 [-Wformat-overflow=] 423 | sprintf(fhistory,"%s%c%s.mc%c",cfg->rootpath,pathsep,cfg->session,filetag); | ^~ mcx_utils.c:423:17: note: 'sprintf' output between 6 and 1284 bytes into a destination of size 1024 423 | sprintf(fhistory,"%s%c%s.mc%c",cfg->rootpath,pathsep,cfg->session,filetag); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mcx_utils.c: In function 'mkpath': mcx_utils.c:571:17: warning: argument 1 null where non-null expected [-Wnonnull] 571 | if(dir_path[strlen(p)-1]==pathsep) | ^~~~~~~~~ In file included from mcx_utils.c:25: /usr/include/string.h:407:15: note: in a call to function 'strlen' declared 'nonnull' 407 | extern size_t strlen (const char *__s) | ^~~~~~ mcx_utils.c: In function 'mcx_dumpmask': mcx_utils.c:1579:29: warning: '%s' directive writing up to 255 bytes into a region of size between 0 and 1023 [-Wformat-overflow=] 1579 | sprintf(fname,"%s%c%s_vol",cfg->rootpath,pathsep,cfg->session); | ^~ mcx_utils.c:1579:10: note: 'sprintf' output between 6 and 1284 bytes into a destination of size 1024 1579 | sprintf(fname,"%s%c%s_vol",cfg->rootpath,pathsep,cfg->session); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mcx_utils.c: In function 'mcx_loadconfig': mcx_utils.c:717:32: warning: 'sprintf' may write a terminating nul past the end of the destination [-Wformat-overflow=] 717 | sprintf(comment,"%s/%s",cfg->rootpath,filename); | ^ mcx_utils.c:717:10: note: 'sprintf' output 2 or more bytes (assuming 1025) into a destination of size 1024 717 | sprintf(comment,"%s/%s",cfg->rootpath,filename); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mcx_utils.c: In function 'mcx_loadjson': mcx_utils.c:985:11: warning: 'strncpy' specified bound 1024 equals destination size [-Wstringop-truncation] 985 | strncpy(volfile, val->valuestring, MAX_PATH_LENGTH); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mcx_utils.c:990:33: warning: '%s' directive writing up to 1023 bytes into a region of size between 0 and 1023 [-Wformat-overflow=] 990 | sprintf(filename,"%s/%s",cfg->rootpath,volfile); | ^~ ~~~~~~~ mcx_utils.c:990:12: note: 'sprintf' output between 2 and 2048 bytes into a destination of size 1024 990 | sprintf(filename,"%s/%s",cfg->rootpath,volfile); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mcx_utils.c:1241:9: warning: 'strncpy' specified bound 1 equals destination size [-Wstringop-truncation] 1241 | strncpy(val,FIND_JSON_KEY("OutputType","Session.OutputType",Session,outputtype+cfg->outputtype,valuestring),1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mcx_utils.c: In function 'mcx_readconfig': mcx_utils.c:633:13: warning: 'strncpy' specified bound 256 equals destination size [-Wstringop-truncation] 633 | strncpy(cfg->session,fname,MAX_SESSION_LENGTH); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mcx_utils.c: In function 'mcx_parsecmd': mcx_utils.c:1761:37: warning: 'strncpy' specified bound 8 equals destination size [-Wstringop-truncation] 1761 | strncpy(cfg->bc,argv[i+1],8); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -g -pedantic -Wall -O3 -DMCX_EMBED_CL -DMCX_OPENCL -DUSE_OS_TIMER -std=c99 -fPIC -DMCX_CONTAINER -c -o tictoc.o tictoc.c In file included from /usr/include/unistd.h:25, from tictoc.c:76: /usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ gcc -g -pedantic -Wall -O3 -DMCX_EMBED_CL -DMCX_OPENCL -DUSE_OS_TIMER -std=c99 -fPIC -DMCX_CONTAINER -c -o mcxcl.o mcxcl.c In file included from /usr/include/CL/cl.h:20, from mcx_host.hpp:9, from mcxcl.c:20: /usr/include/CL/cl_version.h:22:9: note: '#pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)' 22 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)") | ^~~~~~~ gcc -g -pedantic -Wall -O3 -DMCX_EMBED_CL -DMCX_OPENCL -DUSE_OS_TIMER -std=c99 -fPIC -DMCX_CONTAINER -c -o mcx_shapes.o mcx_shapes.c gcc -g -pedantic -Wall -O3 -DMCX_EMBED_CL -DMCX_OPENCL -DUSE_OS_TIMER -std=c99 -fPIC -DMCX_CONTAINER -c -o cjson/cJSON.o cjson/cJSON.c cjson/cJSON.c: In function 'cJSON_strcasecmp': cjson/cJSON.c:45:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 45 | if (!s1) return (s1==s2)?0:1;if (!s2) return 1; | ^~ cjson/cJSON.c:45:38: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 45 | if (!s1) return (s1==s2)?0:1;if (!s2) return 1; | ^~ cjson/cJSON.c: In function 'print_object': cjson/cJSON.c:466:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 466 | if (fmt) *ptr++='\n';*ptr=0; | ^~ cjson/cJSON.c:466:38: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 466 | if (fmt) *ptr++='\n';*ptr=0; | ^ cjson/cJSON.c: In function 'cJSON_DetachItemFromArray': cjson/cJSON.c:493:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 493 | if (c->prev) c->prev->next=c->next;if (c->next) c->next->prev=c->prev;if (c==array->child) array->child=c->next;c->prev=c->next=0;return c;} | ^~ cjson/cJSON.c:493:44: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 493 | if (c->prev) c->prev->next=c->next;if (c->next) c->next->prev=c->prev;if (c==array->child) array->child=c->next;c->prev=c->next=0;return c;} | ^~ CXXFLAGS=' ' LFLAGS='-g -L/usr/lib/octave/7.3.0 -lOpenCL ' LDFLAGS='' mkoctfile mcx_host.o mcx_utils.o tictoc.o mcxcl.o mcx_shapes.o cjson/cJSON.o --mex mcxlabcl.cpp -o ../mcxlabcl/mcxcl.mex mkoctfile: warning: LFLAGS is deprecated and will be removed in a future version of Octave, use LDFLAGS instead In file included from /usr/include/CL/cl.h:20, from mcx_host.hpp:9, from mcxlabcl.cpp:36: /usr/include/CL/cl_version.h:22:104: note: '#pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)' 22 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)") | ^ + cd ../ + rm README.txt + mv mcxlabcl/README.txt . + rm mcxlabcl/INSTALL.txt mcxlabcl/LICENSE.txt + mv mcxlabcl/examples . + mv mcxlabcl inst + rm -rf src + rm -rf doc + tar czf /var/tmp/mcxlab-0.9.5.tar.gz -C /builddir/build/BUILD mcxcl-0.9.5 + mkdir -p /builddir/build/BUILD/mcxcl-0.9.5/build + octave -H -q --no-window-system --no-site-file --eval 'pkg build -verbose -nodeps /builddir/build/BUILD/mcxcl-0.9.5/build /var/tmp/mcxlab-0.9.5.tar.gz' + tar xf /var/tmp/mcxlab-0.9.5.tar.gz -C /builddir/build/BUILD/mcxcl-0.9.5/build + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.rKVeoE + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/octave-mcxlab-0.9.5-8.fc38.i386 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/octave-mcxlab-0.9.5-8.fc38.i386 ++ dirname /builddir/build/BUILDROOT/octave-mcxlab-0.9.5-8.fc38.i386 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/octave-mcxlab-0.9.5-8.fc38.i386 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib/gfortran/modules' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd mcxcl-0.9.5 + mkdir -p /builddir/build/BUILDROOT/octave-mcxlab-0.9.5-8.fc38.i386/usr/share/octave/packages + mkdir -p /builddir/build/BUILDROOT/octave-mcxlab-0.9.5-8.fc38.i386/usr/lib/octave/packages + octave -H -q --no-window-system --no-site-file --eval 'pkg("prefix","/builddir/build/BUILDROOT/octave-mcxlab-0.9.5-8.fc38.i386/usr/share/octave/packages","/builddir/build/BUILDROOT/octave-mcxlab-0.9.5-8.fc38.i386/usr/lib/octave/packages");pkg("global_list",fullfile("/builddir/build/BUILDROOT/octave-mcxlab-0.9.5-8.fc38.i386/usr/share/octave","octave_packages"));pkg("install","-nodeps","-verbose",glob("/builddir/build/BUILD/mcxcl-0.9.5/build/mcxlab-0.9.5-*.tar.gz"){1,1});unlink(pkg("global_list"));' mkdir (/tmp/oct-hZ5MWS) untar (/builddir/build/BUILD/mcxcl-0.9.5/build/mcxlab-0.9.5-any-none.tar.gz, /tmp/oct-hZ5MWS) warning: doc_cache_create: unusable help text found in file 'mcxcl' warning: called from doc_cache_create>handle_function at line 98 column 5 doc_cache_create>create_cache at line 118 column 36 gen_doc_cache_in_dir>@ at line 150 column 16 doc_cache_create>gen_doc_cache_in_dir at line 151 column 9 doc_cache_create at line 62 column 12 install>generate_lookfor_cache at line 840 column 5 install at line 241 column 7 pkg at line 612 column 9 warning: doc_cache_create: unusable help text found in file 'stacked_bar3' warning: called from doc_cache_create>handle_function at line 98 column 5 doc_cache_create>create_cache at line 118 column 36 gen_doc_cache_in_dir>@ at line 150 column 16 doc_cache_create>gen_doc_cache_in_dir at line 151 column 9 doc_cache_create at line 62 column 12 install>generate_lookfor_cache at line 840 column 5 install at line 241 column 7 pkg at line 612 column 9 + '[' -e /builddir/build/BUILDROOT/octave-mcxlab-0.9.5-8.fc38.i386/usr/share/octave/packages/mcxlab-0.9.5/packinfo/on_uninstall.m ']' + echo 'function on_uninstall (desc)' + echo ' error ('\''Can not uninstall %s installed by the redhat package manager'\'', desc.name);' + echo endfunction + '[' -e '/builddir/build/BUILD/mcxcl-0.9.5/build/mcxlab-0.9.5/*.metainfo.xml' ']' + echo 'Did not find a .metainfo.xml appdata file' Did not find a .metainfo.xml appdata file + /usr/bin/find-debuginfo -j2 --strict-build-id -m -i --build-id-seed 0.9.5-8.fc38 --unique-debug-suffix -0.9.5-8.fc38.i386 --unique-debug-src-base octave-mcxlab-0.9.5-8.fc38.i386 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/mcxcl-0.9.5 extracting debug info from /builddir/build/BUILDROOT/octave-mcxlab-0.9.5-8.fc38.i386/usr/share/octave/packages/mcxlab-0.9.5/mcxcl.mex original debug info size: 204kB, size after compression: 192kB /usr/bin/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. cpio: src/: Cannot stat: No such file or directory cpio: src/cjson/cJSON.c: Cannot stat: No such file or directory cpio: src/cjson/cJSON.h: Cannot stat: No such file or directory cpio: src/mcx_core.clh: Cannot stat: No such file or directory cpio: src/mcx_host.cpp: Cannot stat: No such file or directory cpio: src/mcx_host.hpp: Cannot stat: No such file or directory cpio: src/mcx_shapes.c: Cannot stat: No such file or directory cpio: src/mcx_shapes.h: Cannot stat: No such file or directory cpio: src/mcx_utils.c: Cannot stat: No such file or directory cpio: src/mcx_utils.h: Cannot stat: No such file or directory cpio: src/mcxcl.c: Cannot stat: No such file or directory cpio: src/nifti1.h: Cannot stat: No such file or directory cpio: src/tictoc.c: Cannot stat: No such file or directory cpio: src/tictoc.h: Cannot stat: No such file or directory cpio: src/vector_types.h: Cannot stat: No such file or directory 0 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 + /usr/lib/rpm/redhat/brp-python-hardlink Processing files: octave-mcxlab-0.9.5-8.fc38.i686 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.dXzeLI + umask 022 + cd /builddir/build/BUILD + cd mcxcl-0.9.5 + DOCDIR=/builddir/build/BUILDROOT/octave-mcxlab-0.9.5-8.fc38.i386/usr/share/doc/octave-mcxlab + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/octave-mcxlab-0.9.5-8.fc38.i386/usr/share/doc/octave-mcxlab + cp -pr examples /builddir/build/BUILDROOT/octave-mcxlab-0.9.5-8.fc38.i386/usr/share/doc/octave-mcxlab + cp -pr README.txt /builddir/build/BUILDROOT/octave-mcxlab-0.9.5-8.fc38.i386/usr/share/doc/octave-mcxlab + cp -pr AUTHORS.txt /builddir/build/BUILDROOT/octave-mcxlab-0.9.5-8.fc38.i386/usr/share/doc/octave-mcxlab + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.2bKn04 + umask 022 + cd /builddir/build/BUILD + cd mcxcl-0.9.5 + LICENSEDIR=/builddir/build/BUILDROOT/octave-mcxlab-0.9.5-8.fc38.i386/usr/share/licenses/octave-mcxlab + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/octave-mcxlab-0.9.5-8.fc38.i386/usr/share/licenses/octave-mcxlab + cp -pr LICENSE.txt /builddir/build/BUILDROOT/octave-mcxlab-0.9.5-8.fc38.i386/usr/share/licenses/octave-mcxlab + RPM_EC=0 ++ jobs -p + exit 0 Provides: octave-mcxlab = 0.9.5-8.fc38 octave-mcxlab(x86-32) = 0.9.5-8.fc38 Requires(interp): /bin/sh /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(post): /bin/sh octave Requires(preun): /bin/sh Requires(postun): /bin/sh octave Requires: libOpenCL.so.1 libOpenCL.so.1(OPENCL_1.0) libOpenCL.so.1(OPENCL_1.2) libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.1.3) libc.so.6(GLIBC_2.3) libc.so.6(GLIBC_2.33) libc.so.6(GLIBC_2.7) libgcc_s.so.1 libgcc_s.so.1(GCC_3.0) libgomp.so.1 libgomp.so.1(GOMP_4.0) libgomp.so.1(OMP_1.0) libm.so.6 libm.so.6(GLIBC_2.0) libm.so.6(GLIBC_2.27) libm.so.6(GLIBC_2.29) libstdc++.so.6 libstdc++.so.6(CXXABI_1.3) libstdc++.so.6(GLIBCXX_3.4) rtld(GNU_HASH) Processing files: octave-mcxlab-debugsource-0.9.5-8.fc38.i686 Provides: octave-mcxlab-debugsource = 0.9.5-8.fc38 octave-mcxlab-debugsource(x86-32) = 0.9.5-8.fc38 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: octave-mcxlab-debuginfo-0.9.5-8.fc38.i686 Provides: debuginfo(build-id) = a5f242b61a8ccdeaffde550b7416b9675fad9aae octave-mcxlab-debuginfo = 0.9.5-8.fc38 octave-mcxlab-debuginfo(x86-32) = 0.9.5-8.fc38 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: octave-mcxlab-debugsource(x86-32) = 0.9.5-8.fc38 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/octave-mcxlab-0.9.5-8.fc38.i386 Wrote: /builddir/build/RPMS/octave-mcxlab-debuginfo-0.9.5-8.fc38.i686.rpm Wrote: /builddir/build/RPMS/octave-mcxlab-debugsource-0.9.5-8.fc38.i686.rpm Wrote: /builddir/build/RPMS/octave-mcxlab-0.9.5-8.fc38.i686.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.4R0THb + umask 022 + cd /builddir/build/BUILD + cd mcxcl-0.9.5 + /usr/bin/rm -rf /builddir/build/BUILDROOT/octave-mcxlab-0.9.5-8.fc38.i386 + RPM_EC=0 ++ jobs -p + exit 0 Executing(rmbuild): /bin/sh -e /var/tmp/rpm-tmp.MLMKIg + umask 022 + cd /builddir/build/BUILD + rm -rf mcxcl-0.9.5 mcxcl-0.9.5.gemspec + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0