Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/golang.spec'], chrootPath='/var/lib/mock/openeuler-24.03_LTS_SP2-aarch64-1764834759.697240/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=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --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 warning: line 120: It's not recommended to have unversioned Obsoletes: Obsoletes: golang-bin warning: line 121: It's not recommended to have unversioned Obsoletes: Obsoletes: golang-shared warning: line 122: It's not recommended to have unversioned Obsoletes: Obsoletes: golang-docs Building target platforms: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/golang-1.25.5-1.src.rpm RPM build warnings: line 120: It's not recommended to have unversioned Obsoletes: Obsoletes: golang-bin line 121: It's not recommended to have unversioned Obsoletes: Obsoletes: golang-shared line 122: It's not recommended to have unversioned Obsoletes: Obsoletes: golang-docs Child return code was: 0 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/golang.spec'], chrootPath='/var/lib/mock/openeuler-24.03_LTS_SP2-aarch64-1764834759.697240/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=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --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 warning: line 120: It's not recommended to have unversioned Obsoletes: Obsoletes: golang-bin warning: line 121: It's not recommended to have unversioned Obsoletes: Obsoletes: golang-shared warning: line 122: It's not recommended to have unversioned Obsoletes: Obsoletes: golang-docs Building target platforms: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/golang-1.25.5-1.src.rpm RPM build warnings: line 120: It's not recommended to have unversioned Obsoletes: Obsoletes: golang-bin line 121: It's not recommended to have unversioned Obsoletes: Obsoletes: golang-shared line 122: It's not recommended to have unversioned Obsoletes: Obsoletes: golang-docs Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/golang.spec'], chrootPath='/var/lib/mock/openeuler-24.03_LTS_SP2-aarch64-1764834759.697240/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=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target aarch64 --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 warning: line 120: It's not recommended to have unversioned Obsoletes: Obsoletes: golang-bin warning: line 121: It's not recommended to have unversioned Obsoletes: Obsoletes: golang-shared warning: line 122: It's not recommended to have unversioned Obsoletes: Obsoletes: golang-docs Building target platforms: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.nhE4js + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf go + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/go1.25.5.src.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd go + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ySzVVU + umask 022 + cd /builddir/build/BUILD + cd go + uname -a Linux eur-prod-workerlocal-aarch64-normal-prod-00844325-20251204-0654 5.10.0-60.118.0.145.oe2203.aarch64 #1 SMP Wed Nov 29 06:41:02 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux + cat /proc/cpuinfo processor : 0 BogoMIPS : 200.00 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma dcpop asimddp asimdfhm CPU implementer : 0x48 CPU architecture: 8 CPU variant : 0x1 CPU part : 0xd01 CPU revision : 0 processor : 1 BogoMIPS : 200.00 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma dcpop asimddp asimdfhm CPU implementer : 0x48 CPU architecture: 8 CPU variant : 0x1 CPU part : 0xd01 CPU revision : 0 processor : 2 BogoMIPS : 200.00 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma dcpop asimddp asimdfhm CPU implementer : 0x48 CPU architecture: 8 CPU variant : 0x1 CPU part : 0xd01 CPU revision : 0 processor : 3 BogoMIPS : 200.00 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma dcpop asimddp asimdfhm CPU implementer : 0x48 CPU architecture: 8 CPU variant : 0x1 CPU part : 0xd01 CPU revision : 0 MemTotal: 6820556 kB MemFree: 3406444 kB MemAvailable: 6224348 kB Buffers: 4340 kB Cached: 2865384 kB SwapCached: 0 kB Active: 758372 kB Inactive: 2291512 kB Active(anon): 1988 kB Inactive(anon): 202476 kB Active(file): 756384 kB Inactive(file): 2089036 kB Unevictable: 3072 kB Mlocked: 0 kB SwapTotal: 0 kB SwapFree: 0 kB Dirty: 171520 kB Writeback: 0 kB AnonPages: 182656 kB Mapped: 125148 kB Shmem: 29196 kB KReclaimable: 168208 kB Slab: 260996 kB SReclaimable: 168208 kB SUnreclaim: 92788 kB KernelStack: 4208 kB PageTables: 3436 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 3410276 kB Committed_AS: 890528 kB VmallocTotal: 135290159040 kB VmallocUsed: 15124 kB VmallocChunk: 0 kB Percpu: 1840 kB HardwareCorrupted: 0 kB AnonHugePages: 43008 kB ShmemHugePages: 0 kB ShmemPmdMapped: 0 kB FileHugePages: 0 kB FilePmdMapped: 0 kB CmaTotal: 65536 kB CmaFree: 62464 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=arm64 + GOHOSTARCH=arm64 + pushd src + export 'CFLAGS=-O2 -g -grecord-gcc-switches -pipe -fstack-protector-strong -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/generic-hardened-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + CFLAGS='-O2 -g -grecord-gcc-switches -pipe -fstack-protector-strong -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/generic-hardened-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export 'LDFLAGS=-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld' + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld' + export CC=gcc + CC=gcc + export CC_FOR_TARGET=gcc + CC_FOR_TARGET=gcc + export GOOS=linux + GOOS=linux + export GOARCH=arm64 + GOARCH=arm64 + export 'GO_LDFLAGS=-s -w' + GO_LDFLAGS='-s -w' + ./make.bash --no-clean -v Building Go cmd/dist using /usr/lib/golang. (go1.21.4 linux/arm64) cmd/dist/buildtool.go:16:2: cannot find package "go/version" in any of: /usr/lib/golang/src/go/version (from $GOROOT) /builddir/go/src/go/version (from $GOPATH) found packages main (build.go) and building_Go_requires_Go_1_22_6_or_later (notgo122.go) in /builddir/build/BUILD/go/src/cmd/dist error: Bad exit status from /var/tmp/rpm-tmp.ySzVVU (%build) line 120: It's not recommended to have unversioned Obsoletes: Obsoletes: golang-bin line 121: It's not recommended to have unversioned Obsoletes: Obsoletes: golang-shared line 122: It's not recommended to have unversioned Obsoletes: Obsoletes: golang-docs Bad exit status from /var/tmp/rpm-tmp.ySzVVU (%build) RPM build warnings: RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/golang.spec\n', 1)] 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 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 aarch64 --nodeps /builddir/build/SPECS/golang.spec