Mock Version: 2.8 Mock Version: 2.8 Mock Version: 2.8 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target loongarch64 --nodeps /builddir/build/SPECS/gc.spec'], chrootPath='/var/lib/mock/dist-an8.7-build-183391-60237/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 -bs --target loongarch64 --nodeps /builddir/build/SPECS/gc.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: loongarch64 Building for target loongarch64 Wrote: /builddir/build/SRPMS/gc-8.0.4-7.an8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target loongarch64 --nodeps /builddir/build/SPECS/gc.spec'], chrootPath='/var/lib/mock/dist-an8.7-build-183391-60237/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 -bb --target loongarch64 --nodeps /builddir/build/SPECS/gc.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: loongarch64 Building for target loongarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.IlV8F2 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf gc-8.0.4 + /usr/bin/gzip -dc /builddir/build/SOURCES/gc-8.0.4.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd gc-8.0.4 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/gc-7.6.4-dont_disable_exceptions.patch + /usr/bin/cat /builddir/build/SOURCES/1000-anolis-gc-7.6.4-add-loongarch.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.eXI8JV + umask 022 + cd /builddir/build/BUILD + cd gc-8.0.4 + rm -f libtool libtool.m4 + autoreconf -i -f libtoolize: putting auxiliary files in '.'. libtoolize: copying file './ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. libtoolize: copying file 'm4/libtool.m4' libtoolize: copying file 'm4/ltoptions.m4' libtoolize: copying file 'm4/ltsugar.m4' libtoolize: copying file 'm4/ltversion.m4' libtoolize: copying file 'm4/lt~obsolete.m4' configure.ac:32: installing './compile' configure.ac:25: installing './missing' Makefile.am: installing './depcomp' + CPPFLAGS=-DUSE_GET_STACKBASE_FOR_MAIN + export CPPFLAGS + CFLAGS='-O2 -g' + export CFLAGS + CXXFLAGS='-O2 -g' + 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.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' + 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' + '[' 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 --disable-static --disable-docs --enable-cplusplus --enable-large-config --enable-threads=posix checking build system type... loongarch64-Anolis-linux-gnu checking host system type... loongarch64-Anolis-linux-gnu checking target system type... loongarch64-Anolis-linux-gnu checking GC version numbers... major=8 minor=0 micro=4 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 whether make supports the include directive... yes (GNU style) checking for loongarch64-Anolis-linux-gcc... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... none checking for loongarch64-Anolis-linux-g++... no checking for loongarch64-Anolis-linux-c++... no checking for loongarch64-Anolis-linux-gpp... no checking for loongarch64-Anolis-linux-aCC... no checking for loongarch64-Anolis-linux-CC... no checking for loongarch64-Anolis-linux-cxx... no checking for loongarch64-Anolis-linux-cc++... no checking for loongarch64-Anolis-linux-cl.exe... no checking for loongarch64-Anolis-linux-FCC... no checking for loongarch64-Anolis-linux-KCC... no checking for loongarch64-Anolis-linux-RCC... no checking for loongarch64-Anolis-linux-xlC_r... no checking for loongarch64-Anolis-linux-xlC... no checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... none checking dependency style of gcc... none checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert loongarch64-Anolis-linux-gnu file names to loongarch64-Anolis-linux-gnu format... func_convert_file_noop checking how to convert loongarch64-Anolis-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for loongarch64-Anolis-linux-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for loongarch64-Anolis-linux-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for loongarch64-Anolis-linux-ar... no checking for ar... ar checking for archiver @FILE support... @ checking for loongarch64-Anolis-linux-strip... no checking for strip... strip checking for loongarch64-Anolis-linux-ranlib... no checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for loongarch64-Anolis-linux-mt... no checking for mt... no checking if : is a manifest tool... no checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... no checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking for inline... inline configure: WARNING: "Explicit GC_INIT() calls may be required." checking for pthread_self in -lpthread... yes checking whether compiler supports -Wextra... yes checking whether compiler supports -Wpedantic... yes checking for xlc... no checking whether compiler supports -fno-strict-aliasing... yes checking for getcontext... yes checking for dl_iterate_phdr... yes checking for dlopen in -ldl... yes checking execinfo.h usability... yes checking execinfo.h presence... yes checking for execinfo.h... yes checking whether to build shared libraries... yes checking whether compiler supports -fvisibility... yes checking which machine-dependent code should be used... checking whether Solaris gcc optimization fix is necessary... no checking for dladdr... yes checking for sigsetjmp... yes checking sys/dg_sys_info.h usability... no checking sys/dg_sys_info.h presence... no checking for sys/dg_sys_info.h... no checking for compiler intrinsics support... yes checking which libatomic_ops to use... none checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating bdw-gc.pc config.status: creating include/config.h config.status: executing depfiles commands config.status: executing libtool commands config.status: executing default commands + /usr/bin/make -O -j4 make[1]: Entering directory '/builddir/build/BUILD/gc-8.0.4' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I./include -I./include -DGC_PTHREAD_START_STANDALONE -DUSE_GET_STACKBASE_FOR_MAIN -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -O2 -g -fno-strict-aliasing -c -o pthread_start.lo pthread_start.c libtool: compile: gcc -DHAVE_CONFIG_H -I./include -I./include -DGC_PTHREAD_START_STANDALONE -DUSE_GET_STACKBASE_FOR_MAIN -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -O2 -g -fno-strict-aliasing -c pthread_start.c -fPIC -DPIC -o .libs/pthread_start.o make[1]: Leaving directory '/builddir/build/BUILD/gc-8.0.4' In file included from ./include/private/gc_priv.h:123, from ./include/private/pthread_support.h:21, from pthread_start.c:37: ./include/private/gcconfig.h:709:5: error: #error The collector has not been ported to this machine/OS combination # error The collector has not been ported to this machine/OS combination ^~~~~ In file included from ./include/private/gc_priv.h:123, from ./include/private/pthread_support.h:21, from pthread_start.c:37: ./include/private/gcconfig.h:3067:3: error: #error Undefined ALIGNMENT # error Undefined ALIGNMENT ^~~~~ make[1]: *** [Makefile:1652: pthread_start.lo] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Entering directory '/builddir/build/BUILD/gc-8.0.4' /bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I./include -I./include -DGC_PTHREAD_START_STANDALONE -DUSE_GET_STACKBASE_FOR_MAIN -fexceptions -Wall -Wextra -Wpedantic -Wno-long-long -O2 -g -c -o gc_cpp.lo gc_cpp.cc libtool: compile: g++ -DHAVE_CONFIG_H -I./include -I./include -DGC_PTHREAD_START_STANDALONE -DUSE_GET_STACKBASE_FOR_MAIN -fexceptions -Wall -Wextra -Wpedantic -Wno-long-long -O2 -g -c gc_cpp.cc -fPIC -DPIC -o .libs/gc_cpp.o make[1]: Leaving directory '/builddir/build/BUILD/gc-8.0.4' make[1]: Entering directory '/builddir/build/BUILD/gc-8.0.4' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I./include -I./include -DGC_PTHREAD_START_STANDALONE -DUSE_GET_STACKBASE_FOR_MAIN -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -O2 -g -fno-strict-aliasing -c -o extra/gc.lo extra/gc.c libtool: compile: gcc -DHAVE_CONFIG_H -I./include -I./include -DGC_PTHREAD_START_STANDALONE -DUSE_GET_STACKBASE_FOR_MAIN -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -O2 -g -fno-strict-aliasing -c extra/gc.c -fPIC -DPIC -o extra/.libs/gc.o make[1]: Leaving directory '/builddir/build/BUILD/gc-8.0.4' In file included from ./include/private/gc_priv.h:123, from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gcconfig.h:709:5: error: #error The collector has not been ported to this machine/OS combination # error The collector has not been ported to this machine/OS combination ^~~~~ In file included from ./include/private/gc_priv.h:123, from ./include/private/dbg_mlc.h:28, from extra/../backgraph.c:15, from extra/gc.c:40: ./include/private/gcconfig.h:3067:3: error: #error Undefined ALIGNMENT # error Undefined ALIGNMENT ^~~~~ In file included from extra/gc.c:47: extra/../ptr_chck.c: In function 'GC_is_visible': extra/../ptr_chck.c:191:20: error: 'ALIGNMENT' undeclared (first use in this function) if ((word)p & (ALIGNMENT - 1)) goto fail; ^~~~~~~~~ extra/../ptr_chck.c:191:20: note: each undeclared identifier is reported only once for each function it appears in In file included from extra/gc.c:53: extra/../finalize.c: In function 'GC_general_register_disappearing_link': extra/../finalize.c:252:24: error: 'ALIGNMENT' undeclared (first use in this function) if (((word)link & (ALIGNMENT-1)) != 0 || !NONNULL_ARG_NOT_NULL(link)) ^~~~~~~~~ extra/../finalize.c: In function 'GC_unregister_disappearing_link': extra/../finalize.c:301:24: error: 'ALIGNMENT' undeclared (first use in this function) if (((word)link & (ALIGNMENT-1)) != 0) return(0); /* Nothing to do. */ ^~~~~~~~~ extra/../finalize.c: In function 'GC_register_long_link': extra/../finalize.c:516:24: error: 'ALIGNMENT' undeclared (first use in this function) if (((word)link & (ALIGNMENT-1)) != 0 || !NONNULL_ARG_NOT_NULL(link)) ^~~~~~~~~ extra/../finalize.c: In function 'GC_unregister_long_link': extra/../finalize.c:527:24: error: 'ALIGNMENT' undeclared (first use in this function) if (((word)link & (ALIGNMENT-1)) != 0) return(0); /* Nothing to do. */ ^~~~~~~~~ extra/../finalize.c: In function 'GC_move_disappearing_link': extra/../finalize.c:603:28: error: 'ALIGNMENT' undeclared (first use in this function) if (((word)new_link & (ALIGNMENT-1)) != 0 ^~~~~~~~~ extra/../finalize.c: In function 'GC_move_long_link': extra/../finalize.c:621:30: error: 'ALIGNMENT' undeclared (first use in this function) if (((word)new_link & (ALIGNMENT-1)) != 0 ^~~~~~~~~ extra/../finalize.c: In function 'GC_ignore_self_finalize_mark_proc': extra/../finalize.c:659:51: error: 'ALIGNMENT' undeclared (first use in this function) for (q = p; (word)q <= (word)scan_limit; q += ALIGNMENT) { ^~~~~~~~~ In file included from extra/gc.c:57: extra/../mark.c: In function 'GC_mark_from': extra/../mark.c:720:35: error: 'ALIGNMENT' undeclared (first use in this function) limit += sizeof(word) - ALIGNMENT; ^~~~~~~~~ extra/../mark.c: In function 'GC_push_all': extra/../mark.c:1343:39: error: 'ALIGNMENT' undeclared (first use in this function) bottom = (void *)(((word)bottom + ALIGNMENT-1) & ~(ALIGNMENT-1)); ^~~~~~~~~ extra/../mark.c: In function 'GC_push_selected': extra/../mark.c:1375:39: error: 'ALIGNMENT' undeclared (first use in this function) bottom = (ptr_t)(((word) bottom + ALIGNMENT-1) & ~(ALIGNMENT-1)); ^~~~~~~~~ extra/../mark.c: In function 'GC_push_all_eager': extra/../mark.c:1578:42: error: 'ALIGNMENT' undeclared (first use in this function) word * b = (word *)(((word) bottom + ALIGNMENT-1) & ~(ALIGNMENT-1)); ^~~~~~~~~ In file included from extra/gc.c:63: extra/../os_dep.c: In function 'GC_get_main_stack_base': extra/../os_dep.c:1288:9: error: #error None of HEURISTIC* and *STACKBOTTOM defined! # error None of HEURISTIC* and *STACKBOTTOM defined! ^~~~~ extra/../os_dep.c: In function 'GC_register_data_segments': extra/../os_dep.c:2041:19: error: 'DATASTART' undeclared (first use in this function); did you mean 'ERESTART'? if ((word)DATASTART - 1U >= (word)DATAEND) { ^~~~~~~~~ ERESTART make[1]: *** [Makefile:1652: extra/gc.lo] Error 1 make[1]: Entering directory '/builddir/build/BUILD/gc-8.0.4' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I./include -I./include -DGC_PTHREAD_START_STANDALONE -DUSE_GET_STACKBASE_FOR_MAIN -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -O2 -g -fno-strict-aliasing -c -o cord/libcord_la-cordbscs.lo `test -f 'cord/cordbscs.c' || echo './'`cord/cordbscs.c libtool: compile: gcc -DHAVE_CONFIG_H -I./include -I./include -DGC_PTHREAD_START_STANDALONE -DUSE_GET_STACKBASE_FOR_MAIN -fexceptions -DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden -Wall -Wextra -Wpedantic -Wno-long-long -O2 -g -fno-strict-aliasing -c cord/cordbscs.c -fPIC -DPIC -o cord/.libs/libcord_la-cordbscs.o make[1]: Leaving directory '/builddir/build/BUILD/gc-8.0.4' make: *** [Makefile:1871: all-recursive] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.eXI8JV (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.eXI8JV (%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 loongarch64 --nodeps /builddir/build/SPECS/gc.spec