-
Notifications
You must be signed in to change notification settings - Fork 993
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
[bug] AutotoolsToolchain uses the build compiler rather than host compiler #13219
Comments
Here's the full output of trying to build openssl/1.1.1t using a real GCC cross compilation toolchain:
|
It looks like this needs to look at os_host, not os_build:
|
Hi @sfackler - thanks so much for trying this out on both Conan 2.0 and 1.59 and for your thorough investigation. Indeed I believe there could be a bug in that particular line. Will review your PR to fix this, thanks for raising it! |
@jcar87 Are you going to have a chance to review the PR? |
Hi @sfackler - apologies for the delay in getting to this. We have reviewed it and added a couple of fixes and a unit test to avoid regressions in the future. Thanks so much for the investigation and your proposed fix, it was spot on :) |
Environment details
Steps to reproduce
Logs
Note that the resolved cflags contain flags meant for clang while the host profile indicates the compiler is gcc. It is picking up some of the host profile though since it's setting the architecture to x86_64 rather than the build profile's armv8.
This is a stripped down reproduction of a failure to cross compile the openssl recipe on macOS that fails due to the same introduction of clang cflags to the GCC compiler.
The text was updated successfully, but these errors were encountered: