Mock Version: 2.8 Mock Version: 2.8 Mock Version: 2.8 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild --nocheck -bs --target loongarch64 --nodeps /builddir/build/SPECS/gmp.spec'], chrootPath='/var/lib/mock/dist-an8-loongarch64-only-build-40409-20354/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=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild --nocheck -bs --target loongarch64 --nodeps /builddir/build/SPECS/gmp.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 13: %{version}.tar.xz Building target platforms: loongarch64 Building for target loongarch64 Wrote: /builddir/build/SRPMS/gmp-6.1.2-10.0.1.an8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild --nocheck -bb --target loongarch64 --nodeps /builddir/build/SPECS/gmp.spec'], chrootPath='/var/lib/mock/dist-an8-loongarch64-only-build-40409-20354/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=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild --nocheck -bb --target loongarch64 --nodeps /builddir/build/SPECS/gmp.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 13: %{version}.tar.xz Building target platforms: loongarch64 Building for target loongarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.owjPq0 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf gmp-6.1.2 + /usr/bin/bzip2 -dc /builddir/build/SOURCES/gmp-6.1.2.tar.bz2 + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd gmp-6.1.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/git init -q + /usr/bin/git config user.name rpm-build + /usr/bin/git config user.email '' + /usr/bin/git add . + /usr/bin/git commit -q --allow-empty -a --author 'rpm-build ' -m 'gmp-6.1.2 base' + /usr/bin/cat /builddir/build/SOURCES/gmp-6.0.0-debuginfo.patch + /usr/bin/git apply --index - + /usr/bin/git commit -q -m gmp-6.0.0-debuginfo.patch --author 'rpm-build ' + /usr/bin/cat /builddir/build/SOURCES/gmp-fcf-protection.patch + /usr/bin/git apply --index - :1962: trailing whitespace. dnl This is needed for a -fcf-protection :1980: space before tab in indent. .align 8 warning: 2 lines add whitespace errors. + /usr/bin/git commit -q -m gmp-fcf-protection.patch --author 'rpm-build ' + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.rERxkK + umask 022 + cd /builddir/build/BUILD + cd gmp-6.1.2 + autoreconf -ifv autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force autoreconf: configure.ac: tracing autoreconf: running: libtoolize --copy --force libtoolize: putting auxiliary files in '.'. libtoolize: copying file './ltmain.sh' libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac, libtoolize: and rerunning libtoolize and aclocal. libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am. libtoolize: 'AC_PROG_RANLIB' is rendered obsolete by 'LT_INIT' autoreconf: running: /usr/bin/autoconf --force autoreconf: running: /usr/bin/autoheader --force autoreconf: running: automake --add-missing --copy --force-missing configure.ac:2385: installing './compile' configure.ac:80: installing './missing' Makefile.am:295: warning: source file 'cxx/dummy.cc' is in a subdirectory, Makefile.am:295: but option 'subdir-objects' is disabled automake: warning: possible forward-incompatibility. automake: At least a source file is in a subdirectory, but the 'subdir-objects' automake: automake option hasn't been enabled. For now, the corresponding output automake: object file(s) will be placed in the top-level directory. However, automake: this behaviour will change in future Automake versions: they will automake: unconditionally cause object files to be placed in the same subdirectory automake: of the corresponding sources. automake: You are advised to start using 'subdir-objects' option throughout your automake: project, to avoid future incompatibilities. autoreconf: Leaving directory `.' + as --help + grep -q execstack + export 'CCAS=gcc -c -Wa,--noexecstack' + CCAS='gcc -c -Wa,--noexecstack' + '[' 1 = 1 ']' ++ find . -name config.guess + for i in $(find . -name config.guess) ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess '/usr/lib/rpm/redhat/config.guess' -> './config.guess' + '[' 1 = 1 ']' ++ find . -name config.sub + for i in $(find . -name config.sub) ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub '/usr/lib/rpm/redhat/config.sub' -> './config.sub' + export 'CCAS=gcc -c -Wa,--noexecstack -Wa,--generate-missing-build-notes=yes' + CCAS='gcc -c -Wa,--noexecstack -Wa,--generate-missing-build-notes=yes' ++ echo -O2 -g + export 'CFLAGS=-O2 -g -fplugin=annobin' + CFLAGS='-O2 -g -fplugin=annobin' ++ echo -O2 -g + export 'CXXFLAGS=-O2 -g -fplugin=annobin' + CXXFLAGS='-O2 -g -fplugin=annobin' + CFLAGS='-O2 -g -fplugin=annobin' + export CFLAGS + CXXFLAGS='-O2 -g -fplugin=annobin' + export CXXFLAGS + FFLAGS='-O2 -g -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + 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.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess '/usr/lib/rpm/redhat/config.guess' -> './config.guess' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub '/usr/lib/rpm/redhat/config.sub' -> './config.sub' + '[' 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"~' ./ltmain.sh + ./configure --build=loongarch64-Anolis-linux --host=loongarch64-Anolis-linux --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 --enable-cxx --enable-fat configure: WARNING: unrecognized options: --disable-dependency-tracking checking build system type... loongarch64-Anolis-linux-gnu checking host system type... loongarch64-Anolis-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether to enable maintainer-specific portions of Makefiles... no checking ABI=standard checking compiler gcc -O2 -g -fplugin=annobin ... no checking whether cc is gcc... yes checking compiler cc -O2 -g -fplugin=annobin ... no checking for loongarch64-Anolis-linux-gcc... no checking for gcc... gcc checking whether the C compiler works... no configure: error: in `/builddir/build/BUILD/gmp-6.1.2': configure: error: C compiler cannot create executables See `config.log' for more details RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.rERxkK (%build) Macro expanded in comment on line 13: %{version}.tar.xz Bad exit status from /var/tmp/rpm-tmp.rERxkK (%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 --nocheck -bb --target loongarch64 --nodeps /builddir/build/SPECS/gmp.spec