.libs/libcpuid.ver libtool: link: echo "local: *; };" >> .libs/libcpuid.ver libtool: link: gcc -shared -fPIC -DPIC .libs/cpuid_main.o .libs/recog_intel.o .libs/recog_amd.o .libs/rdtsc.o .libs/asm-bits.o .libs/libcpuid_util.o .libs/rdmsr.o .libs/msrdriver.o -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -O2 -g -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-soname -Wl,libcpuid.so.14 -Wl,-version-script -Wl,.libs/libcpuid.ver -o .libs/libcpuid.so.14.0.1 libtool: link: (cd ".libs" && rm -f "libcpuid.so.14" && ln -s "libcpuid.so.14.0.1" "libcpuid.so.14") libtool: link: (cd ".libs" && rm -f "libcpuid.so" && ln -s "libcpuid.so.14.0.1" "libcpuid.so") libtool: link: ( cd ".libs" && rm -f "libcpuid.la" && ln -s "../libcpuid.la" "libcpuid.la" ) make[2]: Leaving directory '/builddir/build/BUILD/libcpuid-0.4.1/libcpuid' Making all in cpuid_tool make[2]: Entering directory '/builddir/build/BUILD/libcpuid-0.4.1/cpuid_tool' gcc -DHAVE_CONFIG_H -I. -I.. -I../libcpuid -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 cpuid_tool.o cpuid_tool.c make[2]: Leaving directory '/builddir/build/BUILD/libcpuid-0.4.1/cpuid_tool' make[2]: Entering directory '/builddir/build/BUILD/libcpuid-0.4.1/cpuid_tool' /bin/sh ../libtool --tag=CC --mode=link gcc -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,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -g -Wall -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o cpuid_tool cpuid_tool.o ../libcpuid/libcpuid.la libtool: link: gcc -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,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -g -Wall -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o .libs/cpuid_tool cpuid_tool.o ../libcpuid/.libs/libcpuid.so make[2]: Leaving directory '/builddir/build/BUILD/libcpuid-0.4.1/cpuid_tool' /usr/bin/ld: ../libcpuid/.libs/libcpuid.so: undefined reference to `cpu_rdtsc' /usr/bin/ld: ../libcpuid/.libs/libcpuid.so: undefined reference to `busy_sse_loop' /usr/bin/ld: ../libcpuid/.libs/libcpuid.so: undefined reference to `exec_cpuid' collect2: error: ld returned 1 exit status make[2]: *** [Makefile:389: cpuid_tool] Error 1 make[1]: *** [Makefile:459: all-recursive] Error 1 make: *** [Makefile:368: all] Error 2 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.bQh9Y9 (%build) Bad exit status from /var/tmp/rpm-tmp.bQh9Y9 (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py", line 95, in trace result = func(*args, **kw) File "/usr/lib/python3.8/site-packages/mockbuild/util.py", line 746, 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 --target riscv64 --nodeps /builddir/build/SPECS/libcpuid.spec