Skip to content
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

VTT and discarded COMDAT error #1311

Open
diehard2 opened this issue Jul 19, 2024 · 3 comments
Open

VTT and discarded COMDAT error #1311

diehard2 opened this issue Jul 19, 2024 · 3 comments

Comments

@diehard2
Copy link

Hi, I'm getting an error for

[build] mold: error: /mydirectory/libflat_combine.a(flat_combine.cpp.o):(.debug_loc): VTT for mynamespace::concurrent::FlatCombineFinishedException refers to a discarded COMDAT section probably due to an ODR violation

I'm not seeing this if I link with ld, gold, or lld. I can't seem to figure out how to make a small reproducer. There is nothing unusual about the code that I can see and VTT isn't finding any hits in this repository.

I don't know if it would make the difference, but the library is compiled with gcc and the executable is compiled with clang. If both are compiled with gcc it works as expected. I'm seeing this with both the latest mold and version 2.4. Any help is appreciated.

@rui314
Copy link
Owner

rui314 commented Jul 20, 2024

Can you share your /mydirectory/libflat_combine.a with me?

@diehard2
Copy link
Author

thanks for the response @rui314. Do you have somewhere I can send it?

@rui314
Copy link
Owner

rui314 commented Jul 24, 2024

You can zip that file and upload to this github issue as an attachment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants