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]: C++ One Definition Rule violation #1452
Comments
Hi ArchangeGabriel, I can't reproduce the issue, can you provide more details about the issue? Thanks! Such as build environment and make command. |
I confirm the issue still exists on current master. Configure and build with: $ CFLAGS="-O2 -march=native -flto=auto -pipe" CXXFLAGS="$CFLAGS" cmake -S . -B build -G Ninja
$ ninja -C build -v The
|
May I know what OS and gcc version you are using? Can you provide more details? Thanks a lot! |
Gentoo Linux and gcc-12. Are you having trouble reproducing the issue? |
does issue only happen on Gentoo linux? what's OS ver? |
No, it doesn't happen only on Gentoo. Please just try to reproduce it with the instructions I already gave. It's a legitimate problem in the code. E.g. there are multiple different structures named |
The fix already merged. Can you help verify it? Thanks a lot! |
Thanks! Looks fixed to me. |
Thank you! @ArchangeGabriel can you help verify and close this issue? Thanks a lot! |
I'm going to close this issue which has been fixed in 35235c2. Please feel free to re-open it if any new issues found. Thanks. |
Which component impacted?
Build
Is it regression? Good in old configuration?
No response
What happened?
When building with LTO enabled, they are some warning:
What's the usage scenario when you are seeing the problem?
Others
What impacted?
No response
Debug Information
This is on 22.4.4, it might have been present before but I did not check.
Do you want to contribute a patch to fix the issue?
No response
The text was updated successfully, but these errors were encountered: