Mock Version: 5.5 Mock Version: 5.5 Mock Version: 5.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/golang.spec'], chrootPath='/var/lib/mock/f40-build-2692091-68180/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=997gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/golang.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=1712102400 Wrote: /builddir/build/SRPMS/golang-1.22.2-1.fc40.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/golang.spec'], chrootPath='/var/lib/mock/f40-build-2692091-68180/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=997gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/golang.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=1712102400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.TM22HP + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf go + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/go1.22.2.src.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd go + rm -rf /builddir/build/BUILD/go-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/go-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0001-Modify-go.env.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0004-cmd-link-use-gold-on-ARM-ARM64-only-if-gold-is-avail.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0005-Skip-TestCrashDumpsAllThreads.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + cp /builddir/build/SOURCES/fedora.go ./src/runtime/ + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.FRntem + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + 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 go + uname -a Linux cef08520fbf9 6.1.55 #1 SMP Sat Oct 7 21:05:27 CST 2023 riscv64 GNU/Linux + cat /proc/cpuinfo processor : 0 hart : 1 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 1 hart : 0 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 2 hart : 2 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 3 hart : 3 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 4 hart : 4 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 5 hart : 5 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 6 hart : 6 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 7 hart : 7 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 8 hart : 8 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 9 hart : 9 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 10 hart : 10 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 11 hart : 11 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 12 hart : 12 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 13 hart : 13 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 14 hart : 14 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 15 hart : 15 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 16 hart : 16 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 17 hart : 17 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 18 hart : 18 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 19 hart : 19 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 20 hart : 20 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 21 hart : 21 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 22 hart : 22 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 23 hart : 23 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 24 hart : 24 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 25 hart : 25 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 26 hart : 26 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 27 hart : 27 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 28 hart : 28 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 29 hart : 29 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 30 hart : 30 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 31 hart : 31 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 32 hart : 32 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 33 hart : 33 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 34 hart : 34 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 35 hart : 35 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 36 hart : 36 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 37 hart : 37 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 38 hart : 38 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 39 hart : 39 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 40 hart : 40 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 41 hart : 41 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 42 hart : 42 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 43 hart : 43 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 44 hart : 44 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 45 hart : 45 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 46 hart : 46 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 47 hart : 47 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 48 hart : 48 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 49 hart : 49 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 50 hart : 50 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 51 hart : 51 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 52 hart : 52 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 53 hart : 53 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 54 hart : 54 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 55 hart : 55 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 56 hart : 56 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 57 hart : 57 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 58 hart : 58 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 59 hart : 59 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 60 hart : 60 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 61 hart : 61 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 62 hart : 62 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 processor : 63 hart : 63 isa : rv64imafdcv mmu : sv39 mvendorid : 0x5b7 marchid : 0x0 mimpid : 0x0 MemTotal: 131976908 kB MemFree: 85275768 kB MemAvailable: 128886568 kB Buffers: 19268324 kB Cached: 22693592 kB SwapCached: 16 kB Active: 30852940 kB Inactive: 11567112 kB Active(anon): 32720 kB Inactive(anon): 482076 kB Active(file): 30820220 kB Inactive(file): 11085036 kB Unevictable: 2916 kB Mlocked: 0 kB HighTotal: 4159488 kB HighFree: 2286412 kB LowTotal: 127817420 kB LowFree: 82989356 kB SwapTotal: 8388604 kB SwapFree: 8371708 kB Zswap: 0 kB Zswapped: 0 kB Dirty: 587260 kB Writeback: 0 kB AnonPages: 460548 kB Mapped: 253208 kB Shmem: 53664 kB KReclaimable: 2843620 kB Slab: 3401852 kB SReclaimable: 2843620 kB SUnreclaim: 558232 kB KernelStack: 15312 kB PageTables: 12840 kB SecPageTables: 0 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 74377056 kB Committed_AS: 2210356 kB VmallocTotal: 67108864 kB VmallocUsed: 208208 kB VmallocChunk: 0 kB Percpu: 370688 kB AnonHugePages: 8192 kB ShmemHugePages: 0 kB ShmemPmdMapped: 0 kB FileHugePages: 0 kB FilePmdMapped: 0 kB CmaTotal: 262144 kB CmaFree: 187816 kB HugePages_Total: 0 HugePages_Free: 0 HugePages_Rsvd: 0 HugePages_Surp: 0 Hugepagesize: 2048 kB Hugetlb: 0 kB ~/build/BUILD/go/src ~/build/BUILD/go + cat /proc/meminfo + export GOROOT_BOOTSTRAP=/usr/lib/golang + GOROOT_BOOTSTRAP=/usr/lib/golang + export GOROOT_FINAL=/usr/lib/golang + GOROOT_FINAL=/usr/lib/golang + export GOHOSTOS=linux + GOHOSTOS=linux + export 'GOHOSTARCH=%{gohostarch}' + GOHOSTARCH='%{gohostarch}' + pushd src + export 'CFLAGS=-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer' + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer' + export '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 ' + 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 CC=gcc + CC=gcc + export CC_FOR_TARGET=gcc + CC_FOR_TARGET=gcc + export GOOS=linux + GOOS=linux + export 'GOARCH=%{gohostarch}' + GOARCH='%{gohostarch}' + export 'GO_LDFLAGS=-linkmode internal' + GO_LDFLAGS='-linkmode internal' + export CGO_ENABLED=0 + CGO_ENABLED=0 + ./make.bash -v Building Go cmd/dist using /usr/lib/golang. (go1.22.1 linux/riscv64) cmd/dist go tool dist: unknown $GOHOSTARCH %{gohostarch} error: Bad exit status from /var/tmp/rpm-tmp.FRntem (%build) Bad exit status from /var/tmp/rpm-tmp.FRntem (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error("Command failed: \n # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/golang.spec'\n", 1)] Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/mockbuild/util.py", line 612, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (cmd_pretty(command, env), output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/golang.spec'