-
Notifications
You must be signed in to change notification settings - Fork 12.1k
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
[15 regression] "module flag identifiers must be unique (or of 'require' type) #57501
Comments
The trigger seems to be linking clang 15 LTO code to a static libzstd.a built with clang 14 (the problem goes away when rebuilding libzstd.a with clang 15 or using a shared libzstd.so). |
I can reproduce the issue. It happens when I try to use PGO and LTO together with LLVM 15.0.7. @berolinux Did you find a generic workaround for the problem? I am not using libzsdtd.a |
I'm also seeing this compiling a Rust project.
The project is open source if you want to investigate. https://gitlab.com/kevincox/ricochetrobots This can be reproduced by removing the |
And I just got the same error during optimization Vector with PGO: Kobzol/cargo-pgo#32 (comment) |
@kevincox try to enable ThinLTO to your project (with In Vector right now I use the following options:
PGO build is done with |
This still occurred for me with thin LTO configured as you described. |
it's a pity :( |
Never mind, ThinLTO does not help me too (I've just made a silly mistake). For now, the only way to avoid the bug is to completely disable LTO (with |
Same here (ld.lld: 18.0.1, clang: 18.0.1, opt: 18.1.8). |
What's the preferred / recommended mitigation for this bug? When (approximately) this bug will be fixed? |
Trying to build Qt 6.4.0-beta4 with clang/lld 15-rc3 and LTO enabled results in
clang 14.0.6 works as expected. Sorry, no small test case yet
The text was updated successfully, but these errors were encountered: