Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 572390 - toolchain-prefix-wrapper needs to include current gcc libpath
Summary: toolchain-prefix-wrapper needs to include current gcc libpath
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on: 572388
Blocks:
  Show dependency tree
 
Reported: 2016-01-19 20:56 UTC by Fabian Groffen
Modified: 2016-02-21 16:44 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 Fabian Groffen gentoo-dev 2016-01-19 20:56:47 UTC
Since the introduction of binutils-config-5 (I suspect) there is no linking of libgcc_s, libstdc++, etc.  This means that we need to include LIBPATH in -R in calls to the linker to make sure that our gcc-provided libs which were used during compilation, are also used at runtime.

On Solaris I found this problem when compiling cmake, which succeeded to link a c++ program, but at runtime trapped due to ld.so.1 relocation errors.  This was due to the fact that the libstdc++.so found by the program (in /usr/lib) was way older and didn't have the symbols the program was compiled against.
Comment 1 Fabian Groffen gentoo-dev 2016-02-21 16:44:03 UTC
I rewrote a wrapper from scratch because I felt the current one was way too complicated.  It doesn't do cross or anything, but I wonder how much we need that.  We can think about that once we have a need for it.  It fixed my linking problems on Solaris.