Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12388 - CC environment variable missing
Summary: CC environment variable missing
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Git (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-18 09:04 UTC by Kevin N. Carpenter
Modified: 2011-10-30 22:47 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 Kevin N. Carpenter 2002-12-18 09:04:31 UTC
My development system performs an "emerge sync; emerge -u world" nightly - 
mostly to fetch the latest source files down to my shared DISTFILES area.

This morning, I noticed that nothing would compile:  "cc" wasn't found.

A little digging, and it ended up being an env-update problem with the 05GCC 
file no longer specifing "export CC=gcc".  This breaks emerge rather badly 
<grin>.
Comment 1 Kevin N. Carpenter 2002-12-18 09:10:51 UTC
Ah, the /etc/env.d/05GCC missing "CC=gcc" may not be the fix.

Appears /usr/bin/cc is a symbolic link to /usr/bin/gcc, and that doesn't exist.
I "ln -s /usr/i686-pc-linux-gnu/gcc-bin/3.2/gcc /usr/bin/gcc" and things are 
working much better now...

Kevin C.
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2002-12-18 10:04:32 UTC
which specific ebuild of gcc? (qpkg -I -v -nc gcc) 

if it is -r5 then run: 

gcc-config i686-pc-linux-gnu-3.2
Comment 3 Kevin N. Carpenter 2002-12-18 10:40:41 UTC
dl1 app-admin # qpkg -I -v -nc gcc
sys-devel/gcc-3.2.1-r6
sys-devel/gcc-config-1.2.2

The symbolic link appears to have resolved the issue, but I suspect something
in the emerge -u world process broke it.

Thanks,

Kevin C.
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-18 16:01:29 UTC
Update gcc-config to 1.2.4, and run what seemant said:

  # gcc-config i686-pc-linux-gnu-3.2.1
Comment 5 Kevin N. Carpenter 2002-12-18 16:42:49 UTC
Confirmed.  This appears to have resolved the problem.

Thanks!

Kevin C.