Closed lczech closed 4 days ago
It seems to me that the reason it is broken is because of LTO. Not sure what we can do to fix that old LLVM.
Not sure that I understand. It seemed to me that this is due to a setup of two conflicting versions of LLVM. How would LTO introduce this error?
Because in LTO, the linker strictly requires matching MacOS target versions. If you build without LTO, it warns, but it will succeed in building.
Ah I see, thanks for the explanation! Isn't that something that would be fixed by having matching target versions though? Is that something that could be done here in setup-cpp? I'd like to keep LTO activated if possible, and not have to introduce an exception for certain OS/compiler combinations :-)
Those specific binaries that LLVM provided are built with that target version. I'll see if there's a solution other than building from the source
Ah now it makes sense that you said
Not sure what we can do to fix that old LLVM.
before :-D Thanks for being patient with me, now I get it!
No worries, if that's too much hassle, I don't think it's the most important thing to fix. I have now simply excluded OSX11 + LLVM14 from my GitHub Actions workflow, which is okay. Any user that happens to want to use exactly those two will then have to deal with it somehow ;-)
Feel free to close the issue if this requires more than just a quick version fix!
Hi there,
after my source files all compile fine, I'm getting a linking error at the end:
This only happens with macos 11 and llvm 14, and seems to be coming from some mismatching versions. I am not entirely sure if this is a setup-cpp issue (it seems so though), or something else. If something else, feel free to close this issue again ;-)
Cheers Lucas
Upvote & Fund
@aminya is using Polar.sh so you can upvote and help fund this issue. The funding is received once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog!