hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c -o sexec_suid-sexec.o `test -f 'sexec.c' || echo './'`sexec.c gcc -DHAVE_CONFIG_H -I. -DSINGULARITY_SUID -DSYSCONFDIR=\"/etc\" -DLOCALSTATEDIR=\"/var/lib\" -DLIBEXECDIR=\"/usr/libexec\" -DNS_CLONE_NEWPID -DNS_CLONE_FS -DNS_CLONE_NEWNS -DNS_CLONE_NEWUSER -DNS_CLONE_NEWIPC -DSINGULARITY_NO_NEW_PRIVS -DSINGULARITY_MS_SLAVE -DSINGULARITY_USERNS -DSINGULARITY_OVERLAYFS -Wall -fpie -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c -o util/sexec_suid-util.o `test -f 'util/util.c' || echo './'`util/util.c gcc -DHAVE_CONFIG_H -I. -DSINGULARITY_SUID -DSYSCONFDIR=\"/etc\" -DLOCALSTATEDIR=\"/var/lib\" -DLIBEXECDIR=\"/usr/libexec\" -DNS_CLONE_NEWPID -DNS_CLONE_FS -DNS_CLONE_NEWNS -DNS_CLONE_NEWUSER -DNS_CLONE_NEWIPC -DSINGULARITY_NO_NEW_PRIVS -DSINGULARITY_MS_SLAVE -DSINGULARITY_USERNS -DSINGULARITY_OVERLAYFS -Wall -fpie -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c -o util/sexec_suid-file.o `test -f 'util/file.c' || echo './'`util/file.c /bin/sh ../libtool --tag=CC --mode=link gcc -Wall -fpie -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -static -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o sexec-suid sexec_suid-sexec.o util/sexec_suid-util.o util/sexec_suid-file.o lib/libsingularity.la libtool: link: gcc -Wall -fpie -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wl,-z -Wl,relro -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o sexec-suid sexec_suid-sexec.o util/sexec_suid-util.o util/sexec_suid-file.o lib/.libs/libsingularity.so -Wl,-rpath -Wl,/builddir/build/BUILD/singularity-2.2.1/src/lib/.libs BUILDSTDERR: lib/.libs/libsingularity.so: undefined reference to `makedev' BUILDSTDERR: collect2: error: ld returned 1 exit status make[3]: Leaving directory '/builddir/build/BUILD/singularity-2.2.1/src' BUILDSTDERR: make[3]: *** [Makefile:551: sexec-suid] Error 1 BUILDSTDERR: make[2]: *** [Makefile:657: all-recursive] Error 1 make[2]: Leaving directory '/builddir/build/BUILD/singularity-2.2.1/src' make[1]: Leaving directory '/builddir/build/BUILD/singularity-2.2.1/src' BUILDSTDERR: make[1]: *** [Makefile:413: all] Error 2 BUILDSTDERR: make: *** [Makefile:397: all-recursive] Error 1 RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.RTaM7P (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.RTaM7P (%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/singularity.spec