Summary: | gcc-config confused if profile in /etc/env.d/gcc/config doesn't exist | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Scott Taylor (RETIRED) <swtaylor> |
Component: | New packages | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | azarah |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 65129 | ||
Attachments: | gcc-config-1.3.6.diff |
Description
Scott Taylor (RETIRED)
2004-09-14 02:06:38 UTC
Travvis This is the same problem that I pointed out to you that happened to me. the slot for 3.4.2 was broken. i've fixed it... but still, this is also a bug in gcc-config. How is this a bug in gcc-config? 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. 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.
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 ...is this patch in cvs yet? Nope. still waiting on some feedback. It's become a blocker for another bug. Surely somebody can test it other than me. 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. fixed in cvs, give it some time to reach rsync. |