-
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
Failure compiling Fuchsia compiler #95575
Comments
I suggest removing As for the "overriding linking modifiers" error, it was indeed made too conservative in the stabilization PR #93901, I'll prepare a PR relaxing it. |
Thanks for the suggestion. Editing the build script locally seems to work, will check if that's the preferred long term approach. For what it's worth I also tested #94962 and it resolves the issue. |
Rely on #[link] attribute for unwind on Fuchsia. Closes rust-lang#95575.
Rely on #[link] attribute for unwind on Fuchsia. Closes rust-lang#95575.
Rely on #[link] attribute for unwind on Fuchsia. Closes rust-lang#95575.
Rely on #[link] attribute for unwind on Fuchsia. Closes rust-lang#95575.
Building the Rust compiler for Fuchsia fails with an error when building libunwind since . I don't have a fully minimal set of build steps (actual steps are documented in https://fuchsia.dev/fuchsia-src/development/build/rust_toolchain?hl=en), but one relevant piece of the config.toml is that we set
llvm-libunwind = "in-tree"
When running
x.py
the build fails withThis happens building the Rust compiler since b75f384 was merged, and does not happen on any commit prior to that. Any newer commit can also be made to work by just reverting 1004783 so this seems to be caused by #93901
Running
x.py -v
showsAnd the main thing of interest there is the
-l unwind
that for a Fuchsia build within-tree
libunwind does not match the modifiers in libunwind and so the error therefore occurs.I can manually make that invocation work by either dropping the
-l unwind
or adding the modifier via-l unwind,-bundle
, but I don't know how to do that as part of the actual build so I'm not sure if that is the last issue.From my inexperienced perspective linking against libunwind when building libunwind seems incorrect, but perhaps that's correct and there's something else going wrong?
The text was updated successfully, but these errors were encountered: