Mock Version: 2.15 Mock Version: 2.15 Mock Version: 2.15 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/opencl-utils.spec'], chrootPath='/var/lib/mock/f37-build-672217-75384/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=604800uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/opencl-utils.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'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1626912000 Wrote: /builddir/build/SRPMS/opencl-utils-1-14.svn16.fc37.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/opencl-utils.spec'], chrootPath='/var/lib/mock/f37-build-672217-75384/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=604800uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/opencl-utils.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'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1626912000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.yiLrcq + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf opencl-utils + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/opencl-utils.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + cd opencl-utils + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (opencl-utils-opencl12.patch):' Patch #0 (opencl-utils-opencl12.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file examples/clrun-example/example2.cpp patching file src/clrun/gencl.c patching file src/clrun/genclext.c patching file src/clrun/genclgl.c patching file src/clrun/genclglext.c patching file src/clrun/generateClRun.pl patching file src/clrun/Makefile Patch #1 (opencl-utils-sharedcl.patch): + echo 'Patch #1 (opencl-utils-sharedcl.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file examples/clrun-example/example1.c patching file examples/clrun-example/example2.cpp patching file examples/clrun-example/Makefile patching file src/clrun/gencl.c patching file src/clrun/genclext.c patching file src/clrun/genclgl.c patching file src/clrun/genclglext.c patching file src/clrun/Makefile + sed -i 's/\r//' examples/clrun-example/example2.cpp + rm -f examples/OCLUtilsExamples.vcproj + rm -rf src/include/CL + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.gOTBx7 + 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 -fasynchronous-unwind-tables -fstack-clash-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 -fasynchronous-unwind-tables -fstack-clash-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 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/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 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + 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/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd opencl-utils + cd src/clrun/ + env '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 -fasynchronous-unwind-tables -fstack-clash-protection' make -j4 gcc -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 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wall -c gencl.c -o gencl.o In file included from /usr/include/CL/cl.h:20, from gencl.c:3: /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)") | ^~~~~~~ gencl.c:505:8: error: unknown type name 'CL_EXT_PREFIX__VERSION_1_1_DEPRECATED' 505 | static CL_EXT_PREFIX__VERSION_1_1_DEPRECATED cl_mem (*clCreateImage2D_ptr)(cl_context, cl_mem_flags, const cl_image_format *, size_t, size_t, size_t, void *, cl_int *) = NULL; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gencl.c:505:54: error: expected declaration specifiers or '...' before '*' token 505 | static CL_EXT_PREFIX__VERSION_1_1_DEPRECATED cl_mem (*clCreateImage2D_ptr)(cl_context, cl_mem_flags, const cl_image_format *, size_t, size_t, size_t, void *, cl_int *) = NULL; | ^ gencl.c:506:1: error: unknown type name 'CL_EXT_PREFIX__VERSION_1_1_DEPRECATED'; did you mean 'CL_API_PREFIX__VERSION_1_1_DEPRECATED'? 506 | CL_EXT_PREFIX__VERSION_1_1_DEPRECATED cl_mem CL_API_CALL clCreateImage2D (cl_context context,cl_mem_flags flags,const cl_image_format * image_format,size_t image_width,size_t image_height,size_t image_row_pitch,void * host_ptr,cl_int * errcode_ret) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | CL_API_PREFIX__VERSION_1_1_DEPRECATED gencl.c:506:58: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'clCreateImage2D' 506 | CL_EXT_PREFIX__VERSION_1_1_DEPRECATED cl_mem CL_API_CALL clCreateImage2D (cl_context context,cl_mem_flags flags,const cl_image_format * image_format,size_t image_width,size_t image_height,size_t image_row_pitch,void * host_ptr,cl_int * errcode_ret) { | ^~~~~~~~~~~~~~~ gencl.c:511:8: error: unknown type name 'CL_EXT_PREFIX__VERSION_1_1_DEPRECATED' 511 | static CL_EXT_PREFIX__VERSION_1_1_DEPRECATED cl_mem (*clCreateImage3D_ptr)(cl_context, cl_mem_flags, const cl_image_format *, size_t, size_t, size_t, size_t, size_t, void *, cl_int *) = NULL; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gencl.c:511:54: error: expected declaration specifiers or '...' before '*' token 511 | static CL_EXT_PREFIX__VERSION_1_1_DEPRECATED cl_mem (*clCreateImage3D_ptr)(cl_context, cl_mem_flags, const cl_image_format *, size_t, size_t, size_t, size_t, size_t, void *, cl_int *) = NULL; | ^ gencl.c:512:1: error: unknown type name 'CL_EXT_PREFIX__VERSION_1_1_DEPRECATED'; did you mean 'CL_API_PREFIX__VERSION_1_1_DEPRECATED'? 512 | CL_EXT_PREFIX__VERSION_1_1_DEPRECATED cl_mem CL_API_CALL clCreateImage3D (cl_context context,cl_mem_flags flags,const cl_image_format * image_format,size_t image_width,size_t image_height,size_t image_depth,size_t image_row_pitch,size_t image_slice_pitch,void * host_ptr,cl_int * errcode_ret) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | CL_API_PREFIX__VERSION_1_1_DEPRECATED gencl.c:512:58: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'clCreateImage3D' 512 | CL_EXT_PREFIX__VERSION_1_1_DEPRECATED cl_mem CL_API_CALL clCreateImage3D (cl_context context,cl_mem_flags flags,const cl_image_format * image_format,size_t image_width,size_t image_height,size_t image_depth,size_t image_row_pitch,size_t image_slice_pitch,void * host_ptr,cl_int * errcode_ret) { | ^~~~~~~~~~~~~~~ gencl.c:517:8: error: unknown type name 'CL_EXT_PREFIX__VERSION_1_1_DEPRECATED' 517 | static CL_EXT_PREFIX__VERSION_1_1_DEPRECATED cl_int (*clEnqueueMarker_ptr)(cl_command_queue, cl_event *) = NULL; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gencl.c:517:54: error: expected declaration specifiers or '...' before '*' token 517 | static CL_EXT_PREFIX__VERSION_1_1_DEPRECATED cl_int (*clEnqueueMarker_ptr)(cl_command_queue, cl_event *) = NULL; | ^ gencl.c:518:1: error: unknown type name 'CL_EXT_PREFIX__VERSION_1_1_DEPRECATED'; did you mean 'CL_API_PREFIX__VERSION_1_1_DEPRECATED'? 518 | CL_EXT_PREFIX__VERSION_1_1_DEPRECATED cl_int CL_API_CALL clEnqueueMarker (cl_command_queue command_queue,cl_event * event) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | CL_API_PREFIX__VERSION_1_1_DEPRECATED gencl.c:518:58: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'clEnqueueMarker' 518 | CL_EXT_PREFIX__VERSION_1_1_DEPRECATED cl_int CL_API_CALL clEnqueueMarker (cl_command_queue command_queue,cl_event * event) { | ^~~~~~~~~~~~~~~ gencl.c:523:8: error: unknown type name 'CL_EXT_PREFIX__VERSION_1_1_DEPRECATED' 523 | static CL_EXT_PREFIX__VERSION_1_1_DEPRECATED cl_int (*clEnqueueWaitForEvents_ptr)(cl_command_queue, cl_uint, const cl_event *) = NULL; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gencl.c:523:54: error: expected declaration specifiers or '...' before '*' token 523 | static CL_EXT_PREFIX__VERSION_1_1_DEPRECATED cl_int (*clEnqueueWaitForEvents_ptr)(cl_command_queue, cl_uint, const cl_event *) = NULL; | ^ gencl.c:524:1: error: unknown type name 'CL_EXT_PREFIX__VERSION_1_1_DEPRECATED'; did you mean 'CL_API_PREFIX__VERSION_1_1_DEPRECATED'? 524 | CL_EXT_PREFIX__VERSION_1_1_DEPRECATED cl_int CL_API_CALL clEnqueueWaitForEvents (cl_command_queue command_queue,cl_uint num_events,const cl_event * event_list) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | CL_API_PREFIX__VERSION_1_1_DEPRECATED gencl.c:524:58: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'clEnqueueWaitForEvents' 524 | CL_EXT_PREFIX__VERSION_1_1_DEPRECATED cl_int CL_API_CALL clEnqueueWaitForEvents (cl_command_queue command_queue,cl_uint num_events,const cl_event * event_list) { | ^~~~~~~~~~~~~~~~~~~~~~ gencl.c:529:8: error: unknown type name 'CL_EXT_PREFIX__VERSION_1_1_DEPRECATED' 529 | static CL_EXT_PREFIX__VERSION_1_1_DEPRECATED cl_int (*clEnqueueBarrier_ptr)(cl_command_queue) = NULL; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gencl.c:529:54: error: expected declaration specifiers or '...' before '*' token 529 | static CL_EXT_PREFIX__VERSION_1_1_DEPRECATED cl_int (*clEnqueueBarrier_ptr)(cl_command_queue) = NULL; | ^ gencl.c:530:1: error: unknown type name 'CL_EXT_PREFIX__VERSION_1_1_DEPRECATED'; did you mean 'CL_API_PREFIX__VERSION_1_1_DEPRECATED'? 530 | CL_EXT_PREFIX__VERSION_1_1_DEPRECATED cl_int CL_API_CALL clEnqueueBarrier (cl_command_queue command_queue) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | CL_API_PREFIX__VERSION_1_1_DEPRECATED gencl.c:530:58: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'clEnqueueBarrier' 530 | CL_EXT_PREFIX__VERSION_1_1_DEPRECATED cl_int CL_API_CALL clEnqueueBarrier (cl_command_queue command_queue) { | ^~~~~~~~~~~~~~~~ gencl.c:535:8: error: unknown type name 'CL_EXT_PREFIX__VERSION_1_1_DEPRECATED' 535 | static CL_EXT_PREFIX__VERSION_1_1_DEPRECATED cl_int (*clUnloadCompiler_ptr)(void) = NULL; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gencl.c:535:54: error: expected declaration specifiers or '...' before '*' token 535 | static CL_EXT_PREFIX__VERSION_1_1_DEPRECATED cl_int (*clUnloadCompiler_ptr)(void) = NULL; | ^ gencl.c:536:1: error: unknown type name 'CL_EXT_PREFIX__VERSION_1_1_DEPRECATED'; did you mean 'CL_API_PREFIX__VERSION_1_1_DEPRECATED'? 536 | CL_EXT_PREFIX__VERSION_1_1_DEPRECATED cl_int CL_API_CALL clUnloadCompiler (void) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | CL_API_PREFIX__VERSION_1_1_DEPRECATED gencl.c:536:58: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'clUnloadCompiler' 536 | CL_EXT_PREFIX__VERSION_1_1_DEPRECATED cl_int CL_API_CALL clUnloadCompiler (void) { | ^~~~~~~~~~~~~~~~ gencl.c:541:45: error: expected ';' before 'void' 541 | static CL_EXT_PREFIX__VERSION_1_1_DEPRECATED void * (*clGetExtensionFunctionAddress_ptr)(const char *) = NULL; | ^~~~~ | ; gencl.c:542:38: error: expected ';' before 'void' 542 | CL_EXT_PREFIX__VERSION_1_1_DEPRECATED void * CL_API_CALL clGetExtensionFunctionAddress (const char * func_name) { | ^~~~~ | ; make: *** [Makefile:17: compile] Error 1 error: RPM build errors: Bad exit status from /var/tmp/rpm-tmp.gOTBx7 (%build) Bad exit status from /var/tmp/rpm-tmp.gOTBx7 (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/opencl-utils.spec