urity -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 -Wall -Wno-pointer-sign -pipe -g -fPIC -I../../src/hd -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Lsrc net.c cc -c -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 -Wall -Wno-pointer-sign -pipe -g -I/builddir/build/BUILD/hwinfo-21.47/src/hd -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 -Wall -Wno-pointer-sign -pipe -g -fPIC -I../src/hd -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 -Wall -Wno-pointer-sign -pipe -g -fPIC -I../../src/hd -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Lsrc hd.c BUILDSTDERR: In file included from hd.c:59: BUILDSTDERR: hd.c: In function 'hd_scan': BUILDSTDERR: hd.c:1813:90: error: 'HD_ARCH' undeclared (first use in this function) BUILDSTDERR: ADD2LOG("libhd version %s%s (%s) [%ld]\n", HD_VERSION_STRING, getuid() ? "u" : "", HD_ARCH, sizeof (hd_data_t)); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: hd_int.h:66:46: note: in definition of macro 'ADD2LOG' BUILDSTDERR: #define ADD2LOG(a...) hd_log_printf(hd_data, a) BUILDSTDERR: ^ BUILDSTDERR: hd.c:1813:90: note: each undeclared identifier is reported only once for each function it appears in BUILDSTDERR: ADD2LOG("libhd version %s%s (%s) [%ld]\n", HD_VERSION_STRING, getuid() ? "u" : "", HD_ARCH, sizeof (hd_data_t)); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: hd_int.h:66:46: note: in definition of macro 'ADD2LOG' BUILDSTDERR: #define ADD2LOG(a...) hd_log_printf(hd_data, a) BUILDSTDERR: ^ BUILDSTDERR: hd.c: In function 'get_sysfs_attr': BUILDSTDERR: hd.c:6050:3: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(buf, 127, fp); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/builddir/build/BUILD/hwinfo-21.47/src/hd' BUILDSTDERR: make[2]: *** [../../Makefile.common:44: hd.o] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/hwinfo-21.47/src' BUILDSTDERR: make[1]: *** [../Makefile.common:52: subdirs] Error 2 BUILDSTDERR: make: *** [Makefile.common:52: subdirs] Error 2 RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.jT6kop (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.jT6kop (%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/hwinfo.spec