ipe -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-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wl,--disable-new-dtags -shared -L. -Wl,-z,relro -Wl,--as-needed -o libfoo.so foo.o -lbar gcc -fpic -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-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wl,--disable-new-dtags -Wl,-rpath-link=. -L. -Wl,-z,relro -Wl,--as-needed -o main main.o -lfoo gcc -fpic -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-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wl,--disable-new-dtags -shared -L. -Wl,-z,relro -Wl,--as-needed -o libbar-scoped.so bar.o gcc -fpic -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-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wl,--disable-new-dtags -shared -L. -Wl,-z,relro -Wl,--as-needed -o libfoo-scoped.so foo.o -lbar-scoped gcc -fpic -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-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wl,--disable-new-dtags -Wl,-rpath-link=. -L. -Wl,-z,relro -Wl,--as-needed -o main-scoped main.o -lfoo-scoped cat main.c > big-dynstr.c for i in $(seq 1 2000); do echo "void f$i(void) { };" >> big-dynstr.c; done gcc -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"0.10\" -DPACKAGE_STRING=\"patchelf\ 0.10\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"0.10\" -DPAGESIZE=4096 -I. -fpic -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-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c -o big-dynstr.o big-dynstr.c gcc -fpic -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-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wl,--disable-new-dtags -Wl,-rpath-link=. -L. -Wl,-z,relro -Wl,--as-needed -o big-dynstr big-dynstr.o -lfoo /usr/lib/gcc/riscv64-redhat-linux/10/crtbegin.o: in function `deregister_tm_clones': crtstuff.c:(.text+0x0): relocation truncated to fit: R_RISCV_RVC_LUI against `__TMC_LIST__' collect2: error: ld returned 1 exit status make[2]: *** [Makefile:431: big-dynstr] Error 1 make[2]: Leaving directory '/builddir/build/BUILD/patchelf-0.10/tests' make[1]: Leaving directory '/builddir/build/BUILD/patchelf-0.10/tests' make[1]: *** [Makefile:710: check-am] Error 2 make: *** [Makefile:436: check-recursive] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.i6keiI (%check) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.i6keiI (%check) 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/patchelf.spec