-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.43.0 x.py "dist" build fails in LlvmTools build #71743
Comments
Since this did work on our dist builders, presumably, I'm a bit surprised to see this. Are you applying any patches atop our build? Maybe LLVM has some internal detection which isn't running? (Can you see if the |
Since this did work on our dist builders, presumably, I'm a bit
surprised to see this. Are you applying any patches atop our
build?
Yes, I'll have to admit that we do.
https://github.com/NetBSD/pkgsrc/tree/trunk/lang/rust
is our set of build scaffolding and patches to make this build on
NetBSD.
This worked with 1.42.0.
Maybe LLVM has some internal detection which isn't running?
(Can you see if the `llvm/bin` dir, not in build is being
created with `x.py build`? It seems like we expect that to be
the case.)
Hmm... I find an llvm/bin/llvm-nm in
d3: {4} find work -path '*/llvm/bin/llvm-nm'
work/.destdir/usr/pkgsrc/lang/rust/work/rustc-1.43.0-src/build/x86_64-unknown-netbsd/llvm/bin/llvm-nm
d3: {5}
So parts of the build appears to respect ${DESTDIR}, but some
other part doesn't(?)
Regards,
- Håvard
|
Hm, so I'm not seeing anything initially suspicious at a quick glance through. We ourselves don't set DESTDIR, though, and maybe that's being threaded through to the LLVM build and causes trouble? AFAICT, x.py dist just uses the existing pre-built llvm -- I would expect that if x.py build worked (i.e. created the file where x.py dist expected it) x.py dist would just work too. Did you start setting DESTDIR since 1.42 (or perhaps something else in your environment changed)? I pretty much see nothing suspicious on our end in the diff between 1.42 and 1.43 (at least in src/bootstrap). LLVM didn't even have any significant changes between those two tags as best as I can tell... |
Hm, so I'm not seeing anything initially suspicious at a quick
glance through. We ourselves don't set DESTDIR, though, and
maybe that's being threaded through to the LLVM build and
causes trouble?
AFAICT, x.py dist just uses the existing pre-built llvm -- I
would expect that if x.py build worked (i.e. created the file
where x.py dist expected it) x.py dist would just work too.
I'm using "dist" instead of "build", not doing "dist" after first
doing "build".
Did you start setting DESTDIR since 1.42 (or perhaps something
else in your environment changed)?
DESTDIR is always set when building in pkgsrc, so it's always
been set earlier.
I pretty much see nothing suspicious on our end in the diff
between 1.42 and 1.43 (at least in src/bootstrap). LLVM didn't
even have any significant changes between those two tags as
best as I can tell...
Hmm...
- Håvard
|
Yes, dist internally just "runs" build (not on the command line, but the same effect, I think). Yeah, I guess -- one thing that could be helpful is to try to bisect this? I imagine it would take a long time though, given how slow building the compiler can be. |
It looks like this problem has been there for a while; it's also present in 1.41.1, I've replicated it outside of the pkgsrc setup, and it's indeed being triggered by However, that workaround apparently has the unfortunate consequence that |
Ah, okay. Sounds like we probably need to unset DESTDIR internally when building LLVM? I'd be happy to accept a PR for that, but probably won't get to it myself. |
I'm going to close this in favor of #73132. |
Since I'm building bootstrap kits for rust, I need to use the "dist" argument to
the x.py script, and in 1.43.0 this now fails in the llvm build with
The llvm build has left
llvm-nm
inwork/rustc-1.43.0-src/build/x86_64-unknown-netbsd/llvm/build/bin/llvm-nm
but that's apparently not where the build expects to find the result.
Building 1.43.0 with the "build" target to x.py succeeds, but of course does not
accomplish building the bootstrap kits.
The text was updated successfully, but these errors were encountered: