Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/libtree-ldd.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-944888-28778/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/libtree-ldd.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1689465600 Wrote: /builddir/build/SRPMS/libtree-ldd-3.1.1-1.fc38.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/libtree-ldd.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-944888-28778/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/libtree-ldd.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1689465600 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.FnnnPl + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf libtree-3.1.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/libtree-3.1.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd libtree-3.1.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/libtree-ldd-c99.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.8rMRi7 + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd libtree-3.1.1 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + /usr/bin/make -O -j8 V=1 VERBOSE=1 gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -std=c99 -Wall -Wextra -Wshadow -pedantic -D_FILE_OFFSET_BITS=64 -c libtree.c gcc -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o libtree libtree.o + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.76h7qp + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/libtree-ldd-3.1.1-1.fc38.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/libtree-ldd-3.1.1-1.fc38.riscv64 ++ dirname /builddir/build/BUILDROOT/libtree-ldd-3.1.1-1.fc38.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/libtree-ldd-3.1.1-1.fc38.riscv64 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd libtree-3.1.1 + /usr/bin/make install DESTDIR=/builddir/build/BUILDROOT/libtree-ldd-3.1.1-1.fc38.riscv64 'INSTALL=/usr/bin/install -p' PREFIX=/usr mkdir -p /builddir/build/BUILDROOT/libtree-ldd-3.1.1-1.fc38.riscv64/usr/bin cp -p libtree /builddir/build/BUILDROOT/libtree-ldd-3.1.1-1.fc38.riscv64/usr/bin mkdir -p /builddir/build/BUILDROOT/libtree-ldd-3.1.1-1.fc38.riscv64/usr/share/man/man1 cp -p doc/libtree.1 /builddir/build/BUILDROOT/libtree-ldd-3.1.1-1.fc38.riscv64/usr/share/man/man1 + /usr/bin/find-debuginfo -j8 --strict-build-id -m -i --build-id-seed 3.1.1-1.fc38 --unique-debug-suffix -3.1.1-1.fc38.riscv64 --unique-debug-src-base libtree-ldd-3.1.1-1.fc38.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/libtree-3.1.1 extracting debug info from /builddir/build/BUILDROOT/libtree-ldd-3.1.1-1.fc38.riscv64/usr/bin/libtree original debug info size: 260kB, size after compression: 260kB /usr/bin/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. 111 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j8 + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.3rXJm1 + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd libtree-3.1.1 + /usr/bin/make -O -j8 V=1 VERBOSE=1 check find tests -mindepth 1 -maxdepth 1 -type d | while read -r dir; do \ /usr/bin/make -C "$dir" check || exit 1 ;\ done make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/06_symbol_versions' mkdir -p v2 gcc -shared -Wl,-soname,libx.so -o v2/libx.so -Wl,--version-script,v2.map v2.c make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/06_symbol_versions' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/06_symbol_versions' mkdir -p v1 gcc -shared -Wl,-soname,libx.so -o v1/libx.so -Wl,--version-script,v1.map v1.c make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/06_symbol_versions' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/06_symbol_versions' gcc -o exe_v2 main.c v2/libx.so "-Wl,-rpath,/builddir/build/BUILD/libtree-3.1.1/tests/06_symbol_versions/v1" "-Wl,-rpath,/builddir/build/BUILD/libtree-3.1.1/tests/06_symbol_versions/v2" make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/06_symbol_versions' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/06_symbol_versions' gcc -o exe_v1 main.c v1/libx.so "-Wl,-rpath,/builddir/build/BUILD/libtree-3.1.1/tests/06_symbol_versions/v2" "-Wl,-rpath,/builddir/build/BUILD/libtree-3.1.1/tests/06_symbol_versions/v1" make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/06_symbol_versions' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/06_symbol_versions' ../../libtree exe_v1 exe_v1 └── libx.so [runpath] ../../libtree exe_v2 exe_v2 └── libx.so [runpath] make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/06_symbol_versions' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/02_rpath_of_parents_parent' echo 'int g(void){return 1;}' | gcc -shared -Wl,-soname,libb.so -o libb.so -nostdlib -x c - make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/02_rpath_of_parents_parent' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/02_rpath_of_parents_parent' echo 'int g(void); int f(void){return g();}' | gcc -shared -Wl,--no-as-needed -Wl,-soname,liba.so -o liba.so -Wno-implicit-function-declaration libb.so -nostdlib -x c - make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/02_rpath_of_parents_parent' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/02_rpath_of_parents_parent' echo 'int f(void); int _start(){return f();}' | gcc -o exe -Wl,--no-as-needed -Wl,--disable-new-dtags '-Wl,-rpath,$ORIGIN' '-Wl,-rpath-link,/builddir/build/BUILD/libtree-3.1.1/tests/02_rpath_of_parents_parent' -Wno-implicit-function-declaration -nostdlib -L. -la -x c - make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/02_rpath_of_parents_parent' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/02_rpath_of_parents_parent' ! ../../libtree liba.so # should not find libb.so liba.so └── libb.so not found ┊ Paths considered in this order: ┊ 1. rpath: ┊ 2. LD_LIBRARY_PATH was not set ┊ 3. runpath was not set ┊ 4. ld config files: ┊ 5. Standard paths: ┊ /lib ┊ /lib64 ┊ /usr/lib ┊ /usr/lib64 LD_LIBRARY_PATH=/builddir/build/BUILD/libtree-3.1.1/tests/02_rpath_of_parents_parent ../../libtree liba.so # should find libb.so through LD_LIBRARY_PATH liba.so └── libb.so [LD_LIBRARY_PATH] ../../libtree exe # should find libb.so through exe's rpath exe └── liba.so [rpath] └── libb.so [rpath of 1] make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/02_rpath_of_parents_parent' Error [liba.so]: Not all dependencies were found make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/04_rpath_over_env_over_runpath' mkdir dir make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/04_rpath_over_env_over_runpath' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/04_rpath_over_env_over_runpath' echo 'int a(void){return 42;}' | gcc -shared -Wl,-soname,liba.so -Wl,--no-as-needed -o dir/liba.so -nostdlib -x c - make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/04_rpath_over_env_over_runpath' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/04_rpath_over_env_over_runpath' echo 'int b(){return 10;}' | gcc -shared -Wl,-soname,libb.so -Wl,--no-as-needed -o libb.so -Wno-implicit-function-declaration -nostdlib -x c - make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/04_rpath_over_env_over_runpath' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/04_rpath_over_env_over_runpath' echo 'int b(void); int _start(void){return b();}' | gcc -Wl,--no-as-needed -Wl,--disable-new-dtags "-Wl,-rpath,/builddir/build/BUILD/libtree-3.1.1/tests/04_rpath_over_env_over_runpath" libb.so -o exe_rpath -Wno-implicit-function-declaration -nostdlib -x c - make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/04_rpath_over_env_over_runpath' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/04_rpath_over_env_over_runpath' echo 'int b(void); int _start(void){return b();}' | gcc -Wl,--no-as-needed -Wl,--enable-new-dtags "-Wl,-rpath,/builddir/build/BUILD/libtree-3.1.1/tests/04_rpath_over_env_over_runpath" libb.so -o exe_runpath -Wno-implicit-function-declaration -nostdlib -x c - make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/04_rpath_over_env_over_runpath' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/04_rpath_over_env_over_runpath' echo 'int a(void); int b(void){return a();}' | gcc -shared -Wl,-soname,libb.so -Wl,--no-as-needed -Wl,--disable-new-dtags '-Wl,-rpath,$ORIGIN' -Wno-implicit-function-declaration -o dir/libb.so -nostdlib dir/liba.so -x c - make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/04_rpath_over_env_over_runpath' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/04_rpath_over_env_over_runpath' ../../libtree exe_rpath exe_rpath └── libb.so [rpath] LD_LIBRARY_PATH="/builddir/build/BUILD/libtree-3.1.1/tests/04_rpath_over_env_over_runpath/dir" ../../libtree exe_rpath exe_rpath └── libb.so [rpath] ../../libtree exe_runpath exe_runpath └── libb.so [runpath] LD_LIBRARY_PATH="/builddir/build/BUILD/libtree-3.1.1/tests/04_rpath_over_env_over_runpath/dir" ../../libtree exe_runpath exe_runpath └── libb.so [LD_LIBRARY_PATH] └── liba.so [rpath] make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/04_rpath_over_env_over_runpath' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/08_nodeflib' echo 'int g(){return 1;}' | gcc -Wl,--no-as-needed -shared -Wl,-soname,lib_defaultlib.so -o lib_defaultlib.so -x c - make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/08_nodeflib' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/08_nodeflib' echo 'int f(){return 1;}' | gcc -z nodefaultlib -Wl,--no-as-needed -shared -Wl,-soname,lib_nodefaultlib.so -o lib_nodefaultlib.so -x c - make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/08_nodeflib' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/08_nodeflib' echo 'extern int f(); extern int g(); int main(){return f() + g();}' | gcc -z nodefaultlib -o exe_a -Wl,--enable-new-dtags '-Wl,-rpath,$ORIGIN' -x c - -L. -l_nodefaultlib -l_defaultlib make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/08_nodeflib' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/08_nodeflib' echo 'extern int g(); int main(){return g();}' | gcc -z nodefaultlib -o exe_b -Wl,--disable-new-dtags '-Wl,-rpath,$ORIGIN' -x c - -L. -l_defaultlib make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/08_nodeflib' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/08_nodeflib' ! ../../libtree -vvv exe_a # should likely not find libc exe_a ├── lib_nodefaultlib.so [runpath] │ └── libc.so.6 not found │ ┊ Paths considered in this order: │ ┊ 1. rpath: │ ┊ 2. LD_LIBRARY_PATH was not set │ ┊ 3. runpath was not set │ ┊ 4. ld config files not considered due to NODEFLIB flag │ ┊ 5. Standard paths not considered due to NODEFLIB flag │ ┊ /lib │ ┊ /lib64 │ ┊ /usr/lib │ ┊ /usr/lib64 ├── lib_defaultlib.so [runpath] │ └── libc.so.6 [default path] │ └── ld-linux-riscv64-lp64d.so.1 [default path] └── libc.so.6 not found ┊ Paths considered in this order: ┊ 1. rpath is skipped because runpath was set ┊ 2. LD_LIBRARY_PATH was not set ┊ 3. runpath: ┊ ./ ┊ 4. ld config files not considered due to NODEFLIB flag ┊ 5. Standard paths not considered due to NODEFLIB flag ┊ /lib ┊ /lib64 ┊ /usr/lib ┊ /usr/lib64 ! ../../libtree -vvv exe_b # should likely not find libc exe_b ├── lib_defaultlib.so [rpath] │ └── libc.so.6 [default path] │ └── ld-linux-riscv64-lp64d.so.1 [default path] └── libc.so.6 not found ┊ Paths considered in this order: ┊ 1. rpath: ┊ depth 1 ┊ ./ ┊ 2. LD_LIBRARY_PATH was not set ┊ 3. runpath was not set ┊ 4. ld config files not considered due to NODEFLIB flag ┊ 5. Standard paths not considered due to NODEFLIB flag ┊ /lib ┊ /lib64 ┊ /usr/lib ┊ /usr/lib64 make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/08_nodeflib' Error [exe_a]: Not all dependencies were found Error [exe_b]: Not all dependencies were found make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/05_32_bits' mkdir -p lib32 echo 'int a(){return 42;}' | gcc -shared -Wl,-soname,libx.so -m32 -o lib32/libx.so -nostdlib -x c - make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/05_32_bits' gcc: error: unrecognized command-line option '-m32' make[1]: *** [Makefile:16: lib32/libx.so] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/05_32_bits' mkdir -p lib64 echo 'int a(){return 42;}' | gcc -shared -Wl,-soname,libx.so -m64 -o lib64/libx.so -nostdlib -x c - make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/05_32_bits' gcc: error: unrecognized command-line option '-m64' make[1]: *** [Makefile:12: lib64/libx.so] Error 1 make: *** [Makefile:34: check] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.3rXJm1 (%check) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.3rXJm1 (%check) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/libtree-ldd.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 598, 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 --noclean --target riscv64 --nodeps /builddir/build/SPECS/libtree-ldd.spec