-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
rust 1.81.0 buildable with LLVM 17.x? #131291
Comments
#130487 drop LLVM 17 at Rust 1.83.0. It looks like your logs are building the LLVM bundled with Rust? |
Actually no, as I said, it's trying to build LLD (I don't know why). The percentage progress starts with
|
And ... the build phases it has started are:
|
Ah, I guess it's #124129. You can disable lld. |
That would explain it, I'm pursuing that hint. |
Yes, just set rust.lld=false if you don’t want to build lld. If you’re using an external llvm, not building dev/nightly, not building for x64 linux and so on, it should already be disabled though. In case not, setting it explicitly will disable it for sure. edit: ah you’re probably using the dist profile, lld is enabled there. |
[...] Yes, just set rust.lld=false if you don't want to build lld.
Thanks for the hint, I can confirm that I now have 1.81.0
building with an external LLVM 18.x on NetBSD/amd64 (w86_64).
[...] If you're using an external llvm
Yep.
[...] not building dev/nightly,
Nope, building from a complete release tarball.
[...] not building for x64 linux
Yep, this is native building on NetBSD/amd64 10.0.
[...] and so on, it should already be disabled though.
It doesn't look like it...
[...]In case not, setting it explicitly will disable it for sure.
Yep, that I can confirm.
|
#126701 enabled lld on the dist profile |
The external LLVM may be older (e.g. 17) than the internal LLD (now 18.x together with the rest of the embedded LLVM), ref. rust-lang/rust#131291
OK, that worked around the issue for the package. |
This is perhaps more of a question or a "release management" issue, perhaps even "documenting the latter".
In my quest to continue to have rust buildable & installable in NetBSD's pkgsrc system, I've now come to rust 1.81.0.
The package has an option to either build with an external LLVM (and libunwind) or with the embedded version of at least LLVM
in the rust tarball.
When going from rust 1.80.1 to rust 1.81.0 I find that the rust compiler no longer builds with an external LLVM 17.x.
The last time a bump in the requirement for an external LLVM happened was in the 1.79.0 release.
My question is whether someone missed bumping the requirement in the rust release notes for 1.81.0, or whether
the errors I'm seeing while trying to use an external LLVM are of my own or "our own" doing. The errors start with
For some reason the build appears to want to build LLD.
Did someone not test building with an external LLVM 17.x? Does rust now from 1.81.0 in fact need an external LLVM >= 18?
The text was updated successfully, but these errors were encountered: