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/libbsd.spec'], chrootPath='/var/lib/mock/dist-an8.7-dde-la64-build-156926-58418/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/libbsd.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/libbsd-0.9.1-4.an8_6.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target loongarch64 --nodeps /builddir/build/SPECS/libbsd.spec'], chrootPath='/var/lib/mock/dist-an8.7-dde-la64-build-156926-58418/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/libbsd.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.JMb7cU + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf libbsd-0.9.1 + /usr/bin/xz -dc /builddir/build/SOURCES/libbsd-0.9.1.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd libbsd-0.9.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.VYKbuX + umask 022 + cd /builddir/build/BUILD + cd libbsd-0.9.1 + 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 ./build-aux/config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./build-aux/config.guess ++ basename ./build-aux/config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./build-aux/config.guess '/usr/lib/rpm/redhat/config.guess' -> './build-aux/config.guess' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./build-aux/config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./build-aux/config.sub ++ basename ./build-aux/config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./build-aux/config.sub '/usr/lib/rpm/redhat/config.sub' -> './build-aux/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"~' ./build-aux/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 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 make supports nested variables... (cached) yes checking for style of include used by make... GNU 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 how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -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 minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking build system type... loongarch64-Anolis-linux-gnu checking host system type... loongarch64-Anolis-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed 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 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... yes checking for loongarch64-Anolis-linux-gcc... gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking whether gcc understands -c and -o together... (cached) yes checking dependency style of gcc... (cached) none checking whether ln -s works... yes checking for unif01_CreateExternGenBits in -ltestu01... no checking for library containing clock_gettime... none required checking sys/ndir.h usability... no checking sys/ndir.h presence... no checking for sys/ndir.h... no checking sys/dir.h usability... yes checking sys/dir.h presence... yes checking for sys/dir.h... yes checking ndir.h usability... no checking ndir.h presence... no checking for ndir.h... no checking dirent.h usability... yes checking dirent.h presence... yes checking for dirent.h... yes checking for inline... inline checking for typeof syntax and keyword spelling... typeof checking for int64_t... yes checking for mode_t... yes checking for off_t... yes checking for pid_t... yes checking for uid_t in sys/types.h... yes checking for size_t... yes checking for ssize_t... yes checking whether F_CLOSEM is declared... no checking for GNU .init_array section support... yes checking for program_invocation_short_name... yes checking for __progname... yes checking for clearenv... yes checking for dirfd... yes checking for fopencookie... yes checking for __fpurge... yes checking for getauxval... yes checking for getentropy... yes checking for getexecname... no checking for getline... yes checking for pstat_getproc... no checking for sysconf... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating include/Makefile config.status: creating man/Makefile config.status: creating src/Makefile config.status: creating src/libbsd.pc config.status: creating src/libbsd-ctor.pc config.status: creating src/libbsd-overlay.pc config.status: creating test/Makefile config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands + /usr/bin/make -O -j4 V=1 /usr/bin/make all-recursive Making all in include make[2]: Nothing to be done for 'all'. Making all in man make[2]: Nothing to be done for 'all'. Making all in src make[2]: Entering directory '/builddir/build/BUILD/libbsd-0.9.1/src' gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c -o setproctitle_ctor.o setproctitle_ctor.c make[2]: Leaving directory '/builddir/build/BUILD/libbsd-0.9.1/src' make[2]: Entering directory '/builddir/build/BUILD/libbsd-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c -o arc4random_uniform.lo arc4random_uniform.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c arc4random_uniform.c -fPIC -DPIC -o .libs/arc4random_uniform.o libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c arc4random_uniform.c -o arc4random_uniform.o >/dev/null 2>&1 make[2]: Leaving directory '/builddir/build/BUILD/libbsd-0.9.1/src' make[2]: Entering directory '/builddir/build/BUILD/libbsd-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c -o bsd_getopt.lo bsd_getopt.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c bsd_getopt.c -fPIC -DPIC -o .libs/bsd_getopt.o libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c bsd_getopt.c -o bsd_getopt.o >/dev/null 2>&1 make[2]: Leaving directory '/builddir/build/BUILD/libbsd-0.9.1/src' make[2]: Entering directory '/builddir/build/BUILD/libbsd-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c -o closefrom.lo closefrom.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c closefrom.c -fPIC -DPIC -o .libs/closefrom.o libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c closefrom.c -o closefrom.o >/dev/null 2>&1 make[2]: Leaving directory '/builddir/build/BUILD/libbsd-0.9.1/src' make[2]: Entering directory '/builddir/build/BUILD/libbsd-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c -o err.lo err.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c err.c -fPIC -DPIC -o .libs/err.o libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c err.c -o err.o >/dev/null 2>&1 make[2]: Leaving directory '/builddir/build/BUILD/libbsd-0.9.1/src' make[2]: Entering directory '/builddir/build/BUILD/libbsd-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c -o dehumanize_number.lo dehumanize_number.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c dehumanize_number.c -fPIC -DPIC -o .libs/dehumanize_number.o libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c dehumanize_number.c -o dehumanize_number.o >/dev/null 2>&1 make[2]: Leaving directory '/builddir/build/BUILD/libbsd-0.9.1/src' make[2]: Entering directory '/builddir/build/BUILD/libbsd-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c -o explicit_bzero.lo explicit_bzero.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c explicit_bzero.c -fPIC -DPIC -o .libs/explicit_bzero.o libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c explicit_bzero.c -o explicit_bzero.o >/dev/null 2>&1 make[2]: Leaving directory '/builddir/build/BUILD/libbsd-0.9.1/src' make[2]: Entering directory '/builddir/build/BUILD/libbsd-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c -o expand_number.lo expand_number.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c expand_number.c -fPIC -DPIC -o .libs/expand_number.o libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c expand_number.c -o expand_number.o >/dev/null 2>&1 make[2]: Leaving directory '/builddir/build/BUILD/libbsd-0.9.1/src' make[2]: Entering directory '/builddir/build/BUILD/libbsd-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c -o fgetln.lo fgetln.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c fgetln.c -fPIC -DPIC -o .libs/fgetln.o libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c fgetln.c -o fgetln.o >/dev/null 2>&1 make[2]: Leaving directory '/builddir/build/BUILD/libbsd-0.9.1/src' make[2]: Entering directory '/builddir/build/BUILD/libbsd-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c -o fgetwln.lo fgetwln.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c fgetwln.c -fPIC -DPIC -o .libs/fgetwln.o libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c fgetwln.c -o fgetwln.o >/dev/null 2>&1 make[2]: Leaving directory '/builddir/build/BUILD/libbsd-0.9.1/src' make[2]: Entering directory '/builddir/build/BUILD/libbsd-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c -o flopen.lo flopen.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c flopen.c -fPIC -DPIC -o .libs/flopen.o libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c flopen.c -o flopen.o >/dev/null 2>&1 make[2]: Leaving directory '/builddir/build/BUILD/libbsd-0.9.1/src' make[2]: Entering directory '/builddir/build/BUILD/libbsd-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c -o arc4random.lo arc4random.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c arc4random.c -fPIC -DPIC -o .libs/arc4random.o libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c arc4random.c -o arc4random.o >/dev/null 2>&1 make[2]: Leaving directory '/builddir/build/BUILD/libbsd-0.9.1/src' make[2]: Entering directory '/builddir/build/BUILD/libbsd-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c -o fpurge.lo fpurge.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c fpurge.c -fPIC -DPIC -o .libs/fpurge.o libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c fpurge.c -o fpurge.o >/dev/null 2>&1 make[2]: Leaving directory '/builddir/build/BUILD/libbsd-0.9.1/src' make[2]: Entering directory '/builddir/build/BUILD/libbsd-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c -o fmtcheck.lo fmtcheck.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c fmtcheck.c -fPIC -DPIC -o .libs/fmtcheck.o libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c fmtcheck.c -o fmtcheck.o >/dev/null 2>&1 make[2]: Leaving directory '/builddir/build/BUILD/libbsd-0.9.1/src' make[2]: Entering directory '/builddir/build/BUILD/libbsd-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c -o funopen.lo funopen.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c funopen.c -fPIC -DPIC -o .libs/funopen.o libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c funopen.c -o funopen.o >/dev/null 2>&1 make[2]: Leaving directory '/builddir/build/BUILD/libbsd-0.9.1/src' make[2]: Entering directory '/builddir/build/BUILD/libbsd-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c -o fparseln.lo fparseln.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c fparseln.c -fPIC -DPIC -o .libs/fparseln.o libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c fparseln.c -o fparseln.o >/dev/null 2>&1 make[2]: Leaving directory '/builddir/build/BUILD/libbsd-0.9.1/src' make[2]: Entering directory '/builddir/build/BUILD/libbsd-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c -o getpeereid.lo getpeereid.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c getpeereid.c -fPIC -DPIC -o .libs/getpeereid.o libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c getpeereid.c -o getpeereid.o >/dev/null 2>&1 make[2]: Leaving directory '/builddir/build/BUILD/libbsd-0.9.1/src' make[2]: Entering directory '/builddir/build/BUILD/libbsd-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c -o getbsize.lo getbsize.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c getbsize.c -fPIC -DPIC -o .libs/getbsize.o libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c getbsize.c -o getbsize.o >/dev/null 2>&1 make[2]: Leaving directory '/builddir/build/BUILD/libbsd-0.9.1/src' make[2]: Entering directory '/builddir/build/BUILD/libbsd-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c -o heapsort.lo heapsort.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c heapsort.c -fPIC -DPIC -o .libs/heapsort.o libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c heapsort.c -o heapsort.o >/dev/null 2>&1 make[2]: Leaving directory '/builddir/build/BUILD/libbsd-0.9.1/src' make[2]: Entering directory '/builddir/build/BUILD/libbsd-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c -o humanize_number.lo humanize_number.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c humanize_number.c -fPIC -DPIC -o .libs/humanize_number.o libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c humanize_number.c -o humanize_number.o >/dev/null 2>&1 make[2]: Leaving directory '/builddir/build/BUILD/libbsd-0.9.1/src' make[2]: Entering directory '/builddir/build/BUILD/libbsd-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c -o inet_net_pton.lo inet_net_pton.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c inet_net_pton.c -fPIC -DPIC -o .libs/inet_net_pton.o libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c inet_net_pton.c -o inet_net_pton.o >/dev/null 2>&1 make[2]: Leaving directory '/builddir/build/BUILD/libbsd-0.9.1/src' make[2]: Entering directory '/builddir/build/BUILD/libbsd-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c -o nlist.lo nlist.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c nlist.c -fPIC -DPIC -o .libs/nlist.o make[2]: Leaving directory '/builddir/build/BUILD/libbsd-0.9.1/src' In file included from nlist.c:44: local-elf.h:238:2: error: #error Unknown ELF machine type #error Unknown ELF machine type ^~~~~ local-elf.h:261:2: error: #error Unknown ELF class #error Unknown ELF class ^~~~~ nlist.c:62:17: error: unknown type name 'Elf_Ehdr'; did you mean 'Elf64_Ehdr'? __elf_is_okay__(Elf_Ehdr *ehdr) ^~~~~~~~ Elf64_Ehdr nlist.c:89:36: error: unknown type name 'Elf_Sym'; did you mean 'Elf64_Sym'? elf_sym_to_nlist(struct nlist *nl, Elf_Sym *s, Elf_Shdr *shdr, int shnum) ^~~~~~~ Elf64_Sym nlist.c:89:48: error: unknown type name 'Elf_Shdr'; did you mean 'Elf64_Shdr'? elf_sym_to_nlist(struct nlist *nl, Elf_Sym *s, Elf_Shdr *shdr, int shnum) ^~~~~~~~ Elf64_Shdr nlist.c: In function '__fdnlist': nlist.c:124:2: error: unknown type name 'Elf_Off'; did you mean 'Elf64_Off'? Elf_Off symoff = 0, symstroff = 0; ^~~~~~~ Elf64_Off nlist.c:125:2: error: unknown type name 'Elf_Word'; did you mean 'Elf64_Word'? Elf_Word symsize = 0, symstrsize = 0; ^~~~~~~~ Elf64_Word nlist.c:126:2: error: unknown type name 'Elf_Sword'; did you mean 'Elf64_Sword'? Elf_Sword cc, i; ^~~~~~~~~ Elf64_Sword nlist.c:129:2: error: unknown type name 'Elf_Sym'; did you mean 'Elf64_Sym'? Elf_Sym sbuf[1024]; ^~~~~~~ Elf64_Sym nlist.c:130:2: error: unknown type name 'Elf_Sym'; did you mean 'Elf64_Sym'? Elf_Sym *s; ^~~~~~~ Elf64_Sym nlist.c:131:2: error: unknown type name 'Elf_Ehdr'; did you mean 'Elf64_Ehdr'? Elf_Ehdr ehdr; ^~~~~~~~ Elf64_Ehdr nlist.c:133:2: error: unknown type name 'Elf_Shdr'; did you mean 'Elf64_Shdr'? Elf_Shdr *shdr = NULL; ^~~~~~~~ Elf64_Shdr nlist.c:134:2: error: unknown type name 'Elf_Word'; did you mean 'Elf64_Word'? Elf_Word shdr_size; ^~~~~~~~ Elf64_Word nlist.c:139:29: error: 'Elf_Ehdr' undeclared (first use in this function); did you mean 'Elf64_Ehdr'? read(fd, &ehdr, sizeof(Elf_Ehdr)) != sizeof(Elf_Ehdr) || ^~~~~~~~ Elf64_Ehdr nlist.c:139:29: note: each undeclared identifier is reported only once for each function it appears in nlist.c:140:7: warning: implicit declaration of function '__elf_is_okay__' [-Wimplicit-function-declaration] !__elf_is_okay__(&ehdr) || ^~~~~~~~~~~~~~~ nlist.c:145:18: error: request for member 'e_shentsize' in something not a structure or union shdr_size = ehdr.e_shentsize * ehdr.e_shnum; ^ nlist.c:145:37: error: request for member 'e_shnum' in something not a structure or union shdr_size = ehdr.e_shentsize * ehdr.e_shnum; ^ nlist.c:158:52: error: request for member 'e_shoff' in something not a structure or union if (pread(fd, shdr, (size_t)shdr_size, (off_t)ehdr.e_shoff) < 0) ^ nlist.c:167:22: error: request for member 'e_shnum' in something not a structure or union for (i = 0; i < ehdr.e_shnum; i++) { ^ nlist.c:168:14: error: request for member 'sh_type' in something not a structure or union if (shdr[i].sh_type == SHT_SYMTAB) { ^ nlist.c:169:20: error: request for member 'sh_offset' in something not a structure or union symoff = shdr[i].sh_offset; ^ nlist.c:170:21: error: request for member 'sh_size' in something not a structure or union symsize = shdr[i].sh_size; ^ nlist.c:171:28: error: request for member 'sh_link' in something not a structure or union symstroff = shdr[shdr[i].sh_link].sh_offset; ^ nlist.c:172:29: error: request for member 'sh_link' in something not a structure or union symstrsize = shdr[shdr[i].sh_link].sh_size; ^ nlist.c:232:21: error: request for member 'st_name' in something not a structure or union name = strtab + s->st_name; ^~ nlist.c:240:6: warning: implicit declaration of function 'elf_sym_to_nlist' [-Wimplicit-function-declaration] elf_sym_to_nlist(p, s, shdr, ^~~~~~~~~~~~~~~~ nlist.c:241:14: error: request for member 'e_shnum' in something not a structure or union ehdr.e_shnum); ^ make[2]: *** [Makefile:638: nlist.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Entering directory '/builddir/build/BUILD/libbsd-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c -o progname.lo progname.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c progname.c -fPIC -DPIC -o .libs/progname.o libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c progname.c -o progname.o >/dev/null 2>&1 make[2]: Leaving directory '/builddir/build/BUILD/libbsd-0.9.1/src' make[2]: Entering directory '/builddir/build/BUILD/libbsd-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c -o merge.lo merge.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c merge.c -fPIC -DPIC -o .libs/merge.o libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c merge.c -o merge.o >/dev/null 2>&1 make[2]: Leaving directory '/builddir/build/BUILD/libbsd-0.9.1/src' make[2]: Entering directory '/builddir/build/BUILD/libbsd-0.9.1/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c -o pidfile.lo pidfile.c libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c pidfile.c -fPIC -DPIC -o .libs/pidfile.o libtool: compile: gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -O2 -g -c pidfile.c -o pidfile.o >/dev/null 2>&1 make[2]: Leaving directory '/builddir/build/BUILD/libbsd-0.9.1/src' make[1]: *** [Makefile:409: all-recursive] Error 1 make: *** [Makefile:341: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.VYKbuX (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.VYKbuX (%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/libbsd.spec