Mock Version: 3.0 Mock Version: 3.0 Mock Version: 3.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/golang-tinygo-x-llvm.spec'], chrootPath='/var/lib/mock/f37-build-side-32-misc-devel-408832-16113/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=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/golang-tinygo-x-llvm.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=1677456000 Wrote: /builddir/build/SRPMS/golang-tinygo-x-llvm-0-0.1.20221002gitdcb078a.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/golang-tinygo-x-llvm.spec'], chrootPath='/var/lib/mock/f37-build-side-32-misc-devel-408832-16113/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=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/golang-tinygo-x-llvm.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=1677456000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.xoaAKf + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf go-llvm-dcb078a262665943160fa7b6a8dd219c2e2fc990 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/go-llvm-dcb078a262665943160fa7b6a8dd219c2e2fc990.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd go-llvm-dcb078a262665943160fa7b6a8dd219c2e2fc990 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -fr /builddir/build/BUILD/go-llvm-dcb078a262665943160fa7b6a8dd219c2e2fc990/vendor + [[ ! -e /builddir/build/BUILD/go-llvm-dcb078a262665943160fa7b6a8dd219c2e2fc990/_build/bin ]] + install -m 0755 -vd /builddir/build/BUILD/go-llvm-dcb078a262665943160fa7b6a8dd219c2e2fc990/_build/bin install: creating directory '/builddir/build/BUILD/go-llvm-dcb078a262665943160fa7b6a8dd219c2e2fc990/_build' install: creating directory '/builddir/build/BUILD/go-llvm-dcb078a262665943160fa7b6a8dd219c2e2fc990/_build/bin' + export GOPATH=/builddir/build/BUILD/go-llvm-dcb078a262665943160fa7b6a8dd219c2e2fc990/_build:/usr/share/gocode + GOPATH=/builddir/build/BUILD/go-llvm-dcb078a262665943160fa7b6a8dd219c2e2fc990/_build:/usr/share/gocode + [[ ! -e /builddir/build/BUILD/go-llvm-dcb078a262665943160fa7b6a8dd219c2e2fc990/_build/src/tinygo.org/x/go-llvm ]] ++ dirname /builddir/build/BUILD/go-llvm-dcb078a262665943160fa7b6a8dd219c2e2fc990/_build/src/tinygo.org/x/go-llvm + install -m 0755 -vd /builddir/build/BUILD/go-llvm-dcb078a262665943160fa7b6a8dd219c2e2fc990/_build/src/tinygo.org/x install: creating directory '/builddir/build/BUILD/go-llvm-dcb078a262665943160fa7b6a8dd219c2e2fc990/_build/src' install: creating directory '/builddir/build/BUILD/go-llvm-dcb078a262665943160fa7b6a8dd219c2e2fc990/_build/src/tinygo.org' install: creating directory '/builddir/build/BUILD/go-llvm-dcb078a262665943160fa7b6a8dd219c2e2fc990/_build/src/tinygo.org/x' + ln -fs /builddir/build/BUILD/go-llvm-dcb078a262665943160fa7b6a8dd219c2e2fc990 /builddir/build/BUILD/go-llvm-dcb078a262665943160fa7b6a8dd219c2e2fc990/_build/src/tinygo.org/x/go-llvm + cd /builddir/build/BUILD/go-llvm-dcb078a262665943160fa7b6a8dd219c2e2fc990/_build/src/tinygo.org/x/go-llvm + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0001-Make-LLVM-config-file-architecture-independent.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + rm llvm_config_darwin_llvm14.go llvm_config_darwin_llvm15.go llvm_config_linux_llvm14.go llvm_config_linux_llvm15.go + for version in 14 15 + type llvm-config-14-64 /var/tmp/rpm-tmp.xoaAKf: line 64: type: llvm-config-14-64: not found + type llvm-config-14 llvm-config-14 is /usr/bin/llvm-config-14 + make config VERSION=14.0.0 CONFIG=llvm-config-14 BUILDDIR=/usr + mv llvm_config_linux.go llvm_config_linux_llvm14.go + for version in 14 15 + type llvm-config-15-64 llvm-config-15-64 is /usr/bin/llvm-config-15-64 + make config VERSION=15.0.0 CONFIG=llvm-config-15-64 BUILDDIR=/usr + mv llvm_config_linux.go llvm_config_linux_llvm15.go + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.ha0INb + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/golang-tinygo-x-llvm-0-0.1.20221002gitdcb078a.fc37.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/golang-tinygo-x-llvm-0-0.1.20221002gitdcb078a.fc37.riscv64 ++ dirname /builddir/build/BUILDROOT/golang-tinygo-x-llvm-0-0.1.20221002gitdcb078a.fc37.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/golang-tinygo-x-llvm-0-0.1.20221002gitdcb078a.fc37.riscv64 + cd go-llvm-dcb078a262665943160fa7b6a8dd219c2e2fc990 + cd /builddir/build/BUILD/go-llvm-dcb078a262665943160fa7b6a8dd219c2e2fc990/_build/src/tinygo.org/x/go-llvm + IFS= + gosupfiles= + mapfile -t gosupfilesA + go-rpm-integration install -i tinygo.org/x/go-llvm -b /builddir/build/BUILD/go-llvm-dcb078a262665943160fa7b6a8dd219c2e2fc990/_build/bin -s /builddir/build/BUILD/go-llvm-dcb078a262665943160fa7b6a8dd219c2e2fc990/_build -o golang-tinygo-x-llvm-devel.file-list -O /builddir/build/BUILD/go-llvm-dcb078a262665943160fa7b6a8dd219c2e2fc990 -V 0-0.1.20221002gitdcb078a.fc37 -C dcb078a262665943160fa7b6a8dd219c2e2fc990 -p /builddir/build/BUILDROOT/golang-tinygo-x-llvm-0-0.1.20221002gitdcb078a.fc37.riscv64 -g /usr/share/gocode -r '.*example.*' Installing: tinygo.org/x/go-llvm + IFS= +++ realpath -e --relative-base=. README.markdown +++ sort -u ++ listfiles_include=README.markdown ++ echo README.markdown + godocs=README.markdown + [[ -n README.markdown ]] + IFS= + read -r f + echo %doc '"README.markdown"' + IFS= + read -r f + IFS= +++ realpath -e --relative-base=. LICENSE.txt +++ sort -u ++ listfiles_include=LICENSE.txt ++ echo LICENSE.txt + golicenses=LICENSE.txt + [[ -n LICENSE.txt ]] + IFS= + read -r f + echo %license '"LICENSE.txt"' + IFS= + read -r f + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /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 Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.QlMp1O + umask 022 + cd /builddir/build/BUILD + cd go-llvm-dcb078a262665943160fa7b6a8dd219c2e2fc990 + for version in 14 15 + export TAGS=llvm14 + TAGS=llvm14 + LDFLAGS=' -X tinygo.org/x/go-llvm/version.commit=dcb078a262665943160fa7b6a8dd219c2e2fc990 -X tinygo.org/x/go-llvm/version=0' + GO_TEST_FLAGS='-buildmode pie -compiler gc -tags=llvm14' + GO_TEST_EXT_LD_FLAGS='-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 ' + go-rpm-integration check -i tinygo.org/x/go-llvm -b /builddir/build/BUILD/go-llvm-dcb078a262665943160fa7b6a8dd219c2e2fc990/_build/bin -s /builddir/build/BUILD/go-llvm-dcb078a262665943160fa7b6a8dd219c2e2fc990/_build -V 0-0.1.20221002gitdcb078a.fc37 -C dcb078a262665943160fa7b6a8dd219c2e2fc990 -p /builddir/build/BUILDROOT/golang-tinygo-x-llvm-0-0.1.20221002gitdcb078a.fc37.riscv64 -g /usr/share/gocode -r '.*example.*' Testing in: /builddir/build/BUILD/go-llvm-dcb078a262665943160fa7b6a8dd219c2e2fc990/_build/src PATH: /builddir/build/BUILD/go-llvm-dcb078a262665943160fa7b6a8dd219c2e2fc990/_build/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin GOPATH: /builddir/build/BUILD/go-llvm-dcb078a262665943160fa7b6a8dd219c2e2fc990/_build:/usr/share/gocode GO111MODULE: off command: go test -buildmode pie -compiler gc -tags=llvm14 -ldflags " -X tinygo.org/x/go-llvm/version.commit=dcb078a262665943160fa7b6a8dd219c2e2fc990 -X tinygo.org/x/go-llvm/version=0 -extldflags '-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 '" testing: tinygo.org/x/go-llvm tinygo.org/x/go-llvm WARNING: This target JIT is not designed for the host you are running. If bad things happen, please choose a different -march switch. LLVM ERROR: Relocation type not implemented yet! SIGABRT: abort PC=0x3fbed57e7e m=0 sigcode=4294967290 signal arrived during cgo execution goroutine 35 [syscall]: runtime.cgocall(0x2ae080f240, 0x3f9405bd78) /usr/lib/golang/src/runtime/cgocall.go:158 +0x54 fp=0x3f9405bd40 sp=0x3f9405bd10 pc=0x2ae0718efc tinygo.org/x/go-llvm._Cfunc_LLVMRunFunction(0x2b13205920, 0x2b131f3e68, 0x1, 0x3f94128288) _cgo_gotypes.go:8491 +0x3c fp=0x3f9405bd70 sp=0x3f9405bd40 pc=0x2ae08025fc tinygo.org/x/go-llvm.ExecutionEngine.RunFunction.func1({0x2ae07fed34?}, {0x8?}, 0x1, 0x3f9405bd01?) /builddir/build/BUILD/go-llvm-dcb078a262665943160fa7b6a8dd219c2e2fc990/_build/src/tinygo.org/x/go-llvm/executionengine.go:141 +0xd8 fp=0x3f9405bdc8 sp=0x3f9405bd70 pc=0x2ae0804400 tinygo.org/x/go-llvm.ExecutionEngine.RunFunction({0x2b131ff000?}, {0x100000002?}, {0x3f94128288?, 0x0?, 0x3f94128210?}) /builddir/build/BUILD/go-llvm-dcb078a262665943160fa7b6a8dd219c2e2fc990/_build/src/tinygo.org/x/go-llvm/executionengine.go:141 +0x60 fp=0x3f9405bdf0 sp=0x3f9405bdc8 pc=0x2ae0804308 tinygo.org/x/go-llvm.TestFactorial(0x3f941049c0) /builddir/build/BUILD/go-llvm-dcb078a262665943160fa7b6a8dd219c2e2fc990/_build/src/tinygo.org/x/go-llvm/executionengine_test.go:91 +0x544 fp=0x3f9405bf78 sp=0x3f9405bdf0 pc=0x2ae07fed54 testing.tRunner(0x3f941049c0, 0x2ae08950d0) /usr/lib/golang/src/testing/testing.go:1446 +0x11c fp=0x3f9405bfc0 sp=0x3f9405bf78 pc=0x2ae07c5d3c testing.(*T).Run.func1() /usr/lib/golang/src/testing/testing.go:1493 +0x30 fp=0x3f9405bfd8 sp=0x3f9405bfc0 pc=0x2ae07c6970 runtime.goexit() /usr/lib/golang/src/runtime/asm_riscv64.s:516 +0x4 fp=0x3f9405bfd8 sp=0x3f9405bfd8 pc=0x2ae0779dd4 created by testing.(*T).Run /usr/lib/golang/src/testing/testing.go:1493 +0x338 goroutine 1 [chan receive]: runtime.gopark(0x2ae0721b30?, 0x2ae0993140?, 0x70?, 0x1d?, 0x3f941049c0?) /usr/lib/golang/src/runtime/proc.go:363 +0x110 fp=0x3f9405aa58 sp=0x3f9405aa40 pc=0x2ae074e2c0 runtime.chanrecv(0x3f94154070, 0x3f9405ab57, 0xe8?) /usr/lib/golang/src/runtime/chan.go:583 +0x498 fp=0x3f9405aae8 sp=0x3f9405aa58 pc=0x2ae071bf70 runtime.chanrecv1(0x3f94114420?, 0x1?) /usr/lib/golang/src/runtime/chan.go:442 +0x14 fp=0x3f9405ab08 sp=0x3f9405aae8 pc=0x2ae071babc testing.(*T).Run(0x3f94104820, {0x2ae08300d6?, 0x2ae0788a80?}, 0x2ae08950d0) /usr/lib/golang/src/testing/testing.go:1494 +0x34c fp=0x3f9405aba0 sp=0x3f9405ab08 pc=0x2ae07c68fc testing.runTests.func1(0x1a0?) /usr/lib/golang/src/testing/testing.go:1846 +0x78 fp=0x3f9405abe8 sp=0x3f9405aba0 pc=0x2ae07c83e8 testing.tRunner(0x3f94104820, 0x3f9405acf0) /usr/lib/golang/src/testing/testing.go:1446 +0x11c fp=0x3f9405ac30 sp=0x3f9405abe8 pc=0x2ae07c5d3c testing.runTests(0x3f941300a0?, {0x2ae094a4a0, 0x6, 0x6}, {0x3?, 0x40000000000ca8?, 0x2ae0965ac0?}) /usr/lib/golang/src/testing/testing.go:1844 +0x408 fp=0x3f9405ad10 sp=0x3f9405ac30 pc=0x2ae07c82d0 testing.(*M).Run(0x3f941300a0) /usr/lib/golang/src/testing/testing.go:1726 +0x504 fp=0x3f9405af00 sp=0x3f9405ad10 pc=0x2ae07c70ac main.main() _testmain.go:59 +0x1a8 fp=0x3f9405af80 sp=0x3f9405af00 pc=0x2ae08087d8 runtime.main() /usr/lib/golang/src/runtime/proc.go:250 +0x218 fp=0x3f9405afd8 sp=0x3f9405af80 pc=0x2ae074ded0 runtime.goexit() /usr/lib/golang/src/runtime/asm_riscv64.s:516 +0x4 fp=0x3f9405afd8 sp=0x3f9405afd8 pc=0x2ae0779dd4 goroutine 2 [force gc (idle)]: runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?) /usr/lib/golang/src/runtime/proc.go:363 +0x110 fp=0x3f9404cfb0 sp=0x3f9404cf98 pc=0x2ae074e2c0 runtime.goparkunlock(...) /usr/lib/golang/src/runtime/proc.go:369 runtime.forcegchelper() /usr/lib/golang/src/runtime/proc.go:302 +0xb0 fp=0x3f9404cfd8 sp=0x3f9404cfb0 pc=0x2ae074e148 runtime.goexit() /usr/lib/golang/src/runtime/asm_riscv64.s:516 +0x4 fp=0x3f9404cfd8 sp=0x3f9404cfd8 pc=0x2ae0779dd4 created by runtime.init.5 /usr/lib/golang/src/runtime/proc.go:290 +0x28 goroutine 18 [GC sweep wait]: runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?) /usr/lib/golang/src/runtime/proc.go:363 +0x110 fp=0x3f94048798 sp=0x3f94048780 pc=0x2ae074e2c0 runtime.goparkunlock(...) /usr/lib/golang/src/runtime/proc.go:369 runtime.bgsweep(0x0?) /usr/lib/golang/src/runtime/mgcsweep.go:278 +0xa8 fp=0x3f940487c8 sp=0x3f94048798 pc=0x2ae0738f38 runtime.gcenable.func1() /usr/lib/golang/src/runtime/mgc.go:178 +0x2c fp=0x3f940487d8 sp=0x3f940487c8 pc=0x2ae072d764 runtime.goexit() /usr/lib/golang/src/runtime/asm_riscv64.s:516 +0x4 fp=0x3f940487d8 sp=0x3f940487d8 pc=0x2ae0779dd4 created by runtime.gcenable /usr/lib/golang/src/runtime/mgc.go:178 +0x70 goroutine 19 [GC scavenge wait]: runtime.gopark(0x3f9408e000?, 0x2ae085d828?, 0x0?, 0x0?, 0x0?) /usr/lib/golang/src/runtime/proc.go:363 +0x110 fp=0x3f94048f80 sp=0x3f94048f68 pc=0x2ae074e2c0 runtime.goparkunlock(...) /usr/lib/golang/src/runtime/proc.go:369 runtime.(*scavengerState).park(0x2ae0965b40) /usr/lib/golang/src/runtime/mgcscavenge.go:389 +0x68 fp=0x3f94048fa8 sp=0x3f94048f80 pc=0x2ae0736ed0 runtime.bgscavenge(0x0?) /usr/lib/golang/src/runtime/mgcscavenge.go:617 +0x50 fp=0x3f94048fc8 sp=0x3f94048fa8 pc=0x2ae0737420 runtime.gcenable.func2() /usr/lib/golang/src/runtime/mgc.go:179 +0x2c fp=0x3f94048fd8 sp=0x3f94048fc8 pc=0x2ae072d704 runtime.goexit() /usr/lib/golang/src/runtime/asm_riscv64.s:516 +0x4 fp=0x3f94048fd8 sp=0x3f94048fd8 pc=0x2ae0779dd4 created by runtime.gcenable /usr/lib/golang/src/runtime/mgc.go:179 +0xb0 goroutine 34 [finalizer wait]: runtime.gopark(0xfe5?, 0x7f28?, 0xe5?, 0xf?, 0xfe5?) /usr/lib/golang/src/runtime/proc.go:363 +0x110 fp=0x3f9404c5a8 sp=0x3f9404c590 pc=0x2ae074e2c0 runtime.goparkunlock(...) /usr/lib/golang/src/runtime/proc.go:369 runtime.runfinq() /usr/lib/golang/src/runtime/mfinal.go:180 +0x110 fp=0x3f9404c7d8 sp=0x3f9404c5a8 pc=0x2ae072c958 runtime.goexit() /usr/lib/golang/src/runtime/asm_riscv64.s:516 +0x4 fp=0x3f9404c7d8 sp=0x3f9404c7d8 pc=0x2ae0779dd4 created by runtime.createfing /usr/lib/golang/src/runtime/mfinal.go:157 +0x64 ra 0x3fbed57e70 sp 0x3fffde1998 gp 0x2ae09654e8 tp 0x3fbebeb240 t0 0x0 t1 0x3fbface2dc t2 0xb s0 0x81baa s1 0x3fbee2fd58 a0 0x0 a1 0x81baa a2 0x6 a3 0x3fbee301b0 a4 0x1 a5 0x3fbebeaae0 a6 0xfefefefefefefeff a7 0x83 s2 0x3fbebeaae0 s3 0x6 s4 0x3fc4b87d10 s5 0x6 s6 0x2b1321dc00 s7 0x0 s8 0x2b13292038 s9 0x0 s10 0xfffffffffffffff8 s11 0x2b1321dc00 t3 0x3fbed12128 t4 0x3fffde1b40 t5 0x2b13278d08 t6 0xcccccccccccccccd pc 0x3fbed57e7e exit status 2 FAIL tinygo.org/x/go-llvm 2.013s error: Bad exit status from /var/tmp/rpm-tmp.QlMp1O (%check) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.QlMp1O (%check) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.10/site-packages/mockbuild/util.py", line 598, 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/golang-tinygo-x-llvm.spec