t %d\n on '%s'", n, buf); BUILDSTDERR: ^~ ~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from host.c:5: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 43 and 1076 bytes into a destination of size 1024 BUILDSTDERR: return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: host.c: In function 'route_and_arp': BUILDSTDERR: host.c:130:53: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] BUILDSTDERR: "echo 1 > /proc/sys/net/ipv4/conf/%.9s/proxy_arp", dev); BUILDSTDERR: ^ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from host.c:5: BUILDSTDERR: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 44 and 53 bytes into a destination of size 52 BUILDSTDERR: return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: host.c: In function 'no_route_and_arp': BUILDSTDERR: host.c:152:53: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] BUILDSTDERR: "echo 0 > /proc/sys/net/ipv4/conf/%.9s/proxy_arp", dev); BUILDSTDERR: ^ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from host.c:5: BUILDSTDERR: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 44 and 53 bytes into a destination of size 52 BUILDSTDERR: return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -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 -D_FILE_OFFSET_BITS=64 -DTUNTAP -o uml_net ethertap.o host.o output.o slip.o uml_net.o tuntap.o BUILDSTDERR: /usr/bin/ld: host.o: in function `snprintf': BUILDSTDERR: /usr/include/bits/stdio2.h:67: undefined reference to `makedev' BUILDSTDERR: collect2: error: ld returned 1 exit status make[1]: Leaving directory '/builddir/build/BUILD/tools-20070815/uml_net' BUILDSTDERR: make[1]: *** [Makefile:18: uml_net] Error 1 BUILDSTDERR: make: *** [Makefile:21: all] Error 2 RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.pJy283 (%build) BUILDSTDERR: Macro expanded in comment on line 51: %{_libdir}/uml/functions BUILDSTDERR: Macro expanded in comment on line 52: %{_bindir}/mkrootfs BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.pJy283 (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.7/site-packages/mockbuild/util.py", line 636, 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/uml_utilities.spec