pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Latest rust build failure on amd64



On Fri 12 Jan 2018 at 14:44:26 -0600, Jonathan A. Kollasch wrote:
> On Fri, Jan 12, 2018 at 09:33:28PM +0100, Rhialto wrote:
> > | thread 'rustc' panicked at 'failed to get current_exe: No such file or directory (os error 2)', /checkout/src/librustc/session/filesearch.rs:169:22
> ~ 
> > I'm on amd64/7.0 (inside my pkg_comp).
> 
> That won't work.  On NetBSD 7.x you need procfs mounted on /proc and
> need to not be in a chroot.

Fortunately, adding a /proc inside the chroot worked fine. (Because not
using pkg_comp1 would not really be an option). I now have a binary
package. (Aside: it has a file
-rwxr-xr-x  1 root     wheel          0 Jan 13 15:23 share/doc/rust/html/.lock
which seems unneeded).

It would have been easier to diagnose for me if rustc actually told us
*which* file it was trying to open of course... but maybe something can
be added to the Makefile to check for /proc, maybe something like

pre-build:
        # Check if we have /proc
        @if [ ! -d /proc/$$$$ ]; then echo "/proc file system missing; required for building"; exit 1; fi

For reference, this is what I added to my ~/pkg_comp/default.conf file:

MOUNT_HOOKS="mounthook"
UMOUNT_HOOKS="umounthook"

mounthook()
{
    if [ ! -d ${DESTDIR}/proc ]
    then
        mkdir ${DESTDIR}/proc
    fi

    mount -t procfs procfs ${DESTDIR}/proc
}


umounthook()
{
    umount ${DESTDIR}/proc
}

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert  -- Wayland: Those who don't understand X
\X/ rhialto/at/falu.nl      -- are condemned to reinvent it. Poorly.

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index