tests failing on x86_64-linux (due to test-container?)

DJ Delorie dj@redhat.com
Wed Apr 28 23:08:40 GMT 2021


Martin Sebor <msebor@gmail.com> writes:
> /build/glibc/nss/tst-nss-test3: error while loading shared libraries: 
> /build/glibc/nss/tst-nss-test3: cannot open shared object file: No such 
> file or directory
>
> Not sure what .so it's looking for though.

That would be "/build/glibc/nss/tst-nss-test3" ;-)

(which should be bind-mounted inside your test chroot, which would be
/build/glibc/testroot.root/build/glibc/nss/tst-nss-test3)

You can strace the test, if you're root, with "strace -f -o /tmp/foo
make test ..."

You can also run "capsh --print" to make sure you have all the
capabilities you expect.  IIRC cap_sys_admin and cap_sys_chroot are key,
along with cap_mknod, and maybe cap_setgid and cap_setuid.

Also, selinux might be interfering.



More information about the Libc-alpha mailing list