tech-pkg archive

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

Re: Rust broken again!



Le 2019-10-14 20:31, maya%NetBSD.org@localhost a écrit :
On Sun, Oct 13, 2019 at 09:57:03PM +0200, Frédéric Fauberteau wrote:
Sorry if I pour oil on the fire but I could never build rust. I usually build my packages using pbulk to manage them with pkgin. Rust build always
fails with the following error:

--- stderr
thread 'main' panicked at 'failed to get current_exe: /proc/curproc/exe doesn't point to regular file.', src/librustc/session/filesearch.rs:139:23

Okay, but out of the chroot environment, /proc/curproc/exe is not a regular
file:
# ls -l /proc/curproc/exe
lr-xr-xr-x  1 root  wheel  7 Oct 13 21:48 /proc/curproc/exe -> /bin/ls

You will need procfs in the chroot on older netbsd.

I have a script that build my environment and it contains:
  mount -t procfs        /proc        ${chroot}/proc

Also, be careful how you setup your chroots to avoid
http://gnats.netbsd.org/52598

I will look in this way, thanks!


Home | Main Index | Thread Index | Old Index