NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/55997: lang/perl5 fails to build in compat_netbsd32 chroot
The following reply was made to PR kern/55997; it has been noted by GNATS.
From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: kern/55997: lang/perl5 fails to build in compat_netbsd32 chroot
Date: Sun, 14 Mar 2021 12:56:27 +0100
This seems to not always be reproducable, though on the machines/setups
where I hit it it reproduces 100% every time I tried.
The perl build worked for me on sparc64/sparc and mips64 with N32 userland.
It still fails for me on aarch64/evbearmv7hf-el and amd64/i386.
Changing a minor detail on the i386 setup makes it work:
I have the following mounts for the chroot:
tmpfs on /test32/tmp type tmpfs (local)
kernfs on /test32/kern type kernfs (local)
ptyfs on /test32/dev/pts type ptyfs (local)
procfs on /test32/proc type procfs (local)
emmas:/var/nbsd/pkgsrc on /test32/usr/pkgsrc type nfs
and do the build chroot'ed to /test32. Inside the chroot, /etc/mk.conf
has: WRKOBJDIR=/tmp/pkgobj
so perl is extracted and build on a tmpfs. When I change that line to point
WRKOBJDIR to a ffs on an ssd instead, ther build works.
I tried to reproduce it on native amd64 (outside a chroot) with a
similar setup, but that build also works. So I created a amd64 chroot
with identical setup to the i386 one and build it there - this also
works.
I have no idea if this is timing related or really file system induced (and
maybe broken by chroot handling). The @INC paths for the perl build obviously
are wrong, as if the real path of some file/dir got expanded bogusly and
became / or empty.
So to reproduce it seems you need:
- be running COMPAT_NETBSD32 binaries
- be inside a chroot
- have WRKOBJDIR on a tmpfs
Martin
Home |
Main Index |
Thread Index |
Old Index