-
-
Notifications
You must be signed in to change notification settings - Fork 464
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
Qt 6 symbol mismatch #1158
Comments
Thank you for reporting. I succeeded to reproduce the issue. Let me take a look. |
The above commit should fix the issue. Can you try again with the above change? |
Yes, seems to be fixed. 👍 |
Looks like they turned that thing into a wildcard in 6.7.0-beta1 and this no longer works again. You can build 6.7.0-beta1 of https://github.com/qt/qtbase and inspect the symbol list of BFD gives: |
Previously, symbol names or wildcard patterns in version script files were processed strictly from top to bottom. When a single symbol matches two or more patterns, the first one was given precedence. However, GNU ld appears to treat exact matches differently, assigning them higher precedence over wildcard patterns. This discrepancy led to programs linked with Qt 6.6.1 using mold failing to launch. Fixes rui314#1158
And this happens again in 6.6.2 🙃 |
Are you still using |
I believe it's the same commit above cherry-picked into the 6.6 branch. @HanabishiRecca, are you using mold |
Yes.
No, I tested on the release. If that's the same already fixed thing, very well then. At least now you are aware that it also affects stable 6.6 and we need fixes to be released soon. |
Could you make a new release please, or should I cherry-pick this fix on top of 2.4.0 for Gentoo? |
I'll make another release, but please wait for a few weeks. I'm fixing other issues now. If you are in hurry, you may want to build mold yourself or download the most recent binary from GitHub Actions (https://github.com/rui314/mold/actions/runs/7856596446). |
I was just looking for consent to backport it, in case you thought it was unsafe to do so. Is it fine if I do that? |
It's probably a bit too risky to just cherry pick. Version script has caused very subtle issues before (this is one of them), so it needs rigorous testing. I usually build all Gentoo packages with mold before making a release. Until doing it, I'm not 100% sure if this would be fine at the moment. |
OK, thanks! |
Qt 6.6.1 linked with mold make apps crash. Earlier versions were fine.
A particular error may vary, but it is about symbols not found, like
It is a bit tricky to reproduce though.
Basically an app crashes if it is built against Qt linked with ld, but you trying to run it with Qt linked by mold.
I.e. I assume Qt 6.6.1 has symbols mismatch between ld and mold.
Arch Linux / mold 2.3.3
The text was updated successfully, but these errors were encountered: