Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge -uDv world--> halt on 'linux-headers' [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
blossa
Apprentice
Apprentice


Joined: 13 Jan 2005
Posts: 169

PostPosted: Sat Jun 04, 2005 1:52 pm    Post subject: emerge -uDv world--> halt on 'linux-headers' [SOLVED] Reply with quote

Trying to run 'emerge -uDvp world' usually work. But now when portage gets to the point where it tries to emerge 'linux-headers' I get the following message:
Quote:
>>> Unpacking linux-2.6.11.tar.bz2 to /var/tmp/portage/linux-headers-2.6.11-r1/work
* Applying linux-headers-2.6.0-fb.patch (-p0+) ... [ ok ] * Applying linux-headers-2.6.0-sysctl_h-compat.patch (-p0+) ... [ ok ] * Applying linux-headers-2.6.10-generic-arm-prepare.patch (-p0+) ... [ ok ] * Applying linux-headers-2.6.11-appCompat.patch (-p0+) ... [ ok ] * Applying linux-headers-2.6.8.1-strict-ansi-fix.patch (-p0+) ... [ ok ] * Applying linux-headers-soundcard-ppc64.patch (-p0+) ... [ ok ]>>> Source unpacked.
/usr/bin/x86_64-pc-linux-gnu-ar
gcc-config error: Could not run/locate "x86_64-pc-linux-gnu-gcc"
gcc-config error: Could not run/locate "x86_64-pc-linux-gnu-gcc"
HOSTCC scripts/basic/fixdep
gcc-config error: Could not run/locate "gcc"
make[1]: *** [scripts/basic/fixdep] Fel 1
make: *** [scripts_basic] Fel 2

Any suggestions?

/Anders


Last edited by blossa on Sat Jun 04, 2005 5:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
oumpah-pah
Guru
Guru


Joined: 18 Jul 2004
Posts: 575
Location: Lausanne, Switzerland

PostPosted: Sat Jun 04, 2005 2:00 pm    Post subject: Reply with quote

It seems it doesn't find x86_64-pc-linux-gnu-gcc. Is this file in place and executable?
Back to top
View user's profile Send private message
blossa
Apprentice
Apprentice


Joined: 13 Jan 2005
Posts: 169

PostPosted: Sat Jun 04, 2005 3:07 pm    Post subject: Reply with quote

Quote:
# locate x86_64-pc-linux-gnu-gcc
/usr/lib/ccache/bin/x86_64-pc-linux-gnu-gcc
/usr/bin/x86_64-pc-linux-gnu-gcc
/usr/bin/x86_64-pc-linux-gnu-gcc64
/usr/x86_64-pc-linux-gnu/gcc-bin/3.4/x86_64-pc-linux-gnu-gcc-3.4.2
/usr/x86_64-pc-linux-gnu/gcc-bin/3.4/x86_64-pc-linux-gnu-gcc
/usr/x86_64-pc-linux-gnu/gcc-bin/3.4.4/x86_64-pc-linux-gnu-gcc
/usr/x86_64-pc-linux-gnu/gcc-bin/3.4.4/x86_64-pc-linux-gnu-gcc-3.4.4


Quote:
# ls -na /usr/bin/x86_64-pc-linux-gnu-*
lrwxrwxrwx 1 0 0 36 4 jun 15.02 /usr/bin/x86_64-pc-linux-gnu-addr2line -> ../x86_64-pc-linux-gnu/bin/addr2line
lrwxrwxrwx 1 0 0 29 4 jun 15.02 /usr/bin/x86_64-pc-linux-gnu-ar -> ../x86_64-pc-linux-gnu/bin/ar
lrwxrwxrwx 1 0 0 29 4 jun 15.02 /usr/bin/x86_64-pc-linux-gnu-as -> ../x86_64-pc-linux-gnu/bin/as
-rwxr-xr-x 1 0 0 11536 24 apr 21.25 /usr/bin/x86_64-pc-linux-gnu-c++
lrwxrwxrwx 1 0 0 34 4 jun 15.02 /usr/bin/x86_64-pc-linux-gnu-c++filt -> ../x86_64-pc-linux-gnu/bin/c++filt
-rwxr-xr-x 1 0 0 11536 24 apr 21.25 /usr/bin/x86_64-pc-linux-gnu-g++
-rwxr-xr-x 1 0 0 11536 24 apr 21.25 /usr/bin/x86_64-pc-linux-gnu-g++64
-rwxr-xr-x 1 0 0 11536 24 apr 21.25 /usr/bin/x86_64-pc-linux-gnu-g77
-rwxr-xr-x 1 0 0 11536 24 apr 21.25 /usr/bin/x86_64-pc-linux-gnu-gcc
-rwxr-xr-x 1 0 0 11536 24 apr 21.25 /usr/bin/x86_64-pc-linux-gnu-gcc64
lrwxrwxrwx 1 0 0 32 4 jun 15.02 /usr/bin/x86_64-pc-linux-gnu-gprof -> ../x86_64-pc-linux-gnu/bin/gprof
lrwxrwxrwx 1 0 0 29 4 jun 15.02 /usr/bin/x86_64-pc-linux-gnu-ld -> ../x86_64-pc-linux-gnu/bin/ld
lrwxrwxrwx 1 0 0 29 4 jun 15.02 /usr/bin/x86_64-pc-linux-gnu-nm -> ../x86_64-pc-linux-gnu/bin/nm
lrwxrwxrwx 1 0 0 34 4 jun 15.02 /usr/bin/x86_64-pc-linux-gnu-objcopy -> ../x86_64-pc-linux-gnu/bin/objcopy
lrwxrwxrwx 1 0 0 34 4 jun 15.02 /usr/bin/x86_64-pc-linux-gnu-objdump -> ../x86_64-pc-linux-gnu/bin/objdump
lrwxrwxrwx 1 0 0 33 4 jun 15.02 /usr/bin/x86_64-pc-linux-gnu-ranlib -> ../x86_64-pc-linux-gnu/bin/ranlib
lrwxrwxrwx 1 0 0 34 4 jun 15.02 /usr/bin/x86_64-pc-linux-gnu-readelf -> ../x86_64-pc-linux-gnu/bin/readelf
lrwxrwxrwx 1 0 0 31 4 jun 15.02 /usr/bin/x86_64-pc-linux-gnu-size -> ../x86_64-pc-linux-gnu/bin/size
lrwxrwxrwx 1 0 0 34 4 jun 15.02 /usr/bin/x86_64-pc-linux-gnu-strings -> ../x86_64-pc-linux-gnu/bin/strings
lrwxrwxrwx 1 0 0 32 4 jun 15.02 /usr/bin/x86_64-pc-linux-gnu-strip -> ../x86_64-pc-linux-gnu/bin/strip


How would I know wich 'x86_64-pc-linux-gnu-gcc' file emerge tries to use?

Any more command you need me to run?

Thnx for your help!

/Anders
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Sat Jun 04, 2005 4:10 pm    Post subject: Reply with quote

What's the output of gcc-config -l? It might be that gcc-config has managed to lose what was the default gcc without reinstating a new one...
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
blossa
Apprentice
Apprentice


Joined: 13 Jan 2005
Posts: 169

PostPosted: Sat Jun 04, 2005 5:13 pm    Post subject: Reply with quote

Aha!...
Quote:
# gcc-config -l
/usr/bin/gcc-config: line 496: /etc/env.d/gcc/x86_64-pc-linux-gnu-3.4.3-20050110: Filen eller katalogen finns inte
* /usr/bin/gcc-config: Profile does not exist or invalid setting for /etc/env.d/gcc/x86_64-pc-linux-gnu-3.4.3-20050110
[1] x86_64-pc-linux-gnu-3.4.2
[2] x86_64-pc-linux-gnu-3.4.2-hardened
[3] x86_64-pc-linux-gnu-3.4.2-hardenednossp
[4] x86_64-pc-linux-gnu-3.4.4
[5] x86_64-pc-linux-gnu-3.4.4-hardened
[6] x86_64-pc-linux-gnu-3.4.4-hardenednopie
[7] x86_64-pc-linux-gnu-3.4.4-hardenednopiessp
[8] x86_64-pc-linux-gnu-3.4.4-hardenednossp


After selecting No.4 it seems to work. Thanks alot! I must be honest and say that I had forgot about 'gcc-config'... :oops:

This has never happened to me before. Is that because I have never updated gcc (when 'emerge -uD world') or is it something wrong with the latest install?

/Anders
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum