Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/fakeroot.spec'], chrootPath='/var/lib/mock/dist-ocs23-loongarch64-build-148282-9859/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=981gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/fakeroot.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/fakeroot-1.29-4.ocs23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/fakeroot.spec'], chrootPath='/var/lib/mock/dist-ocs23-loongarch64-build-148282-9859/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=981gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/fakeroot.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.BxRRjQ + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf fakeroot-1.29 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/fakeroot_1.29.orig.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd fakeroot-1.29 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/debian_fix-shell-in-fakeroot.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/also-wrap-stat-library-call.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/fakeroot-inttypes.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/fakeroot-multilib.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/relax_tartest.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.6xXr3F + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd fakeroot-1.29 + ./bootstrap autoreconf: export WARNINGS= autoreconf: Entering directory '.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force -I build-aux autoreconf: configure.ac: tracing autoreconf: running: libtoolize --copy --force libtoolize: putting auxiliary files in '.'. libtoolize: copying file './ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'build-aux'. libtoolize: copying file 'build-aux/libtool.m4' libtoolize: copying file 'build-aux/ltoptions.m4' libtoolize: copying file 'build-aux/ltsugar.m4' libtoolize: copying file 'build-aux/ltversion.m4' libtoolize: copying file 'build-aux/lt~obsolete.m4' autoreconf: configure.ac: not using Intltool autoreconf: configure.ac: not using Gtkdoc autoreconf: running: aclocal --force -I build-aux autoreconf: running: /usr/bin/autoconf --force configure.ac:374: warning: AC_CHECK_FUNCS($WRAPPED): you should use literals ./lib/autoconf/functions.m4:117: AC_CHECK_FUNCS is expanded from... configure.ac:374: the top level autoreconf: running: /usr/bin/autoheader --force autoreconf: running: automake --add-missing --copy --force-missing configure.ac:11: installing './compile' configure.ac:7: installing './missing' Makefile.am: installing './depcomp' autoreconf: './config.guess' is updated autoreconf: Leaving directory '.' + cd doc + po4a -k 0 --rm-backups --variable srcdir=../doc/ po4a/po4a.cfg + mkdir obj-sysv + pushd obj-sysv ~/build/BUILD/fakeroot-1.29/obj-sysv ~/build/BUILD/fakeroot-1.29 + ../configure --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib64/libfakeroot --disable-dependency-tracking --disable-static --with-ipc=sysv --program-suffix=-sysv checking build system type... loongarch64-unknown-linux-gnu checking host system type... loongarch64-unknown-linux-gnu checking target system type... loongarch64-unknown-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free 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 sets $(MAKE)... (cached) yes checking how to print strings... printf checking whether make supports the include directive... yes (GNU style) 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 the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... none 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-unknown-linux-gnu file names to loongarch64-unknown-linux-gnu format... func_convert_file_noop checking how to convert loongarch64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for file... file checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip 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 mt... no checking if : is a manifest tool... no checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.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... yes 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 which IPC method to use... (cached) sysv checking whether SysV IPC message queues are actually working on the host... Yes checking which database format to use... (cached) inode checking for dlopen in -ldl... yes checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking for fcntl.h... yes checking for unistd.h... (cached) yes checking for features.h... yes checking for sys/feature_tests.h... no checking for pthread.h... yes checking for stdint.h... (cached) yes checking for inttypes.h... (cached) yes checking for grp.h... yes checking for endian.h... yes checking for sys/sysmacros.h... yes checking for sys/socket.h... yes checking for sys/acl.h... yes checking for sys/capability.h... yes checking for sys/xattr.h... yes checking for fts.h... yes checking for an ANSI C-conforming const... yes checking for mode_t... yes checking for off_t... yes checking for size_t... yes checking for return value and second and third argument of readlink... ssize_t, char, size_t checking for first argument of setgroups... size_t checking for union semun... no checking for type of arg of __xmknod... needs * checking for type of arg of __xmknodat... needs * checking for type of arg of initgroups... gid_t checking for type of arg of setreuid... gid_t checking for type of arg of setregid... gid_t checking for type of second arg to stat... struct stat * checking for d_off in struct dirent... yes checking for d_type in struct dirent... yes checking for acl_t struct... yes checking for fchmodat... yes checking for fchownat... yes checking for fstatat... yes checking for mkdirat... yes checking for mknodat... yes checking for openat... yes checking for renameat... yes checking for unlinkat... yes checking for lchmod... yes checking for fgetattrlist... no checking for library containing acl_get_fd... -lacl checking for acl_get_fd... yes checking for library containing acl_trivial... no checking for acl_trivial... no checking for capset... yes checking for listxattr... yes checking for llistxattr... yes checking for flistxattr... yes checking for getxattr... yes checking for lgetxattr... yes checking for fgetxattr... yes checking for setxattr... yes checking for lsetxattr... yes checking for fsetxattr... yes checking for removexattr... yes checking for lremovexattr... yes checking for fremovexattr... yes checking for statx... yes checking for __xstat... no checking for _xstat... no checking for __stat13... no checking for stat... yes checking for __sxtat... no checking for _sxtat... no checking for __stat13... (cached) no checking for stat... (cached) yes checking for __fxstat... no checking for _fxstat... no checking for __fstat13... no checking for fstat... yes checking for __lxstat... no checking for _lxstat... no checking for __lstat13... no checking for lstat... yes checking for __fxstatat... no checking for _fxstatat... no checking for __fstatat13... no checking for fstatat... (cached) yes checking for __xstat64... no checking for _xstat64... no checking for __stat6413... no checking for stat64... yes checking for __fxstat64... no checking for _fxstat64... no checking for __fstat6413... no checking for fstat64... yes checking for __lxstat64... no checking for _lxstat64... no checking for __lstat6413... no checking for lstat64... yes checking for __fxstatat64... no checking for _fxstatat64... no checking for __fstatat6413... no checking for fstatat64... yes checking for __xmknod... no checking for _xmknod... no checking for __mknod13... no checking for mknod... yes checking for __xmknodat... no checking for _xmknodat... no checking for __mknodat13... no checking for mknodat... (cached) yes created fakerootconfig.h checking for strdup... yes checking for strstr... yes checking for getresuid... yes checking for setresuid... yes checking for getresgid... yes checking for setresgid... yes checking for setfsuid... yes checking for setfsgid... yes checking for fts_read... yes checking for fts_children... yes checking for gcc options needed to detect all undeclared functions... none needed checking whether setenv is declared... yes checking whether unsetenv is declared... yes checking for setenv... yes checking for MacOS X/Darwin... no checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating scripts/Makefile config.status: creating doc/Makefile config.status: creating doc/de/Makefile config.status: creating doc/es/Makefile config.status: creating doc/fr/Makefile config.status: creating doc/nl/Makefile config.status: creating doc/pt/Makefile config.status: creating doc/sv/Makefile config.status: creating test/Makefile config.status: creating test/defs config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands + /usr/bin/make -O -j32 V=1 VERBOSE=1 /usr/bin/make all-recursive Making all in doc Making all in de make[3]: Nothing to be done for 'all'. Making all in es make[3]: Nothing to be done for 'all'. Making all in fr make[3]: Nothing to be done for 'all'. Making all in nl make[3]: Nothing to be done for 'all'. Making all in pt make[3]: Nothing to be done for 'all'. Making all in sv make[3]: Nothing to be done for 'all'. make[3]: Nothing to be done for 'all-am'. Making all in scripts make[2]: Entering directory '/builddir/build/BUILD/fakeroot-1.29/obj-sysv/scripts' sed -e 's,[@]prefix[@],/usr,g' -e 's,[@]bindir[@],/usr/bin,g' -e 's,[@]libdir[@],/usr/lib64/libfakeroot,g' -e 's,[@]fakeroot_transformed[@],'`echo fakeroot | sed -e 's&$&-sysv&'`',g' -e 's,[@]faked_transformed[@],'`echo faked | sed -e 's&$&-sysv&'`',g' -e 's,[@]signal[@],TERM,g' -e 's,[@]SHELL[@],/bin/sh,g' -e 's,[@]VERSION[@],1.29,g' -e 's,[@]DLSUFFIX[@],.so,g' -e 's,[@]LDLIBPATHVAR[@],LD_LIBRARY_PATH,g' -e 's,[@]LDPRELOADVAR[@],LD_PRELOAD,g' -e 's,[@]LDPRELOADABS[@],0,g' -e 's,[@]LDEXTRAVAR[@],,g' -e 's,[@]MACOSX_FALSE[@],,g' -e 's,[@]MACOSX_TRUE[@],#,g' < ../../scripts/fakeroot.in > fakeroot chmod +x fakeroot make[2]: Leaving directory '/builddir/build/BUILD/fakeroot-1.29/obj-sysv/scripts' Making all in test make[2]: Nothing to be done for 'all'. make[2]: Entering directory '/builddir/build/BUILD/fakeroot-1.29/obj-sysv' awk -f ../wrapawk < ../wrapfunc.inp make[2]: Leaving directory '/builddir/build/BUILD/fakeroot-1.29/obj-sysv' awk: ../wrapawk:27: warning: regexp escape sequence `\#' is not a known regexp operator make[2]: Entering directory '/builddir/build/BUILD/fakeroot-1.29/obj-sysv' gcc -DHAVE_CONFIG_H -I. -I.. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -c -o simple.o ../simple.c make[2]: Leaving directory '/builddir/build/BUILD/fakeroot-1.29/obj-sysv' make[2]: Entering directory '/builddir/build/BUILD/fakeroot-1.29/obj-sysv' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -c -o libfakeroot_inode64.lo ../libfakeroot_inode64.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -c ../libfakeroot_inode64.c -fPIC -DPIC -o .libs/libfakeroot_inode64.o make[2]: Leaving directory '/builddir/build/BUILD/fakeroot-1.29/obj-sysv' make[2]: Entering directory '/builddir/build/BUILD/fakeroot-1.29/obj-sysv' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -c -o libfakeroot_unix2003.lo ../libfakeroot_unix2003.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -c ../libfakeroot_unix2003.c -fPIC -DPIC -o .libs/libfakeroot_unix2003.o make[2]: Leaving directory '/builddir/build/BUILD/fakeroot-1.29/obj-sysv' make[2]: Entering directory '/builddir/build/BUILD/fakeroot-1.29/obj-sysv' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -c -o libfakeroot.lo ../libfakeroot.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -c ../libfakeroot.c -fPIC -DPIC -o .libs/libfakeroot.o make[2]: Leaving directory '/builddir/build/BUILD/fakeroot-1.29/obj-sysv' ../libfakeroot.c: In function 'load_library_symbols': ../libfakeroot.c:292:15: warning: variable 'msg' set but not used [-Wunused-but-set-variable] 292 | const char *msg; | ^~~ In file included from ../communicate.h:19, from ../libfakeroot.c:65: ../libfakeroot.c: At top level: ./config.h:349:20: error: conflicting types for 'mknod'; have 'int(const char *, mode_t, dev_t *)' {aka 'int(const char *, unsigned int, long unsigned int *)'} 349 | #define WRAP_MKNOD mknod | ^~~~~ ../libfakeroot.c:1095:5: note: in expansion of macro 'WRAP_MKNOD' 1095 | int WRAP_MKNOD MKNOD_ARG(int ver UNUSED, | ^~~~~~~~~~ In file included from ../communicate.h:85: /usr/include/sys/stat.h:404:12: note: previous declaration of 'mknod' with type 'int(const char *, __mode_t, __dev_t)' {aka 'int(const char *, unsigned int, long unsigned int)'} 404 | extern int mknod (const char *__path, __mode_t __mode, __dev_t __dev) | ^~~~~ ./config.h:355:22: error: conflicting types for 'mknodat'; have 'int(int, const char *, mode_t, dev_t *)' {aka 'int(int, const char *, unsigned int, long unsigned int *)'} 355 | #define WRAP_MKNODAT mknodat | ^~~~~~~ ../libfakeroot.c:1132:5: note: in expansion of macro 'WRAP_MKNODAT' 1132 | int WRAP_MKNODAT MKNODAT_ARG(int ver UNUSED, | ^~~~~~~~~~~~ /usr/include/sys/stat.h:411:12: note: previous declaration of 'mknodat' with type 'int(int, const char *, __mode_t, __dev_t)' {aka 'int(int, const char *, unsigned int, long unsigned int)'} 411 | extern int mknodat (int __fd, const char *__path, __mode_t __mode, | ^~~~~~~ ../libfakeroot.c:1391:7: error: redefinition of 'lstat' 1391 | int lstat(const char *file_name, struct stat *statbuf) { | ^~~~~ /usr/include/sys/stat.h:313:12: note: previous definition of 'lstat' with type 'int(const char * restrict, struct stat * restrict)' 313 | extern int lstat (const char *__restrict __file, | ^~~~~ ../libfakeroot.c:1394:7: error: redefinition of 'stat' 1394 | int stat(const char *file_name, struct stat *st) { | ^~~~ /usr/include/sys/stat.h:205:12: note: previous definition of 'stat' with type 'int(const char * restrict, struct stat * restrict)' 205 | extern int stat (const char *__restrict __file, | ^~~~ ../libfakeroot.c:1397:7: error: redefinition of 'fstat' 1397 | int fstat(int fd, struct stat *st) { | ^~~~~ /usr/include/sys/stat.h:210:12: note: previous definition of 'fstat' with type 'int(int, struct stat *)' 210 | extern int fstat (int __fd, struct stat *__buf) __THROW __nonnull ((2)); | ^~~~~ ../libfakeroot.c:1402:9: error: redefinition of 'fstatat' 1402 | int fstatat(int dir_fd, const char *path, struct stat *st, int flags) { | ^~~~~~~ /usr/include/sys/stat.h:264:12: note: previous definition of 'fstatat' with type 'int(int, const char * restrict, struct stat * restrict, int)' 264 | extern int fstatat (int __fd, const char *__restrict __file, | ^~~~~~~ ../libfakeroot.c:1408:9: error: redefinition of 'lstat64' 1408 | int lstat64(const char *file_name, struct stat64 *st) { | ^~~~~~~ /usr/include/sys/stat.h:338:12: note: previous definition of 'lstat64' with type 'int(const char * restrict, struct stat64 * restrict)' 338 | extern int lstat64 (const char *__restrict __file, | ^~~~~~~ ../libfakeroot.c:1411:9: error: redefinition of 'stat64' 1411 | int stat64(const char *file_name, struct stat64 *st) { | ^~~~~~ /usr/include/sys/stat.h:240:12: note: previous definition of 'stat64' with type 'int(const char * restrict, struct stat64 * restrict)' 240 | extern int stat64 (const char *__restrict __file, | ^~~~~~ ../libfakeroot.c:1414:9: error: redefinition of 'fstat64' 1414 | int fstat64(int fd, struct stat64 *st) { | ^~~~~~~ /usr/include/sys/stat.h:242:12: note: previous definition of 'fstat64' with type 'int(int, struct stat64 *)' 242 | extern int fstat64 (int __fd, struct stat64 *__buf) __THROW __nonnull ((2)); | ^~~~~~~ ../libfakeroot.c:1419:11: error: redefinition of 'fstatat64' 1419 | int fstatat64(int dir_fd, const char *path, struct stat64 *st, int flags) { | ^~~~~~~~~ /usr/include/sys/stat.h:291:12: note: previous definition of 'fstatat64' with type 'int(int, const char * restrict, struct stat64 * restrict, int)' 291 | extern int fstatat64 (int __fd, const char *__restrict __file, | ^~~~~~~~~ make[2]: *** [Makefile:673: libfakeroot.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Entering directory '/builddir/build/BUILD/fakeroot-1.29/obj-sysv' /bin/sh ./libtool --tag=CC --mode=link gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1 -o libmacosx.la libfakeroot_inode64.lo libfakeroot_unix2003.lo -ldl libtool: link: ar cr .libs/libmacosx.a .libs/libfakeroot_inode64.o .libs/libfakeroot_unix2003.o libtool: link: ranlib .libs/libmacosx.a libtool: link: ( cd ".libs" && rm -f "libmacosx.la" && ln -s "../libmacosx.la" "libmacosx.la" ) make[2]: Leaving directory '/builddir/build/BUILD/fakeroot-1.29/obj-sysv' make[2]: Entering directory '/builddir/build/BUILD/fakeroot-1.29/obj-sysv' /bin/sh ./libtool --tag=CC --mode=link gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1 -o simple simple.o -ldl libtool: link: gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1 -o simple simple.o -ldl make[2]: Leaving directory '/builddir/build/BUILD/fakeroot-1.29/obj-sysv' make[2]: Entering directory '/builddir/build/BUILD/fakeroot-1.29/obj-sysv' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -c -o communicate.lo ../communicate.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -c ../communicate.c -fPIC -DPIC -o .libs/communicate.o make[2]: Leaving directory '/builddir/build/BUILD/fakeroot-1.29/obj-sysv' make[2]: Entering directory '/builddir/build/BUILD/fakeroot-1.29/obj-sysv' gcc -DHAVE_CONFIG_H -I. -I.. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -c -o faked.o ../faked.c make[2]: Leaving directory '/builddir/build/BUILD/fakeroot-1.29/obj-sysv' ../faked.c: In function 'process_chmod': ../faked.c:795:47: warning: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~' [-Wparentheses] 795 | ((buf->st.mode&S_IFMT) != S_IFREG || (!st->mode&(S_IFBLK|S_IFCHR)))) { | ^~~~~~~~~ ../faked.c: In function 'process_setxattr': ../faked.c:930:17: warning: unused variable 'new_node' [-Wunused-variable] 930 | xattr_node_t *new_node = NULL; | ^~~~~~~~ ../faked.c:929:18: warning: unused variable 'x_ref' [-Wunused-variable] 929 | xattr_node_t **x_ref = NULL; | ^~~~~ make[1]: *** [Makefile:691: all-recursive] Error 1 make: *** [Makefile:460: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.6xXr3F (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.6xXr3F (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/fakeroot.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.10/site-packages/mockbuild/util.py", line 598, 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 loongarch64 --nodeps /builddir/build/SPECS/fakeroot.spec