Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 63973 - gcc-config confused if profile in /etc/env.d/gcc/config doesn't exist
Summary: gcc-config confused if profile in /etc/env.d/gcc/config doesn't exist
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 65129
  Show dependency tree
 
Reported: 2004-09-14 02:06 UTC by Scott Taylor (RETIRED)
Modified: 2004-10-02 05:25 UTC (History)
1 user (show)

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


Attachments
gcc-config-1.3.6.diff (gcc-config-1.3.6.diff,657 bytes, patch)
2004-09-14 12:45 UTC, solar (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Taylor (RETIRED) gentoo-dev 2004-09-14 02:06:38 UTC
While it appears the gcc 3.4.2 ebuild somehow misses updating the file 
/etc/env.d/gcc/config, this exposes a quirk of gcc-config saying no profile
exists, if this 'config' file doesn't point to a profile that exists.


ThinkPad gcc # gcc-config --version
gcc-config-1.3.6
ThinkPad gcc # gcc-config -l
 * /usr/bin/gcc-config: Profile does not exist!
ThinkPad gcc # cat config
CURRENT=i386-pc-linux-gnu-3.4.1
ThinkPad gcc # ls
config  i386-pc-linux-gnu-3.3.4  i386-pc-linux-gnu-3.4.2
ThinkPad gcc # vi config
"config" 1L, 32C written
ThinkPad gcc # cat config
CURRENT=i386-pc-linux-gnu-3.4.2
ThinkPad gcc # gcc-config -l
[1] i386-pc-linux-gnu-3.3.4
[2] i386-pc-linux-gnu-3.4.2
ThinkPad gcc #emerge -pv gcc-config
[ebuild   R   ] sys-devel/gcc-config-1.3.6-r1
Comment 1 solar (RETIRED) gentoo-dev 2004-09-14 09:15:31 UTC
Travvis 
 This is the same problem that I pointed out to you that happened to me.
Comment 2 Travis Tilley (RETIRED) gentoo-dev 2004-09-14 10:59:42 UTC
the slot for 3.4.2 was broken. i've fixed it... but still, this is also a bug in gcc-config.
Comment 3 solar (RETIRED) gentoo-dev 2004-09-14 11:03:45 UTC
How is this a bug in gcc-config?
Comment 4 Scott Taylor (RETIRED) gentoo-dev 2004-09-14 11:18:50 UTC
running "gcc-config -l" should list the available profiles, and allow you to set
a profile, even if {disk error, human error, backup process, etc} has a "config"
file that doesn't point to an existing profile. Might even be good for gcc-config
to automatically at least pick and set one, or the closest match or something if
the profile in "config" doesn't exist... rather than saying "Profile does not
exist". Because as you can see, there ARE two profiles that DO exist. And at that
point in time, someone is probably trying to run gcc-config in hopes of fixing the
dreaded "gcc can not compile anything" issue (since it cant be found) and the last
thing someone needs to hear is that they have no gcc profile when they really do.
Comment 5 solar (RETIRED) gentoo-dev 2004-09-14 12:45:29 UTC
Created attachment 39597 [details, diff]
gcc-config-1.3.6.diff

Scott please see if you can find any bugs in the behavior of this patch for
gcc-config.
Comment 6 solar (RETIRED) gentoo-dev 2004-09-14 12:47:41 UTC
uCpie busybox # gcc-config -l
 * /usr/bin/gcc-config: Profile does not exist or invalid setting in current config i386-pc-linux-uclibc-3.4.24096u094376094576097u437096
[1] i386-pc-linux-uclibc-3.3.4
[2] i386-pc-linux-uclibc-3.4.2
uCpie busybox # gcc-config 2 
 * Switching to i386-pc-linux-uclibc-3.4.2 compiler...                                                                                                [ ok ]
 * If you intend to use the gcc from the new profile in an already
 * running shell, please remember to do:

 *   # source /etc/profile

Comment 7 Travis Tilley (RETIRED) gentoo-dev 2004-09-26 21:38:22 UTC
...is this patch in cvs yet?
Comment 8 solar (RETIRED) gentoo-dev 2004-09-28 15:02:25 UTC
Nope. still waiting on some feedback. It's become a blocker for another bug. 
Surely somebody can test it other than me.
Comment 9 Richard Morris 2004-09-30 00:15:28 UTC
Your patch fixed the problems I was having with lots of programs failing to start after they reported that libstdc++.so.6 was missing including firefox, man etc. 
Comment 10 Travis Tilley (RETIRED) gentoo-dev 2004-10-02 05:25:39 UTC
fixed in cvs, give it some time to reach rsync.