Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 614060 - sys-devel/binutils: linker not finding libraries after emerging binutils with +multitarget
Summary: sys-devel/binutils: linker not finding libraries after emerging binutils with...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-27 10:20 UTC by Mario Kicherer
Modified: 2017-05-02 13:45 UTC (History)
0 users

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


Attachments
emerge --info (emerge.info,5.93 KB, application/x-info)
2017-03-27 10:20 UTC, Mario Kicherer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mario Kicherer 2017-03-27 10:20:13 UTC
Created attachment 468414 [details]
emerge --info

Last week my builds started to fail with errors like:

/usr/bin/ld: warning: libm.so.6, needed by
                 /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.4/../../../../lib64/libsqlite3.so, not found (try using -rpath or -rpath-link)

(a complete output of executing gcc with -v manually during a xvkbd build: https://pastebin.com/qfRftZdx )

I checked that every file that ld says is missing is actually there. ld --verbose also says that /usr/lib64 is a search path.

I did not verify that this problem is caused by binutils[+multitarget] but it was the only thing I changed as far as I remember. Today, I was able to successfully execute gcc again after I added --sysroot / to the commandline parameters. Hence, I guess somehow ld "forgot" the default sysroot and enabling or disabling multitarget again did not change this.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-04-08 06:59:37 UTC
I presume that --sysroot in C*FLAGS (as seen in --info) was added after you started to experience issues.
Comment 2 Mario Kicherer 2017-04-13 10:38:10 UTC
Yes. It seems to help as a workaround.
Comment 3 Mario Kicherer 2017-05-02 13:45:52 UTC
This was my fault. I played with the toolchain-binutils eclass and thought my changes will be reverted with the next "--sync". They weren't and so --with-sysroot was passed to configure regardless of the use flag. Sorry for the noise!