Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 693134 - x11-libs/wxGTK should force bfd linker
Summary: x11-libs/wxGTK should force bfd linker
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo wxWidgets Herd
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-30 15:43 UTC by David Carlos Manuelda
Modified: 2019-09-02 16:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Carlos Manuelda 2019-08-30 15:43:27 UTC
When trying to compile wxGTK with clang and libc++ as default (with libc++abi) it has problems with linking symbols in runtime inside its binary: /usr/bin/wxrc-3.0-gtk3

Because of this, anything can be linked/compiled against wxGTK (poedit in my testcase).

When executed that binary, it tells:

/usr/bin/wxrc-3.0-gtk3: /usr/lib64/libc++abi.so.1: version `WXU_3.0' not found (required by /usr/bin/wxrc-3.0-gtk3)

And so anything can be compiled against it, like the mentioned poedit.

Digging into the issue I found out that forcing BFD linker via LDFLAGS="${LDFLAGS} -fuse-ld=bfd" (so, forcedfully setting BFD linker) makes this problem to go away, this might be safe for gcc builds as well.
Comment 1 David Carlos Manuelda 2019-08-30 15:44:07 UTC
Tested version was x11-libs/wxGTK-3.0.4-r302
Comment 2 Mart Raudsepp gentoo-dev 2019-08-31 08:02:31 UTC
But what if GCC using people want to use ld.gold? Or is that broken for them too?
Comment 3 David Carlos Manuelda 2019-09-02 16:37:31 UTC
(In reply to Mart Raudsepp from comment #2)
> But what if GCC using people want to use ld.gold? Or is that broken for them
> too?

That's a good point!

Tested and it does not fail with gcc (tested with 9.2.0) and gold linker.