Mock Version: 4.1 Mock Version: 4.1 Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/bzip2.spec'], chrootPath='/var/lib/mock/dist-oc9-build-40786-14591/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=86400uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/bzip2.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: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/bzip2-1.0.8-3.oc9.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/bzip2.spec'], chrootPath='/var/lib/mock/dist-oc9-build-40786-14591/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=86400uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/bzip2.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: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.1Cg8xz + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf bzip2-1.0.8 + /usr/bin/gzip -dc /builddir/build/SOURCES/bzip2-1.0.8.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd bzip2-1.0.8 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/patch0001-makefile-libbz2_so.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.cEadKY + umask 022 + cd /builddir/build/BUILD + cd bzip2-1.0.8 + /usr/bin/make -O -j8 V=1 VERBOSE=1 -f Makefile-libbz2_so 'CFLAGS=-O2 -g -D_FILE_OFFSET_BITS=64 -fpic -fPIC' all gcc -O2 -g -D_FILE_OFFSET_BITS=64 -fpic -fPIC -c randtable.c gcc -O2 -g -D_FILE_OFFSET_BITS=64 -fpic -fPIC -c crctable.c gcc -O2 -g -D_FILE_OFFSET_BITS=64 -fpic -fPIC -c huffman.c gcc -O2 -g -D_FILE_OFFSET_BITS=64 -fpic -fPIC -c blocksort.c gcc -O2 -g -D_FILE_OFFSET_BITS=64 -fpic -fPIC -c bzlib.c gcc -O2 -g -D_FILE_OFFSET_BITS=64 -fpic -fPIC -c decompress.c gcc -O2 -g -D_FILE_OFFSET_BITS=64 -fpic -fPIC -c compress.c gcc -O2 -g -D_FILE_OFFSET_BITS=64 -fpic -fPIC -shared -Wl,-soname,libbz2.so.1 -o libbz2.so.1.0.8 blocksort.o huffman.o crctable.o randtable.o compress.o decompress.o bzlib.o gcc -O2 -g -D_FILE_OFFSET_BITS=64 -fpic -fPIC -o bzip2-shared bzip2.c libbz2.so.1.0.8 rm -f libbz2.so.1.0 ln -s libbz2.so.1.0.8 libbz2.so.1.0 + rm -f blocksort.o bzlib.o compress.o crctable.o decompress.o huffman.o randtable.o + /usr/bin/make -O -j8 V=1 VERBOSE=1 'CFLAGS=-O2 -g -D_FILE_OFFSET_BITS=64' 'LDFLAGS=%{__global_ldflags}' all gcc -O2 -g -D_FILE_OFFSET_BITS=64 -c randtable.c gcc -O2 -g -D_FILE_OFFSET_BITS=64 -c crctable.c gcc -O2 -g -D_FILE_OFFSET_BITS=64 -c huffman.c gcc -O2 -g -D_FILE_OFFSET_BITS=64 -c bzip2recover.c gcc -O2 -g -D_FILE_OFFSET_BITS=64 %{__global_ldflags} -o bzip2recover bzip2recover.o /usr/bin/ld: cannot find %{__global_ldflags}: No such file or directory collect2: error: ld returned 1 exit status make: *** [Makefile:44: bzip2recover] Error 1 make: *** Waiting for unfinished jobs.... If compilation produces errors, or a large number of warnings, please read README.COMPILATION.PROBLEMS -- you might be able to adjust the flags in this Makefile to improve matters. Also in README.COMPILATION.PROBLEMS are some hints that may help if your build produces an executable which is unable to correctly handle so-called 'large files' -- files of size 2GB or more. gcc -O2 -g -D_FILE_OFFSET_BITS=64 -c blocksort.c gcc -O2 -g -D_FILE_OFFSET_BITS=64 -c bzip2.c gcc -O2 -g -D_FILE_OFFSET_BITS=64 -c bzlib.c gcc -O2 -g -D_FILE_OFFSET_BITS=64 -c decompress.c gcc -O2 -g -D_FILE_OFFSET_BITS=64 -c compress.c RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.cEadKY (%build) Bad exit status from /var/tmp/rpm-tmp.cEadKY (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/bzip2.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 597, 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 --noclean --target aarch64 --nodeps /builddir/build/SPECS/bzip2.spec