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.
I presume that --sysroot in C*FLAGS (as seen in --info) was added after you started to experience issues.
Yes. It seems to help as a workaround.
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!