+ grep -q /foo:/bar + echo /foo:/bar:/xxxxxxxxxxxxxxx PASS: no-rpath-sh4.sh + ARCH= + PAGESIZE=4096 + '[' -z '' ']' ++ basename ./no-rpath-sparc.sh .sh ++ sed -e 's/.*-//' + ARCH=sparc + SCRATCH=scratch/no-rpath-sparc + '[' -z sparc ']' + '[' sparc = prebuild ']' + no_rpath_bin=./no-rpath-prebuild/no-rpath-sparc + '[' '!' -f ./no-rpath-prebuild/no-rpath-sparc ']' + rm -rf scratch/no-rpath-sparc + mkdir -p scratch/no-rpath-sparc + cp ./no-rpath-prebuild/no-rpath-sparc scratch/no-rpath-sparc/no-rpath ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-sparc/no-rpath Kernel page size is 4096 bytes + oldRPath= + test -n '' ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf Kernel page size is 4096 bytes + ../src/patchelf --page-size 4096 --set-interpreter /lib/ld-linux-riscv64-lp64d.so.1 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-sparc/no-rpath patching ELF file 'scratch/no-rpath-sparc/no-rpath' Kernel page size is 4096 bytes new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' rpath is too long, resizing... DT_NULL index is 19 replacing section '.dynamic' with size 208 replacing section '.dynstr' with size 101 replacing section '.interp' with size 33 this is an executable using replaced section '.interp' using replaced section '.dynstr' using replaced section '.dynamic' last replaced is 19 looking at section '.interp' looking at section '.note.ABI-tag' replacing section '.note.ABI-tag' which is in the way looking at section '.note.gnu.build-id' replacing section '.note.gnu.build-id' which is in the way looking at section '.hash' replacing section '.hash' which is in the way looking at section '.dynsym' replacing section '.dynsym' which is in the way looking at section '.dynstr' looking at section '.gnu.version' first reserved offset/addr is 0x22e/0x1022e first page is 0x10000 needed space is 812 needed space is 844 needed pages is 1 changing alignment of program header 2 from 65536 to 4096 changing alignment of program header 3 from 65536 to 4096 clearing first 4346 bytes rewriting section '.dynamic' from offset 0x1588 (size 200) to offset 0x134 (size 208) rewriting section '.dynstr' from offset 0x11e4 (size 74) to offset 0x204 (size 101) rewriting section '.dynsym' from offset 0x1194 (size 80) to offset 0x26c (size 80) rewriting section '.hash' from offset 0x116c (size 40) to offset 0x2bc (size 40) rewriting section '.interp' from offset 0x1114 (size 19) to offset 0x2e4 (size 33) rewriting section '.note.ABI-tag' from offset 0x1128 (size 32) to offset 0x308 (size 32) rewriting section '.note.gnu.build-id' from offset 0x1148 (size 36) to offset 0x328 (size 36) rewriting symbol table section 3 rewriting symbol table section 35 writing scratch/no-rpath-sparc/no-rpath ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-sparc/no-rpath Kernel page size is 4096 bytes + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + grep -q /foo:/bar + echo /foo:/bar:/xxxxxxxxxxxxxxx PASS: no-rpath-sparc.sh ==================== 6 of 27 tests failed ==================== make[2]: Leaving directory '/builddir/build/BUILD/patchelf-0.11/tests' make[2]: *** [Makefile:586: check-TESTS] Error 1 make[1]: *** [Makefile:713: check-am] Error 2 make[1]: Leaving directory '/builddir/build/BUILD/patchelf-0.11/tests' make: *** [Makefile:436: check-recursive] Error 1 error: RPM build errors: Bad exit status from /var/tmp/rpm-tmp.mD93xf (%check) Bad exit status from /var/tmp/rpm-tmp.mD93xf (%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