Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 221109 - "gcc-config-1.4.0-r4 -O" returns "No profile selected, unable to utilize --use-old"
Summary: "gcc-config-1.4.0-r4 -O" returns "No profile selected, unable to utilize --us...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-09 16:37 UTC by Brian Childs
Modified: 2009-08-03 00:40 UTC (History)
1 user (show)

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


Attachments
Possible fix (gcc-config.patch,372 bytes, patch)
2008-05-09 17:29 UTC, Brian Childs
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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