-
Notifications
You must be signed in to change notification settings - Fork 13.3k
LLVM submodule isn't checked out when building riscv64gc-unknown-linux-musl
target
#109987
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
Comments
Hmm. This is some interaction between As a workaround you can set |
(Note that |
Ok, it looks like we only try to build crtbegin.o for musl targets: Lines 238 to 270 in 8d321f7
So I think we would have checked out the submodule if we were doing a full LLVM build, but because we're only building the CRT it got missed when download-ci-llvm was implemented. I think the simplest fix is to call Lines 1077 to 1097 in f98a271
|
Lines 1143 to 1167 in f98a271
as well as dist::Src : Lines 896 to 915 in f98a271
|
@rustbot claim |
Does fixing |
@KittyBorgX sure thing, feel free to fix all three at once :) |
@KittyBorgX no, this fix still makes sense - not everyone is using the |
I cloned the Rust repo with the intention of building rustc for cross-compilation to the
riscv64gc-unknown-linux-musl
target. I did the following:$x.py setup
- selected the "codegen" optionconfig.toml
file to append:./x.py build --target x86_64-unknown-linux-gnu --target riscv64gc-unknown-linux-musl
This failed; the end of the output is as follows:
After I executed
git submodule update --init
and retried the build command, the LLVM submodule was checked out and the build was able to make progress. It seems like this should be done automatically. I'm not sure if the issue is specific to this target or if it's happening with other cross-compilation targets.The text was updated successfully, but these errors were encountered: