Re: How to elf/tst-ldconfig-* in cross test setup

2020-03-11 Thread Vineet Gupta
On 3/11/20 3:56 PM, Vineet Gupta via Libc-alpha wrote: >>> Did you run a full >>> "make check" at least once, to build the initial testroot? It does a >>> full "make install" into $build/testroot.pristine/ to use as the basis >>> for the container's root. >> I definitely did not do that - let me

Re: How to elf/tst-ldconfig-* in cross test setup

2020-03-11 Thread Vineet Gupta
On 3/11/20 3:28 PM, DJ Delorie via Libc-alpha wrote: > Vineet Gupta writes: >>> $ make test-wrapper='>> to>/br/build/glibc-867196a7635/scripts/cross-test-ssh.sh root@192.168.0.20' >>> xcheck >>> subdirs=elf >> >> FWIW the original failures were here >> >> lock_fd = open (concat

Re: How to elf/tst-ldconfig-* in cross test setup

2020-03-11 Thread DJ Delorie
Vineet Gupta writes: >> $ make test-wrapper='> to>/br/build/glibc-867196a7635/scripts/cross-test-ssh.sh root@192.168.0.20' >> xcheck >> subdirs=elf > > FWIW the original failures were here > > lock_fd = open (concat (pristine_root_path, "/lock.fd", NULL), >O_CREAT | O_TRUNC |

Re: How to elf/tst-ldconfig-* in cross test setup

2020-03-11 Thread DJ Delorie
Vineet Gupta writes: > When you say containers is this linux cgroups or something at a higher > level: does it need any specific distro container package. Please > remember this is a constrained system built off of buildroot. It should not require anything beyond what kernel/glibc provides - we

Re: How to elf/tst-ldconfig-* in cross test setup

2020-03-11 Thread Vineet Gupta
On 3/11/20 3:14 PM, Vineet Gupta wrote: >> The containerized tests are (in this case) containerized because they >> rely on setup files (like /etc/ld.so.conf) inside the container to run >> the test. Otherwise you end up corrupting the host OS. >> >> The test infrastructure knows how to run

Re: How to elf/tst-ldconfig-* in cross test setup

2020-03-11 Thread Vineet Gupta
On 3/11/20 3:07 PM, DJ Delorie via Libc-alpha wrote: > Vineet Gupta writes: >> No, I'm running this is a cross-compiled setup where the test artifacts are >> on a >> NFS mounted host. Here's the full strace for test >> >> >> $ strace_static -f >>

Re: How to elf/tst-ldconfig-* in cross test setup

2020-03-11 Thread DJ Delorie
Vineet Gupta writes: > No, I'm running this is a cross-compiled setup where the test artifacts are > on a > NFS mounted host. Here's the full strace for test > > > $ strace_static -f > ~/br/build/glibc-867196a7635/build/elf/tst-ldconfig-ld_so_conf-update This is a manual run. Even with a cross

Re: How to elf/tst-ldconfig-* in cross test setup

2020-03-11 Thread Vineet Gupta
On 3/11/20 2:36 PM, DJ Delorie via Libc-alpha wrote: > Vineet Gupta via Libc-alpha writes: >> The issue is expected src-path for dso. >> >> | [pid 168] renameat(AT_FDCWD, "/usr/lib/tst-ldconfig-ld-mod.so", AT_FDCWD, >> | "/tmp/tst-ldconfig/libldconfig-ld-mod.so") = -1 EXDEV >> |

Re: How to elf/tst-ldconfig-* in cross test setup

2020-03-11 Thread DJ Delorie
Vineet Gupta via Libc-alpha writes: > The issue is expected src-path for dso. > > | [pid 168] renameat(AT_FDCWD, "/usr/lib/tst-ldconfig-ld-mod.so", AT_FDCWD, > | "/tmp/tst-ldconfig/libldconfig-ld-mod.so") = -1 EXDEV > | (Invalid cross-device link) > > In cross setup, /usr/lib needs to