Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 644698

Summary: sys-devel/gcc-7.2.0-r1 with 17.1 profile - ld: skipping incompatible /usr/lib/../lib/libc.so when searching for -lc
Product: Gentoo Linux Reporter: Stefan Böhmann <devel>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED INVALID    
Severity: normal CC: floppym, tsmksubc
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info '=sys-devel/gcc-7.2.0-r1::gentoo'
emerge -pqv '=sys-devel/gcc-7.2.0-r1::gentoo'
gcc-build-logs.tar.bz2

Description Stefan Böhmann 2018-01-15 21:30:59 UTC
Created attachment 514992 [details]
emerge --info '=sys-devel/gcc-7.2.0-r1::gentoo'

For some time now gcc-7.2.0 and gcc-7.2.0-r1 fails to compile with error:  cannot find -lc
Comment 1 Stefan Böhmann 2018-01-15 21:31:27 UTC
Created attachment 514994 [details]
emerge -pqv '=sys-devel/gcc-7.2.0-r1::gentoo'
Comment 2 Stefan Böhmann 2018-01-15 21:33:37 UTC
Created attachment 514996 [details]
gcc-build-logs.tar.bz2
Comment 3 Mike Gilbert gentoo-dev 2018-01-15 22:40:51 UTC
It looks like you have the 17.1 profile selected. This profile is NOT intended for general usage.

Did you follow the instructions in the news item?

https://www.gentoo.org/support/news-items/2017-12-26-experimental-amd64-17-1-profiles.html
Comment 4 Stefan Böhmann 2018-01-16 22:25:44 UTC
damn, I've changed blindly from an outdated profile to the latest one. 
My fault... thank you Mike for your help!
Comment 5 Mike Gilbert gentoo-dev 2018-01-16 22:52:59 UTC
(In reply to Stefan Böhmann from comment #4)
> damn, I've changed blindly from an outdated profile to the latest one. 
> My fault... thank you Mike for your help!

No problem. I suspect you could get things working again by restoring the /lib and /usr/lib symlinks, but that's just a guess. If you need further help, I suggest dropping by #gentoo on the Freenode IRC network.