a/build-riscv64-redhat-linux/io/lxstat.os -MD -MP -MF /builddir/build/BUILD/glibc-2.28-44-gf44c2ca5ea/build-riscv64-redhat-linux/io/lxstat.os.dt -MT /builddir/build/BUILD/glibc-2.28-44-gf44c2ca5ea/build-riscv64-redhat-linux/io/lxstat.os make[2]: Leaving directory '/builddir/build/BUILD/glibc-2.28-44-gf44c2ca5ea/io' BUILDSTDERR: In file included from ../sysdeps/riscv/nptl/tls.h:34, BUILDSTDERR: from ../include/errno.h:25, BUILDSTDERR: from ../sysdeps/unix/sysv/linux/generic/lxstat.c:22: BUILDSTDERR: ../sysdeps/unix/sysv/linux/generic/lxstat.c: In function '__lxstat': BUILDSTDERR: ../sysdeps/unix/sysv/linux/riscv/sysdep.h:120:31: error: '__NR3264_fstatat' undeclared (first use in this function); did you mean '__fxstatat'? BUILDSTDERR: #define SYS_ify(syscall_name) __NR_##syscall_name BUILDSTDERR: ^~~~~ BUILDSTDERR: ../sysdeps/unix/sysv/linux/riscv/sysdep.h:232:38: note: in definition of macro 'internal_syscall4' BUILDSTDERR: register long int __a7 asm ("a7") = number; \ BUILDSTDERR: ^~~~~~ BUILDSTDERR: ../sysdeps/unix/sysv/linux/riscv/sysdep.h:151:24: note: in expansion of macro 'SYS_ify' BUILDSTDERR: internal_syscall##nr (SYS_ify (name), err, args) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: ../sysdeps/unix/sysv/linux/riscv/sysdep.h:135:30: note: in expansion of macro 'INTERNAL_SYSCALL' BUILDSTDERR: long int __sys_result = INTERNAL_SYSCALL (name, err, nr, args); \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: ../sysdeps/unix/sysv/linux/generic/lxstat.c:36:12: note: in expansion of macro 'INLINE_SYSCALL' BUILDSTDERR: return INLINE_SYSCALL (newfstatat, 4, AT_FDCWD, name, buf, BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: ../sysdeps/unix/sysv/linux/riscv/sysdep.h:120:31: note: each undeclared identifier is reported only once for each function it appears in BUILDSTDERR: #define SYS_ify(syscall_name) __NR_##syscall_name BUILDSTDERR: ^~~~~ BUILDSTDERR: ../sysdeps/unix/sysv/linux/riscv/sysdep.h:232:38: note: in definition of macro 'internal_syscall4' BUILDSTDERR: register long int __a7 asm ("a7") = number; \ BUILDSTDERR: ^~~~~~ BUILDSTDERR: ../sysdeps/unix/sysv/linux/riscv/sysdep.h:151:24: note: in expansion of macro 'SYS_ify' BUILDSTDERR: internal_syscall##nr (SYS_ify (name), err, args) BUILDSTDERR: ^~~~~~~ BUILDSTDERR: ../sysdeps/unix/sysv/linux/riscv/sysdep.h:135:30: note: in expansion of macro 'INTERNAL_SYSCALL' BUILDSTDERR: long int __sys_result = INTERNAL_SYSCALL (name, err, nr, args); \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: ../sysdeps/unix/sysv/linux/generic/lxstat.c:36:12: note: in expansion of macro 'INLINE_SYSCALL' BUILDSTDERR: return INLINE_SYSCALL (newfstatat, 4, AT_FDCWD, name, buf, BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: make[2]: *** [/builddir/build/BUILD/glibc-2.28-44-gf44c2ca5ea/build-riscv64-redhat-linux/sysd-rules:127: /builddir/build/BUILD/glibc-2.28-44-gf44c2ca5ea/build-riscv64-redhat-linux/io/lxstat.os] Error 1 BUILDSTDERR: make[1]: *** [Makefile:258: io/subdir_lib] Error 2 BUILDSTDERR: make: *** [Makefile:9: all] Error 2 RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.oI4Rhf (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.oI4Rhf (%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 96, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 626, in do 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 riscv64 --nodeps /builddir/build/SPECS/glibc.spec