/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -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,libzzz.so -o .libs/libzzz.so libtool: link: ( cd ".libs" && rm -f "libfoo.la" && ln -s "../libfoo.la" "libfoo.la" ) libtool: link: ( cd ".libs" && rm -f "libbar.la" && ln -s "../libbar.la" "libbar.la" ) /bin/sh ../../../../libtool --tag=CC --mode=link gcc -I/builddir/build/BUILD/lttng-tools-2.12.2/tests/utils/testapp/userspace-probe-sdt-binary -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -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 -o userspace-probe-sdt-binary userspace_probe_sdt_binary-userspace-probe-sdt-binary.o userspace_probe_sdt_binary-sema.o foobar_provider.o libfoo.la libbar.la -ldl -lurcu-cds -lrt libtool: link: ( cd ".libs" && rm -f "libzzz.la" && ln -s "../libzzz.la" "libzzz.la" ) *** Warning: Linking the executable userspace-probe-sdt-binary against the loadable module *** libfoo.so is not portable! *** Warning: Linking the executable userspace-probe-sdt-binary against the loadable module *** libbar.so is not portable! libtool: link: gcc -I/builddir/build/BUILD/lttng-tools-2.12.2/tests/utils/testapp/userspace-probe-sdt-binary -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -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 -o .libs/userspace-probe-sdt-binary userspace_probe_sdt_binary-userspace-probe-sdt-binary.o userspace_probe_sdt_binary-sema.o foobar_provider.o ./.libs/libfoo.so ./.libs/libbar.so -ldl -lurcu-cds -lrt -Wl,-rpath -Wl,/builddir/build/BUILD/lttng-tools-2.12.2/tests/utils/testapp/userspace-probe-sdt-binary/.libs/ /usr/bin/ld: /tmp/userspace-probe-sdt-binary.mvQHYC.ltrans0.ltrans.o:(.note.stapsdt+0x114): undefined reference to `foobar_tp_with_semaphore_semaphore' collect2: error: ld returned 1 exit status make[5]: *** [Makefile:624: userspace-probe-sdt-binary] Error 1 make[5]: Leaving directory '/builddir/build/BUILD/lttng-tools-2.12.2/tests/utils/testapp/userspace-probe-sdt-binary' make[4]: Leaving directory '/builddir/build/BUILD/lttng-tools-2.12.2/tests/utils/testapp/userspace-probe-sdt-binary' make[4]: *** [Makefile:559: all] Error 2 make[3]: *** [Makefile:551: all-recursive] Error 1 make[3]: Leaving directory '/builddir/build/BUILD/lttng-tools-2.12.2/tests/utils/testapp' make[2]: *** [Makefile:627: all-recursive] Error 1 make[2]: Leaving directory '/builddir/build/BUILD/lttng-tools-2.12.2/tests/utils' make[1]: *** [Makefile:542: all-recursive] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/lttng-tools-2.12.2/tests' make: *** [Makefile:638: all-recursive] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.iUkary (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.iUkary (%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/lttng-tools.spec