tory '/builddir/build/BUILD/libpst-0.6.75/python' /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I./.. -I./../src -I/usr/include/python3.9 -O2 -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 -c -o python-libpst.lo python-libpst.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I./.. -I./../src -I/usr/include/python3.9 -O2 -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 -c python-libpst.cpp -fPIC -DPIC -o .libs/python-libpst.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I./.. -I./../src -I/usr/include/python3.9 -O2 -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 -c python-libpst.cpp -o python-libpst.o >/dev/null 2>&1 make[2]: Leaving directory '/builddir/build/BUILD/libpst-0.6.75/python' make[2]: Entering directory '/builddir/build/BUILD/libpst-0.6.75/python' /bin/sh ../libtool --tag=CXX --mode=link g++ -O2 -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 -module -avoid-version -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o _libpst.la -rpath /usr/lib64/python3.9/site-packages python-libpst.lo -l ../src/libpst.la libtool: link: g++ -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/riscv64-redhat-linux/10/crti.o /usr/lib/gcc/riscv64-redhat-linux/10/crtbeginS.o .libs/python-libpst.o -Wl,-rpath -Wl,/builddir/build/BUILD/libpst-0.6.75/src/.libs -l ../src/.libs/libpst.so -lz -lpthread -L/usr/lib/gcc/riscv64-redhat-linux/10 -L/lib64/lp64d/../lib64/lp64d -L/usr/lib64/lp64d/../lib64/lp64d -L/lib/../lib64/lp64d -L/usr/lib/../lib64/lp64d -L/lib64/lp64d -L/usr/lib64/lp64d -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/riscv64-redhat-linux/10/crtendS.o /usr/lib/gcc/riscv64-redhat-linux/10/crtn.o -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -O2 -g -grecord-gcc-switches -specs=/usr/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,_libpst.so -o .libs/_libpst.so make[2]: Leaving directory '/builddir/build/BUILD/libpst-0.6.75/python' /usr/bin/ld: cannot find -l../src/.libs/libpst.so collect2: error: ld returned 1 exit status make[2]: *** [Makefile:498: _libpst.la] Error 1 make[1]: *** [Makefile:572: all-recursive] Error 1 make: *** [Makefile:458: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.a2BkF7 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.a2BkF7 (%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/libpst.spec