pkgsrc-Bugs archive

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

Re: pkg/56371: lang/rust fails to bootstrap on NetBSD 9 i386



The following reply was made to PR pkg/56371; it has been noted by GNATS.

From: "David H. Gutteridge" <david%gutteridge.ca@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/56371: lang/rust fails to bootstrap on NetBSD 9 i386
Date: Tue, 24 Aug 2021 23:11:45 -0400

 On Mon, 23 Aug 2021 at 21:00:03 +0000 (UTC), nia wrote:
 > On Mon, Aug 23, 2021 at 02:05:01PM +0000, Benny Siegert wrote:
 > >  > /tmp/work/lang/rust/work/rust-bootstrap/lib/librustc_driver-12ed1c8e5a734cfb.so: Shared object "libstdc++.so.8" not found
 > >  
 > >  You need to install NetBSD-8 compat libraries. They need to be in
 > >  /usr/pkg. That's the way the bootstrap binaries are built.
 > 
 > This is a pbulk build. compat80 is pulled in by the package
 > already, but something else is wrong.
 
 If you're building using a sandbox with null mounts (I assume you are),
 then compat80 won't be installed effectively, as it wants to reach
 outside the sandbox to write symlinks under /usr/lib, which gets
 rejected. (compat80 breaks pkgsrc norms by writing outside $PREFIX.)
 
 The hackish way around that for a specific, dedicated build environment
 is simply to install compat80 outside the sandbox. Another way could be
 to use something like the kludge I introduced for the ghc* packages[1],
 though Rust may be a little more complicated. (I did note this in my
 commit message when I restored the compat80 dependency[2]; I guess
 maybe it would have been better if I'd written a comment above. I was
 at the point of frustration with our Rust packaging that I didn't want
 to deal with it further. I'm almost at that point again today.)
 
 Dave
 
 1. https://github.com/NetBSD/pkgsrc/commit/728b87ce71e0023a64c9d4ef67cd9a845582a3f4
 later improved by riastradh@:
 https://github.com/NetBSD/pkgsrc/commit/8ab38add2c9745d0a1b7c05eba990071cd32e9de
 2. https://github.com/NetBSD/pkgsrc/commit/f2bf5fbfe0b09e0aeec104d7914c312d9ff048bb
 


Home | Main Index | Thread Index | Old Index