-
Notifications
You must be signed in to change notification settings - Fork 13.3k
libunwind: also build with C++ compiler on musl #69277
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
Conversation
Clang-9 (the C compiler) errors out and refuses to build anything if -stdlib=c++11 is set. This ensures that libunwind will be built with the C++ compiler just like on glibc.
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nikomatsakis (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
Hm, I suspect that the comment here may be relevant, have you checked that at least some of the musl builders are still working locally? (e.g., via If not, then we can probably configure one of those as a try builder to test things out, by copying from src/ci/azure-pipelines/auto.yml to try.yml a builder that builds for musl. Or we can just throw this at CI, I guess, if you don't want to do that... @bors rollup=never |
Tried the container, but |
Hm, that error looks like you haven't run git submodule update --init, try that? |
Alright, it's building now, and will report later of any results. By the way, is the docker instance there building for |
Whichever commit you have checked out currently in your repository. |
Apologies for the late response, had to find a suitable machine in uni and I can't remote in to that machine. Here's the last few logs I can gather from Also got this warning when I tried to run the docker command again:
I figured (EDIT: Here's the last few logs from the new docker run: https://termbin.com/9hd1) |
Ping from triage: |
@JohnCSimon: I'm not sure what to add, I've given my status update with logs as asked in #69277 (comment). I was waiting for further replies. |
@bors r+ rollup=never It's my impression that we were previously relying on gcc being more lenient and accepting C++ input; clang (version 9, at least) is less lenient. Let's see if this works -- if not, we will likely have to mess around a bit with various environment variables to make sure we have a C++ compiler around on the builders that break. |
📌 Commit 5258390 has been approved by |
🌲 The tree is currently closed for pull requests below priority 1000, this pull request will be tested once the tree is reopened |
@bors p=1 |
⌛ Testing commit 5258390 with merge ce6e71049c17a85a09a3e43ae6867ef0e949980c... |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
💔 Test failed - checks-azure |
Hmm, so the commit errors in i586 (probably the reason for using EDIT: Actually, nevermind. There are no |
llvm-libunwind is writing in c++ but don't need libc++ or libstdc++ ( because it's a dependence of libc++) |
I'm closing this PR for the time being, I haven't got time to focus on tackling the CI issue without effectively separating |
Clang 9 (the C compiler) errors out and refuses to build anything if -stdlib=c++11 is set. This ensures that libunwind will be built with the C++ compiler just like on glibc.
Closes #69222.