Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68394 - Empty GCC_SPECS causes cryptic message
Summary: Empty GCC_SPECS causes cryptic message
Status: RESOLVED DUPLICATE of bug 68395
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-21 07:04 UTC by Jacek Sieka
Modified: 2005-07-17 13:06 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jacek Sieka 2004-10-21 07:04:50 UTC
For reasons unnoted, I had my GCC_SPECS set to the empty string, which leads to the cryptic error "gcc: /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.2/: Is a directory". Perhaps, in the specs patch, a check for the 0-length string would be in order?



Reproducible: Always
Steps to Reproduce:
1.
2.
3.




How to fix:

--- gcc-spec-env.patch  2004-09-13 23:39:47.000000000 +0200
+++ /tmp/gcc-spec-env.patch     2004-10-21 16:08:02.377882432 +0200
@@ -6,7 +6,7 @@
       line.  */
 +
 +  GET_ENVIRONMENT (specs_file, "GCC_SPECS");
-+  if (specs_file)
++  if (specs_file && specs_file[0])
 +    {
 +      struct user_specs *user = (struct user_specs *)
 +        xmalloc (sizeof (struct user_specs));
Comment 1 Aaron Walker (RETIRED) gentoo-dev 2004-10-21 09:11:48 UTC

*** This bug has been marked as a duplicate of 68395 ***