v/sysv.S /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I. -I../include -Iinclude -I../src -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fexceptions -c -o src/riscv/ffi.lo ../src/riscv/ffi.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I../include -Iinclude -I../src -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fexceptions -c ../src/closures.c -fPIC -DPIC -o src/.libs/closures.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I../include -Iinclude -I../src -I. -I../include -Iinclude -I../src -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c ../src/riscv/sysv.S -fPIC -DPIC -o src/riscv/.libs/sysv.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I../include -Iinclude -I../src -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fexceptions -c ../src/riscv/ffi.c -fPIC -DPIC -o src/riscv/.libs/ffi.o BUILDSTDERR: ../src/riscv/ffi.c:428:22: error: unknown type name 'ffi_go_closure'; did you mean 'ffi_raw_closure'? BUILDSTDERR: 428 | ffi_prep_go_closure (ffi_go_closure *closure, ffi_cif *cif, BUILDSTDERR: | ^~~~~~~~~~~~~~ BUILDSTDERR: | ffi_raw_closure BUILDSTDERR: make[3]: *** [Makefile:1429: src/riscv/ffi.lo] Error 1 BUILDSTDERR: make[3]: *** Waiting for unfinished jobs.... BUILDSTDERR: ../src/closures.c: In function 'dlmmap_locked': BUILDSTDERR: ../src/closures.c:461:7: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] BUILDSTDERR: 461 | ftruncate (execfd, offset); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: ../src/closures.c:473:7: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] BUILDSTDERR: 473 | ftruncate (execfd, offset); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~ make[3]: Leaving directory '/builddir/build/BUILD/libffi-3.1/riscv64-redhat-linux-gnu' make[2]: Leaving directory '/builddir/build/BUILD/libffi-3.1/riscv64-redhat-linux-gnu' BUILDSTDERR: make[2]: *** [Makefile:1658: all-recursive] Error 1 BUILDSTDERR: make[1]: *** [Makefile:790: all] Error 2 make[1]: Leaving directory '/builddir/build/BUILD/libffi-3.1/riscv64-redhat-linux-gnu' BUILDSTDERR: make: *** [Makefile:667: all-all] Error 2 RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.SXqSrK (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.SXqSrK (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.7/site-packages/mockbuild/util.py", line 636, in do 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/libffi.spec