-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
clang 15.0.7+ gcc toolchain detection fails when using explicit target triple #271
Comments
We don't really have support for clang on linux. That said, #227 (which #231 fixed) was about a very similar problem - not finding the C++ stdlib on linux, so it's interesting that the fix for that ends up breaking your usage of it. I'm not sure where you got your flag setup from, but basically, you need to extend your include path to also contain the location where The more comprehensive fix for all this (modulo conda-forge/clang-compiler-activation-feedstock#118) will arrive hopefully soon through conda-forge/ctng-compiler-activation-feedstock#100 resp. conda-forge/ctng-compiler-activation-feedstock#101 |
@feltech, I didn't think anyone would send a triple that way. We can restore that patch. I'm pretty sure, the PRs mentioned by @h-vetinari will not fix this issue. |
My assumption was that with the right compiler activation, we can handle it. If not, then we'll have to find another way. It sounds like you already know how the handling for arbitrary triples should look like... |
I've opened PRs for 15.x, 16.x, 17.x & main that reinstate the respective patch. |
Thanks! I did just give #102 (replacement for #101 that you posted) a go, which, if I'm understanding correctly, added I still haven't wrapped my head around the structure of these feedstocks, but if there are automated tests, perhaps the little test I posted could be incorporated as a regression test? |
I presume you're referring to conda-forge/ctng-compiler-activation-feedstock#102, not #102? In any case, as Isuru said, the clang compiler activation doesn't concern the detection of our somewhat custom location for libstdcxx. You'll be able to test it as soon as the PR #277 (or newer) is merged. |
Yes indeed, whoops 🙄
Yeah I figured as much, but thought it worth a shot.
Looking forward to it, thanks. |
OK, those PRs were merged, in a couple hours you should have the new builds for 15.x-18.x available. Please let us know if you still run into issues after that. In the meantime, I'm closing this as resolved. |
I tried 17.0.6 with the test above, and it works! Thanks again! |
Solution to issue cannot be found in the documentation.
Issue
clang fails to find the gcc toolchain when given an explicit (but compatible)
--target
.I came across this issue when building the
boost
library using itsb2
build system, who's clang.jam toolset effectively hardcodes to--target=x86_64-pc-linux
.We can simulate this like
Checked 15.0.6 (works), 15.0.7, 16.0.6, 17.0.6 (fails).
In #231 a patch was removed that adds conda-specific entries to clang's target triple aliases. The issue also explicitly mentions 15.0.7, so it's surely not a coincidence.
Installed packages
Environment info
The text was updated successfully, but these errors were encountered: