Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 68395
Alias:
Product:
Component:
Status: RESOLVED
Resolution: DUPLICATE of bug 68799
Assigned To: AMD64 Project <amd64@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Jacek Sieka <arnetheduck@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 68395 depends on: Show dependency tree
Bug 68395 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-10-21 07:11 0000
I recently tried to install a linux32 environment with one of the x86 stages,
but when compiling gcc got the strange message "xgcc: is a directory"gcc:
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.2/: Is a directory". I traced it down to
GCC_SPECS being set in my amd64 environment, but not unset by linux32 and not
reset by the stage env.d gcc script (which was gcc 3.3.4).
I used stage2-x86-2004.3.20040920.tar.bz2 from the experimental folder, but I
assume the problem is the same when building a 3.4.2 gcc from other stages as
well.

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




Can be solved by "unset GCC_SPECS && emerge gcc"

------- Comment #1 From Aaron Walker (RETIRED) 2004-10-21 09:11:49 0000 -------
*** Bug 68394 has been marked as a duplicate of this bug. ***

------- Comment #2 From Ian Abbott 2004-10-29 07:52:02 0000 -------
The bug is more general than the summary suggests as it applies to any switch
from gcc 3.4.2 (perhaps any gcc 3.4.x) to gcc 3.3.x.

I don't think env-update supports commands to unset environment variables, but
could the gcc 3.3.x ebuilds be updated to set GCC_SPECS to something reasonable
instead of not setting it at all?  Otherwise, a switch from gcc 3.4.2 to 3.3.x
using gcc-config, followed by "source /etc/profile" (as the gcc-config script
suggests) leaves the GCC_SPECS environment variable set to its old value, which
can cause some ./configure scripts to fail when emerging certain packages.

------- Comment #3 From Travis Tilley (RETIRED) 2004-10-29 12:18:18 0000 -------
GCC_SPECS is no longer set in the default config, and should hopefully leave
the environment completely at some point for the non-default configs. if you've
merged gcc 3.4.2-r2 or 3.4.2-r3 recently, this problem should mostly go away.


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

------- Comment #4 From Mr. Anderson 2009-01-30 21:43:14 0000 -------
When updating from sys-devel/gcc-4.3.2-r3 to sys-devel/gcc-4.3.3 everything is
fine. But when switching back from 4.3.3 to 4.3.2-r3, I get this warning:

* gcc-config: Active gcc profile is invalid!                                    
* Switching native-compiler to x86_64-pc-linux-gnu-4.3.2...
* gcc-config: Active gcc profile is invalid!

* Your gcc has a bug with GCC_SPECS.
* Please re-emerge gcc.
* http://bugs.gentoo.org/68395

This goes away when emerging gcc-4.3.2-r3 then a second time.

Should this be this way? Is this a bug?

------- Comment #5 From Auke Booij (tulcod) 2009-02-20 18:25:48 0000 -------
@M. Anderson: I just found this bug, too, after having some trouble with aspell
and trying to use an older version of gcc. Currently trying to remerge gcc
4.3.3 directly, and see if that makes a difference...

------- Comment #6 From Doug Whitesell 2009-06-09 17:39:11 0000 -------
I just got the same message:

* Your gcc has a bug with GCC_SPECS.
* Please re-emerge gcc

when running gcc-config to set up for 4.3.2, after upgrading from
=sys-devel/gcc-4.1.2 to =sys-devel/gcc-4.3.2-r3...on x86.

Things seem to be fine in Portage- and gcc-land, however.

------- Comment #7 From keenblade 2009-08-10 21:39:17 0000 -------
I got the same message as Doug Whitesell in emerge.log for upgrading gcc from
sys-devel/gcc-4.3.3 to sys-devel/gcc-4.3.4 on x86_64.

 * Your gcc has a bug with GCC_SPECS.
 * Please re-emerge gcc

 Things seem to be fine in Portage- and gcc-land here, too.
gcc-config -l
 [1] mingw32-4.4.0 *

 [2] x86_64-pc-linux-gnu-4.3.4 *

Do we really need to reemerge gcc?

------- Comment #8 From Adam Purkrt 2009-08-25 07:34:06 0000 -------
I've also run into this when upgrading sys-devel/gcc-4.3.2 to
sys-devel/gcc-4.3.4 on x86_64

>>> Installing (1 of 1) sys-devel/gcc-4.3.4
 * Running 'fix_libtool_files.sh 4.3.2'
* Scanning libtool files for hardcoded gcc library paths...
* gcc-config: Active gcc profile is invalid!
gcc-config: error: could not run/locate 'gcc'
:0: assertion failed: (gcc -dumpversion) | getline NEWVER)
* gcc-config: Active gcc profile is invalid!
* Switching native-compiler to x86_64-pc-linux-gnu-4.3.4...
* gcc-config: Active gcc profile is invalid!

* Your gcc has a bug with GCC_SPECS.
* Please re-emerge gcc.
* http://bugs.gentoo.org/68395


But gcc was upgraded correctly anyway

# gcc --version
gcc (Gentoo 4.3.4 p1.0, pie-10.1.5) 4.3.4

------- Comment #9 From Tim Weber 2009-10-09 08:34:59 0000 -------
AFAICS (regarding comments #4 to #8) gcc-config says this when switching from
an invalid profile (e.g. because you just uninstalled the active gcc version)
to another one. When you run gcc-config again, the new profile is active and
working, and no warning is displayed.

I consider this a bit of a confusing uglyness in gcc-config, maybe we should
file another bug?

------- Comment #10 From Dirkjan Ochtman 2009-10-19 07:37:26 0000 -------
If that's really the case, filing another bug sounds great (I just ran into
this, too, on a couple of boxes).

------- Comment #11 From Tim Weber 2009-10-25 08:40:00 0000 -------
(In reply to comment #10)
> If that's really the case, filing another bug sounds great (I just ran into
> this, too, on a couple of boxes).

Filed a new bug on this: bug #290437.

People who came here because your gcc-config told you to visit this page:
Probably you don't need to re-emerge gcc, have a look at bug #290437 and see
whether it applies to you.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug