-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
error: unknown debugging option: dual-proc-macros
when running cross tests
#59110
Comments
Are you overriding the rustc version used to compile? |
Oh wait, that's trying to cross compile using the stage0 compiler, when it should be using the stage1 compiler. |
The same happens when I try to build for I tried to run the following command:
Got the following output:
Building only the libraries with |
@Zoxc I came up with simple workaround:
I've tried to make it use stage1 but I couldn't make bootstrap successful. In case you want to see where stage0 is coming from here is part of the log with some debug info:
Full log: https://gist.github.com/mati865/579d833afab7e0c77adbdb584f5ce869
Lines 957 to 958 in 0c8700b
Then it ensures there is Rustc for stage0: Lines 965 to 968 in 0c8700b
And then it builds other stage0 stuff until it hit's the error. |
During tests I'm getting:
Maybe this workaround isn't enough. |
@mati865 I'd like to know what causes |
@Zoxc every time Lines 570 to 574 in 0f88167
I'm in the middle of work on compiletest so I cannot run it right now. Will add new comment later. |
@mati865 The question is, what is trying to obtain a stage 1 musl compiler? |
https://gist.github.com/mati865/39b6162632dbcde4564024726bd155b7
|
The @alexcrichton Do you know what is going on here? |
Can you elaborate a bit more on what's going on here? There's good deal of context here and I'm not sure how much is relevant |
I'll try to summarize it: Line 237 in 0c8700b
Lines 570 to 574 in 0c8700b
Then Line 958 in 0c8700b
I'm trying to avoid it with mati865@efd45e9 but it's still wip and fails in the tests. EDIT: The error from my hack is:
EDIT2:
|
Hm ok, thanks for the explanation! I'm not really up to speed on all this nowadays though so I'm not sure I'm gonna be all that much help here :( |
I think
@Zoxc does it make sense to you? |
@mati865 The |
@Zoxc from the technical point of view there is nothing preventing from cross compiling musl on glibc distro and testing it. I abused bootstrap to do it before Guess I'll try to use new musl host as stage0 once it makes it to the beta. |
Bootstrap compiler was updated so this issue shouldn't happen any more. I'm not aware of any changes regarding stages flux but that's different issue. |
I can confirm that this issue breaks cross-compiling on 1.34 using 1.33 as stage0. The fix from this comment works for me. Sucks that this wasn't backported for the 1.34.2 release. |
Sorry my mistake, the problem is actually with the 1.35.0 currently-stable release, when using 1.34.2 as stage0. So there is still time to cherry pick this for a 1.35.1 point release if you guys want to. The very counter-intuitive error I get is:
|
@rustbot modify labels: +I-nominated +stable-nominated |
Error: Label I-nominated can only be set by Rust team members Please let |
This hasn't made it into the stable being released and we're not looking to do a point release at this point, so removing stable-nominated |
I'm working on tests for dynamic musl (#58575) and since #58013 I'm hitting:
Error comes from:
rust/src/bootstrap/bin/rustc.rs
Line 115 in f2ef283
The configuration is very unusual because the builder is
x86_64-unknown-linux-gnu
and both the host and the target are set tox86_64-unknown-linux-musl
.Full log from rebuild: https://gist.github.com/mati865/147c64df0f093117f730c78b66299d86
cc @Zoxc
The text was updated successfully, but these errors were encountered: