Mock Version: 1.3.4 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv7hl --nodeps /builddir/build/SPECS/libtree-ldd.spec'], nspawn_args=[]shell=Falseuid=996env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '}chrootPath='/var/lib/mock/epel-1-armhfp-28859e7139eb09486510b10d66baefb326cc226e/root'gid=135user='mockbuild'timeout=0logger=printOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv7hl --nodeps /builddir/build/SPECS/libtree-ldd.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '} and shell False Building target platforms: armv7hl Building for target armv7hl Wrote: /builddir/build/SRPMS/libtree-ldd-3.0.2-1.el7.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target armv7hl --nodeps /builddir/build/SPECS/libtree-ldd.spec'], nspawn_args=[]shell=Falseuid=996env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '}chrootPath='/var/lib/mock/epel-1-armhfp-28859e7139eb09486510b10d66baefb326cc226e/root'gid=135user='mockbuild'timeout=0logger=printOutput=False) Executing command: ['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target armv7hl --nodeps /builddir/build/SPECS/libtree-ldd.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '} and shell False Building target platforms: armv7hl Building for target armv7hl Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.PnqTrO + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf libtree-3.0.2 + /usr/bin/gzip -dc /builddir/build/SOURCES/libtree-3.0.2.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd libtree-3.0.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ODO2lv + umask 022 + cd /builddir/build/BUILD + cd libtree-3.0.2 + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -I/usr/lib/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -I/usr/lib/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro ' + export LDFLAGS + /usr/bin/make -j4 cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -std=c99 -Wall -Wextra -Wshadow -pedantic -D_FILE_OFFSET_BITS=64 -c libtree.c cc -Wl,-z,relro libtree.o -o libtree + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.MRLKow + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/libtree-ldd-3.0.2-1.el7.arm '!=' / ']' + rm -rf /builddir/build/BUILDROOT/libtree-ldd-3.0.2-1.el7.arm ++ dirname /builddir/build/BUILDROOT/libtree-ldd-3.0.2-1.el7.arm + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/libtree-ldd-3.0.2-1.el7.arm + cd libtree-3.0.2 + /usr/bin/make install DESTDIR=/builddir/build/BUILDROOT/libtree-ldd-3.0.2-1.el7.arm PREFIX=/usr mkdir -p /builddir/build/BUILDROOT/libtree-ldd-3.0.2-1.el7.arm/usr/bin cp -p libtree /builddir/build/BUILDROOT/libtree-ldd-3.0.2-1.el7.arm/usr/bin mkdir -p /builddir/build/BUILDROOT/libtree-ldd-3.0.2-1.el7.arm/usr/share/man/man1 cp -p doc/libtree.1 /builddir/build/BUILDROOT/libtree-ldd-3.0.2-1.el7.arm/usr/share/man/man1 + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 /builddir/build/BUILD/libtree-3.0.2 extracting debug info from /builddir/build/BUILDROOT/libtree-ldd-3.0.2-1.el7.arm/usr/bin/libtree dwz: Too few files for multifile optimization /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. 109 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.Hikkv3 + umask 022 + cd /builddir/build/BUILD + cd libtree-3.0.2 + /usr/bin/make -j4 check for dir in tests/01_origin tests/02_rpath_of_parents_parent tests/03_direct_and_absolute_rpath tests/04_rpath_over_env_over_runpath tests/05_32_bits tests/06_symbol_versions tests/07_origin_is_relative_to_symlink_location_not_realpath tests/08_nodeflib tests/10_rpath_order; do \ /usr/bin/make -C $dir check || break ;\ done make[1]: Entering directory `/builddir/build/BUILD/libtree-3.0.2/tests/01_origin' echo 'int f(){return 1;}' | cc -shared -Wl,-soname,liba.so -o liba.so -nostdlib -x c - echo 'int _start(){return f();}' | cc -o exe_rpath -Wl,--no-as-needed -Wl,--disable-new-dtags '-Wl,-rpath,$ORIGIN' -Wno-implicit-function-declaration -nostdlib liba.so -x c - echo 'int _start(){return f();}' | cc -o exe_runpath -Wl,--no-as-needed -Wl,--enable-new-dtags '-Wl,-rpath,$ORIGIN' -Wno-implicit-function-declaration -nostdlib liba.so -x c - ../../libtree exe_rpath exe_rpath └── liba.so [rpath] ../../libtree exe_runpath exe_runpath └── liba.so [runpath] make[1]: Leaving directory `/builddir/build/BUILD/libtree-3.0.2/tests/01_origin' make[1]: Entering directory `/builddir/build/BUILD/libtree-3.0.2/tests/02_rpath_of_parents_parent' echo 'int g(){return 1;}' | cc -shared -Wl,-soname,libb.so -o libb.so -nostdlib -x c - echo 'int f(){return g();}' | cc -shared -Wl,--no-as-needed -Wl,-soname,liba.so -o liba.so -Wno-implicit-function-declaration libb.so -nostdlib -x c - echo 'int _start(){return f();}' | cc -o exe -Wl,--no-as-needed -Wl,--disable-new-dtags '-Wl,-rpath,$ORIGIN' '-Wl,-rpath-link,/builddir/build/BUILD/libtree-3.0.2/tests/02_rpath_of_parents_parent' -Wno-implicit-function-declaration -nostdlib -L. -la -x c - ../../libtree liba.so || true # 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 Error [liba.so]: Not all dependencies were found LD_LIBRARY_PATH=/builddir/build/BUILD/libtree-3.0.2/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.0.2/tests/02_rpath_of_parents_parent' make[1]: Entering directory `/builddir/build/BUILD/libtree-3.0.2/tests/03_direct_and_absolute_rpath' mkdir some_dir echo 'int i(){return 1;}' | cc -shared -Wl,--no-as-needed -o lib_without_soname.so -x c - echo 'int f(){return 42;}' | cc -shared -Wl,-soname,lib_f.so -Wl,--no-as-needed -o some_dir/lib_f.so -x c - echo 'extern int f(); int g(){return f();}' | cc -shared -Wl,-soname,lib_g.so -Wl,--no-as-needed "-Wl,-rpath,/builddir/build/BUILD/libtree-3.0.2/tests/03_direct_and_absolute_rpath/some_dir" -L./some_dir -l_f -o lib_g.so -x c - echo 'extern int i(); extern int f(); extern int g(); int main(){return f() + g() + i();}' | cc -Wl,--no-as-needed "-Wl,-rpath,/builddir/build/BUILD/libtree-3.0.2/tests/03_direct_and_absolute_rpath/" -L. -L./some_dir -l_f -l_g /builddir/build/BUILD/libtree-3.0.2/tests/03_direct_and_absolute_rpath/lib_without_soname.so -o exe_a -x c - echo 'extern int i(); extern int f(); extern int g(); int main(){return f() + g() + i();}' | cc -Wl,--no-as-needed "-Wl,-rpath,/builddir/build/BUILD/libtree-3.0.2/tests/03_direct_and_absolute_rpath/" "-Wl,-rpath,/builddir/build/BUILD/libtree-3.0.2/tests/03_direct_and_absolute_rpath/some_dir" -L. -L./some_dir -l_f -l_g /builddir/build/BUILD/libtree-3.0.2/tests/03_direct_and_absolute_rpath/lib_without_soname.so -o exe_b -x c - ../../libtree exe_a || true # cannot find lib_f.so exe_a ├── /builddir/build/BUILD/libtree-3.0.2/tests/03_direct_and_absolute_rpath/lib_without_soname.so [direct] ├── lib_g.so [rpath] │ └── lib_f.so [rpath] └── lib_f.so not found ┊ Paths considered in this order: ┊ 1. rpath: ┊ depth 1 ┊ /builddir/build/BUILD/libtree-3.0.2/tests/03_direct_and_absolute_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 Error [exe_a]: Not all dependencies were found ../../libtree exe_b || true # should find lib_f.so exe_b ├── /builddir/build/BUILD/libtree-3.0.2/tests/03_direct_and_absolute_rpath/lib_without_soname.so [direct] ├── lib_g.so [rpath] │ └── lib_f.so [rpath] └── lib_f.so [rpath] make[1]: Leaving directory `/builddir/build/BUILD/libtree-3.0.2/tests/03_direct_and_absolute_rpath' make[1]: Entering directory `/builddir/build/BUILD/libtree-3.0.2/tests/04_rpath_over_env_over_runpath' echo 'int b(){return 10;}' | cc -shared -Wl,-soname,libb.so -Wl,--no-as-needed -o libb.so -Wno-implicit-function-declaration -nostdlib -x c - mkdir dir echo 'int a(){return 42;}' | cc -shared -Wl,-soname,liba.so -Wl,--no-as-needed -o dir/liba.so -nostdlib -x c - echo 'int _start(){return b();}' | cc -Wl,--no-as-needed -Wl,--disable-new-dtags "-Wl,-rpath,/builddir/build/BUILD/libtree-3.0.2/tests/04_rpath_over_env_over_runpath" libb.so -o exe_rpath -Wno-implicit-function-declaration -nostdlib -x c - echo 'int _start(){return b();}' | cc -Wl,--no-as-needed -Wl,--enable-new-dtags "-Wl,-rpath,/builddir/build/BUILD/libtree-3.0.2/tests/04_rpath_over_env_over_runpath" libb.so -o exe_runpath -Wno-implicit-function-declaration -nostdlib -x c - echo 'int b(){return a();}' | cc -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 - ../../libtree exe_rpath exe_rpath └── libb.so [rpath] LD_LIBRARY_PATH="/builddir/build/BUILD/libtree-3.0.2/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.0.2/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.0.2/tests/04_rpath_over_env_over_runpath' make[1]: Entering directory `/builddir/build/BUILD/libtree-3.0.2/tests/05_32_bits' mkdir -p lib32/ mkdir -p lib64/ echo 'int a(){return 42;}' | cc -shared -Wl,-soname,libx.so -m32 -o lib32/libx.so -nostdlib -x c - echo 'int a(){return 42;}' | cc -shared -Wl,-soname,libx.so -m64 -o lib64/libx.so -nostdlib -x c - cc: error: unrecognized command line option '-m32' cc: error: unrecognized command line option '-m64' make[1]: *** [lib32/libx.so] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/builddir/build/BUILD/libtree-3.0.2/tests/05_32_bits' make[1]: *** [lib64/libx.so] Error 1 + exit 0 Processing files: libtree-ldd-3.0.2-1.el7.armv7hl Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.zm9Twf + umask 022 + cd /builddir/build/BUILD + cd libtree-3.0.2 + DOCDIR=/builddir/build/BUILDROOT/libtree-ldd-3.0.2-1.el7.arm/usr/share/doc/libtree-ldd-3.0.2 + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/libtree-ldd-3.0.2-1.el7.arm/usr/share/doc/libtree-ldd-3.0.2 + cp -pr README.md /builddir/build/BUILDROOT/libtree-ldd-3.0.2-1.el7.arm/usr/share/doc/libtree-ldd-3.0.2 + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.Jb4APu + umask 022 + cd /builddir/build/BUILD + cd libtree-3.0.2 + LICENSEDIR=/builddir/build/BUILDROOT/libtree-ldd-3.0.2-1.el7.arm/usr/share/licenses/libtree-ldd-3.0.2 + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/libtree-ldd-3.0.2-1.el7.arm/usr/share/licenses/libtree-ldd-3.0.2 + cp -pr LICENSE /builddir/build/BUILDROOT/libtree-ldd-3.0.2-1.el7.arm/usr/share/licenses/libtree-ldd-3.0.2 + exit 0 Provides: libtree-ldd = 3.0.2-1.el7 libtree-ldd(armv7hl-32) = 3.0.2-1.el7 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux-armhf.so.3 ld-linux-armhf.so.3(GLIBC_2.4) libc.so.6 libc.so.6(GLIBC_2.4) libgcc_s.so.1 libgcc_s.so.1(GCC_3.5) rtld(GNU_HASH) Processing files: libtree-ldd-debuginfo-3.0.2-1.el7.armv7hl Provides: libtree-ldd-debuginfo = 3.0.2-1.el7 libtree-ldd-debuginfo(armv7hl-32) = 3.0.2-1.el7 Requires(rpmlib): rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/libtree-ldd-3.0.2-1.el7.arm Wrote: /builddir/build/RPMS/libtree-ldd-3.0.2-1.el7.armv7hl.rpm Wrote: /builddir/build/RPMS/libtree-ldd-debuginfo-3.0.2-1.el7.armv7hl.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.18QFTt + umask 022 + cd /builddir/build/BUILD + cd libtree-3.0.2 + /usr/bin/rm -rf /builddir/build/BUILDROOT/libtree-ldd-3.0.2-1.el7.arm + exit 0 Child return code was: 0