Skip to content
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

Use the selected CC/CXX in crates that build with gcc-rs. #42206

Closed
wants to merge 1 commit into from

Conversation

bryant
Copy link

@bryant bryant commented May 24, 2017

Such as librustc_llvm.

@rust-highfive
Copy link
Collaborator

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.

@aidanhs
Copy link
Member

aidanhs commented May 24, 2017

r? @alexcrichton

Thanks for the PR @bryant, we'll check in every now and again to make sure @alexcrichton or another reviewer gets to this soon!

@aidanhs aidanhs assigned alexcrichton and unassigned nikomatsakis May 24, 2017
@alexcrichton
Copy link
Member

Thanks for the PR! These should already be set though for various scripts, but are they not working?

@bryant
Copy link
Author

bryant commented May 25, 2017 via email

@alexcrichton
Copy link
Member

Can you gist the error message you're seeing? The build script is using the gcc crate which should be using the preexisting env vars.

@alexcrichton alexcrichton added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label May 25, 2017
@aidanhs
Copy link
Member

aidanhs commented Jun 1, 2017

Hi @bryant, any news on the gist with the error? It'd be good to fix whatever you saw!

@hanna-kruppe
Copy link
Contributor

hanna-kruppe commented Jun 6, 2017

I think I encountered this issue too. I rebuilt LLVM with clang instead of GCC (= cc for me) and put cc = "clang" and cxx = "clang++" in config.toml, my builds are failing because of the mismatched compiler ( even after x.py clean). Gist with build script output here: https://gist.github.com/rkruppe/a83d1509c4440917a2be37f3742b67ad

@alexcrichton
Copy link
Member

Ah it looks like setting CXX is missing here

@bryant
Copy link
Author

bryant commented Jun 7, 2017

Sorry for not being clear initially. The rustc_llvm problem that prompted this patch was a link failure: cargo or rustc or whatever insists on invoking cc as the linker.

Ah it looks like setting CXX is missing here

Unless gcc-rs calls CXX to link, I'm not sure that that's the problem. I'll try again tonight with CXX added at that spot.

@aidanhs
Copy link
Member

aidanhs commented Jun 15, 2017

@bryant did you manage to take another look at this?

@alexcrichton
Copy link
Member

Ok I'm going to close this due to inactivity, but thanks regardless for the PR @bryant! Feel free to resubmit as a new PR!

Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this pull request Jun 22, 2017
Set CXX_<target> in bootstrap

I came across this trying to cross-compile rustc for Redox. It was also mentioned in a comment on rust-lang#42206, but doesn't seem to have been corrected.
Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this pull request Jun 23, 2017
Set CXX_<target> in bootstrap

I came across this trying to cross-compile rustc for Redox. It was also mentioned in a comment on rust-lang#42206, but doesn't seem to have been corrected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants