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/ed.spec'], chrootPath='/var/lib/mock/dist-oc9-build-41075-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/ed.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: Macro expanded in comment on line 7: %{name}-%{version}.tar.lz Building target platforms: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/ed-1.18-3.oc9.src.rpm RPM build warnings: Macro expanded in comment on line 7: %{name}-%{version}.tar.lz Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/ed.spec'], chrootPath='/var/lib/mock/dist-oc9-build-41075-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/ed.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: Macro expanded in comment on line 7: %{name}-%{version}.tar.lz Building target platforms: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.4QQLUn + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf ed-1.18 + /usr/bin/gzip -dc /builddir/build/SOURCES/ed-1.18.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd ed-1.18 + /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.2DCwUF + umask 022 + cd /builddir/build/BUILD + cd ed-1.18 + CFLAGS='-O2 -g' + export CFLAGS + CXXFLAGS='-O2 -g' + export CXXFLAGS + FFLAGS='-O2 -g ' + export FFLAGS + FCFLAGS='-O2 -g ' + export FCFLAGS + LDFLAGS= + export LDFLAGS + ./configure --host=aarch64-opencloudos-linux-gnu --build=aarch64-opencloudos-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info configure: WARNING: unrecognized option: '--host=aarch64-opencloudos-linux-gnu' configure: WARNING: unrecognized option: '--build=aarch64-opencloudos-linux-gnu' configure: WARNING: unrecognized option: '--disable-dependency-tracking' configure: WARNING: unrecognized option: '--sbindir=/usr/sbin' configure: WARNING: unrecognized option: '--sysconfdir=/etc' configure: WARNING: unrecognized option: '--datadir=/usr/share' configure: WARNING: unrecognized option: '--includedir=/usr/include' configure: WARNING: unrecognized option: '--libdir=/usr/lib64' configure: WARNING: unrecognized option: '--libexecdir=/usr/libexec' configure: WARNING: unrecognized option: '--localstatedir=/var' configure: WARNING: unrecognized option: '--sharedstatedir=/var/lib' creating config.status creating Makefile VPATH = . prefix = /usr exec_prefix = /usr bindir = /usr/bin datarootdir = $(prefix)/share infodir = /usr/share/info mandir = /usr/share/man program_prefix = CC = gcc CPPFLAGS = CFLAGS = -Wall -W -O2 LDFLAGS = OK. Now you can run make. + /usr/bin/make -O -j8 V=1 VERBOSE=1 'CFLAGS=-O2 -g' 'LDFLAGS=%{__global_ldflags}' gcc -O2 -g -c -o global.o global.c cat ./red.in > red chmod a+x red gcc -O2 -g -DPROGVERSION=\"1.18\" -c -o main.o main.c gcc -O2 -g -c -o signal.o signal.c gcc -O2 -g -c -o carg_parser.o carg_parser.c gcc -O2 -g -c -o io.o io.c gcc -O2 -g -c -o regex.o regex.c gcc -O2 -g -c -o buffer.o buffer.c gcc -O2 -g -c -o main_loop.o main_loop.c gcc -O2 -g %{__global_ldflags} -o ed buffer.o carg_parser.o global.o io.o main.o main_loop.o regex.o signal.o /usr/bin/ld: cannot find %{__global_ldflags}: No such file or directory collect2: error: ld returned 1 exit status make: *** [Makefile:45: ed] Error 1 RPM build warnings: RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.2DCwUF (%build) Macro expanded in comment on line 7: %{name}-%{version}.tar.lz Bad exit status from /var/tmp/rpm-tmp.2DCwUF (%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/ed.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/ed.spec