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

Bug 221109

Summary: "gcc-config-1.4.0-r4 -O" returns "No profile selected, unable to utilize --use-old"
Product: Gentoo Linux Reporter: Brian Childs <brian>
Component: New packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: normal CC: zzam
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Possible fix

Description Brian Childs 2008-05-09 16:37:24 UTC
It appears as though gcc-config -O is unable to figure out what the current
profile is.


Reproducible: Always

Steps to Reproduce:
1. run gcc-config -l, to list your profiles
2. run gcc-config -O

Actual Results:  
agave ~ # gcc-config -l
 [1] x86_64-pc-linux-gnu-3.4.6
 [2] x86_64-pc-linux-gnu-3.4.6-hardened
 [3] x86_64-pc-linux-gnu-3.4.6-hardenednopie
 [4] x86_64-pc-linux-gnu-3.4.6-hardenednopiessp
 [5] x86_64-pc-linux-gnu-3.4.6-hardenednossp
 [6] x86_64-pc-linux-gnu-4.1.2 *
agave ~ # gcc-config -O
 * No profile selected, unable to utilize --use-old



This is a major problem for me because the LDFLAGS in /etc/env.d/05gcc* aren't updated properly when gcc is installed.  Some programs crash because they can't find libstdc++.so.5

I verified this problem ~x86 and ~amd64

I used 'gcc-config $(gcc-config -c)' to workaround it.
Comment 1 Brian Childs 2008-05-09 17:29:24 UTC
Created attachment 152651 [details, diff]
Possible fix

The problem comes about because a config file was renamed,
/etc/env.d/gcc/config is now called /etc/env.d/gcc/config-x86_64-pc-linux-gnu

The attached patch fixes the problem, but I'm not sure if it's the correct fix.
Comment 2 Mark Loeser (RETIRED) gentoo-dev 2009-08-03 00:40:09 UTC
Looks good enough to me, and it works.  Fixed in the tree.  Thanks