Mock Version: 2.12 Mock Version: 2.12 Mock Version: 2.12 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/annobin.spec'], chrootPath='/var/lib/mock/dist-circle8_5-gcc-toolset-11-build-46425-11478/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 --target aarch64 --nodeps /builddir/build/SPECS/annobin.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/annobin-9.85-1.el8_5.1.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/annobin.spec'], chrootPath='/var/lib/mock/dist-circle8_5-gcc-toolset-11-build-46425-11478/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 --target aarch64 --nodeps /builddir/build/SPECS/annobin.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.xbKZsp + umask 022 + cd /builddir/build/BUILD Requires: (gcc >= 8 and gcc < 9) + '[' -z 8.5.0-3 ']' + echo 'Requires: (gcc >= 8 and gcc < 9)' + cd /builddir/build/BUILD + rm -rf annobin-9.85 + /usr/bin/xz -dc /builddir/build/SOURCES/annobin-9.85.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd annobin-9.85 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #1 (annobin.unicode.patch): + echo 'Patch #1 (annobin.unicode.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Makefile.in patching file annocheck/Makefile.in patching file annocheck/hardened.c patching file configure patching file doc/Makefile.in patching file doc/annobin.info patching file doc/annobin.texi patching file gcc-plugin/Makefile.in patching file scripts/Makefile.in patching file tests/Makefile.am patching file tests/Makefile.in patching file tests/unicode-test patching file tests/trick-hello.s + chmod +x tests/unicode-test + touch aclocal.m4 gcc-plugin/config.h.in + touch configure gcc-plugin/configure Makefile.in annocheck/Makefile.in clang-plugin/Makefile.in doc/Makefile.in gcc-plugin/Makefile.in llvm-plugin/Makefile.in scripts/Makefile.in tests/Makefile.in + touch doc/annobin.info + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.rMXKPq + umask 022 + cd /builddir/build/BUILD + cd annobin-9.85 + export 'CFLAGS= -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/include' + CFLAGS=' -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/include' + export 'LDFLAGS= -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/lib64 -L/usr/lib' + LDFLAGS=' -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/lib64 -L/usr/lib' + CONFIG_ARGS=--quiet + CONFIG_ARGS='--quiet --without-debuginfod' + CONFIG_ARGS='--quiet --without-debuginfod --with-gcc-plugin-dir=/usr/lib/gcc/aarch64-redhat-linux/8/plugin' + CFLAGS=' -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/include' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS=' -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/lib64 -L/usr/lib' + export LDFLAGS + CFLAGS=' -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/include' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS=' -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/lib64 -L/usr/lib' + export LDFLAGS + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config/config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config/config.sub ++ basename ./config/config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config/config.sub '/usr/lib/rpm/redhat/config.sub' -> './config/config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config/config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config/config.guess ++ basename ./config/config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config/config.guess '/usr/lib/rpm/redhat/config.guess' -> './config/config.guess' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./gcc-plugin/config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./gcc-plugin/config.sub ++ basename ./gcc-plugin/config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./gcc-plugin/config.sub '/usr/lib/rpm/redhat/config.sub' -> './gcc-plugin/config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./gcc-plugin/config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./gcc-plugin/config.guess ++ basename ./gcc-plugin/config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./gcc-plugin/config.guess '/usr/lib/rpm/redhat/config.guess' -> './gcc-plugin/config.guess' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' ++ find . -name ltmain.sh + for i in $(find . -name ltmain.sh) + /usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld"~' ./config/ltmain.sh + for i in $(find . -name ltmain.sh) + /usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld"~' ./gcc-plugin/ltmain.sh + ./configure --build=aarch64-redhat-linux-gnu --host=aarch64-redhat-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 --quiet --without-debuginfod --with-gcc-plugin-dir=/usr/lib/gcc/aarch64-redhat-linux/8/plugin + /usr/bin/make -O -j16 Making all in doc make[1]: Entering directory '/builddir/build/BUILD/annobin-9.85/doc' touch run-on-binaries-in.1 perl ./texi2pod.pl -Dman -Drun-on-binaries-in < ./annobin.texi > run-on-binaries-in.pod (pod2man --center="RPM Development Tools" --release="annobin-1" --section=1 run-on-binaries-in.pod | sed -e '/^.if n .na/d' > run-on-binaries-in.1.T$$ && \ mv -f run-on-binaries-in.1.T$$ run-on-binaries-in.1) || (rm -f run-on-binaries-in.1.T$$ && exit 1) rm -f run-on-binaries-in.pod make[1]: Leaving directory '/builddir/build/BUILD/annobin-9.85/doc' make[1]: Entering directory '/builddir/build/BUILD/annobin-9.85/doc' touch check-abi.1 perl ./texi2pod.pl -Dman -Dcheck-abi < ./annobin.texi > check-abi.pod (pod2man --center="RPM Development Tools" --release="annobin-1" --section=1 check-abi.pod | sed -e '/^.if n .na/d' > check-abi.1.T$$ && \ mv -f check-abi.1.T$$ check-abi.1) || (rm -f check-abi.1.T$$ && exit 1) rm -f check-abi.pod make[1]: Leaving directory '/builddir/build/BUILD/annobin-9.85/doc' make[1]: Entering directory '/builddir/build/BUILD/annobin-9.85/doc' touch built-by.1 perl ./texi2pod.pl -Dman -Dbuilt-by < ./annobin.texi > built-by.pod (pod2man --center="RPM Development Tools" --release="annobin-1" --section=1 built-by.pod | sed -e '/^.if n .na/d' > built-by.1.T$$ && \ mv -f built-by.1.T$$ built-by.1) || (rm -f built-by.1.T$$ && exit 1) rm -f built-by.pod make[1]: Leaving directory '/builddir/build/BUILD/annobin-9.85/doc' make[1]: Entering directory '/builddir/build/BUILD/annobin-9.85/doc' touch hardened.1 perl ./texi2pod.pl -Dman -Dhardened < ./annobin.texi > hardened.pod (pod2man --center="RPM Development Tools" --release="annobin-1" --section=1 hardened.pod | sed -e '/^.if n .na/d' > hardened.1.T$$ && \ mv -f hardened.1.T$$ hardened.1) || (rm -f hardened.1.T$$ && exit 1) rm -f hardened.pod make[1]: Leaving directory '/builddir/build/BUILD/annobin-9.85/doc' make[1]: Entering directory '/builddir/build/BUILD/annobin-9.85/doc' touch annobin.1 perl ./texi2pod.pl -Dman -Dannobin < ./annobin.texi > annobin.pod (pod2man --center="RPM Development Tools" --release="annobin-1" --section=1 annobin.pod | sed -e '/^.if n .na/d' > annobin.1.T$$ && \ mv -f annobin.1.T$$ annobin.1) || (rm -f annobin.1.T$$ && exit 1) rm -f annobin.pod make[1]: Leaving directory '/builddir/build/BUILD/annobin-9.85/doc' make[1]: Entering directory '/builddir/build/BUILD/annobin-9.85/doc' touch annocheck.1 perl ./texi2pod.pl -Dman -Dannocheck < ./annobin.texi > annocheck.pod (pod2man --center="RPM Development Tools" --release="annobin-1" --section=1 annocheck.pod | sed -e '/^.if n .na/d' > annocheck.1.T$$ && \ mv -f annocheck.1.T$$ annocheck.1) || (rm -f annocheck.1.T$$ && exit 1) rm -f annocheck.pod make[1]: Leaving directory '/builddir/build/BUILD/annobin-9.85/doc' Making all in gcc-plugin /usr/bin/make all-am make[2]: Entering directory '/builddir/build/BUILD/annobin-9.85/gcc-plugin' /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I'..' -I'..' -I/usr/lib/gcc/aarch64-redhat-linux/8/plugin/include -I/usr/lib/gcc/aarch64-redhat-linux/8/plugin/include -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c -o aarch64.annobin.lo aarch64.annobin.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/lib/gcc/aarch64-redhat-linux/8/plugin/include -I/usr/lib/gcc/aarch64-redhat-linux/8/plugin/include -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c aarch64.annobin.cc -fPIC -DPIC -o .libs/aarch64.annobin.o make[2]: Leaving directory '/builddir/build/BUILD/annobin-9.85/gcc-plugin' In file included from aarch64.annobin.cc:16: aarch64.annobin.cc: In function 'void record_branch_protection_note(bool, annobin_function_info*)': aarch64.annobin.cc:49:50: error: 'OPT_mbranch_protection_' was not declared in this scope const char * optval = GET_STR_OPTION_BY_INDEX (OPT_mbranch_protection_); ^~~~~~~~~~~~~~~~~~~~~~~ annobin.h:185:72: note: in definition of macro 'GET_STR_OPTION_BY_INDEX' #define GET_STR_OPTION_BY_INDEX(INDX) annobin_get_str_option_by_index (INDX) ^~~~ aarch64.annobin.cc:49:50: note: suggested alternative: 'OPT_fcf_protection_' const char * optval = GET_STR_OPTION_BY_INDEX (OPT_mbranch_protection_); ^~~~~~~~~~~~~~~~~~~~~~~ annobin.h:185:72: note: in definition of macro 'GET_STR_OPTION_BY_INDEX' #define GET_STR_OPTION_BY_INDEX(INDX) annobin_get_str_option_by_index (INDX) ^~~~ aarch64.annobin.cc: At global scope: aarch64.annobin.cc:46:1: warning: 'void record_branch_protection_note(bool, annobin_function_info*)' defined but not used [-Wunused-function] record_branch_protection_note (bool is_global, annobin_function_info * info) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: *** [Makefile:466: aarch64.annobin.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Entering directory '/builddir/build/BUILD/annobin-9.85/gcc-plugin' /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I'..' -I'..' -I/usr/lib/gcc/aarch64-redhat-linux/8/plugin/include -I/usr/lib/gcc/aarch64-redhat-linux/8/plugin/include -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c -o annobin.lo annobin.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/lib/gcc/aarch64-redhat-linux/8/plugin/include -I/usr/lib/gcc/aarch64-redhat-linux/8/plugin/include -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c annobin.cc -fPIC -DPIC -o .libs/annobin.o make[2]: Leaving directory '/builddir/build/BUILD/annobin-9.85/gcc-plugin' make[1]: *** [Makefile:366: all] Error 2 make: *** [Makefile:429: all-recursive] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.rMXKPq (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.rMXKPq (%build) Child return code was: 1 EXCEPTION: [Error()] 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 600, 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/annobin.spec