View previous topic :: View next topic |
Author |
Message |
okel n00b

Joined: 04 Nov 2004 Posts: 38
|
Posted: Fri Sep 28, 2007 10:44 am Post subject: [solved] configure: error: cannot run C compiled programs |
|
|
Hello,
I've setup a new gentoo on my AMD64 system with an install-amd64-minimal-2007.0.iso. It is
ds9 ~ # uname -a
Linux ds9 2.6.22-gentoo-r5 #1 SMP Wed Sep 26 00:36:53 CEST 2007 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 5000+ AuthenticAMD GNU/Linux
I have emerged a few packages but have a problem compiling the glibc, that pointed me to a compiler problem. So I tried to emerge the gcc first.
"emerge gcc". It runs for while but somewhere bails out with
Code: | Running configure in multilib subdir 32
pwd: /var/tmp/portage/sys-devel/gcc-4.1.2/work/build/x86_64-pc-linux-gnu
mkdir 32
configure: creating cache ./config.cache
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for x86_64-pc-linux-gnu-gcc... /var/tmp/portage/sys-devel/gcc-4.1.2/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.1.2/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -m32
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'. |
My make.profile is /usr/portage/profiles/default-linux/amd64/2007.0/desktop.
USE="3dnow 3dnowext a52 aac alsa apache2 cpudetection dga divx dv dvb emerald bash-completion gimp glitz gtk2 mmx mmxext multilib mysql network nsplugin realmedia sdk sse unicode v4l v4l2 video_cards_radeon x264 xvid wmp -arts -fortran -gif -gnome -kde -qt -quicktime -recode"
I've found some hints to a problem like that on the net but they all are from the year 2005, no one seems to have that problem recently. What could be the problem here?
Regards
okel
Last edited by okel on Fri Sep 28, 2007 2:56 pm; edited 1 time in total |
|
Back to top |
|
 |
John R. Graham Administrator


Joined: 08 Mar 2005 Posts: 10749 Location: Somewhere over Atlanta, Georgia
|
|
Back to top |
|
 |
okel n00b

Joined: 04 Nov 2004 Posts: 38
|
Posted: Fri Sep 28, 2007 11:36 am Post subject: |
|
|
That's what I wrote about, it's from the year 2005. I tried it and it didn't make any difference.
okel |
|
Back to top |
|
 |
okel n00b

Joined: 04 Nov 2004 Posts: 38
|
Posted: Fri Sep 28, 2007 11:48 am Post subject: |
|
|
And: The topic you mentioned refers to another topic. In that topic people wrote about a bug, but that bug was fixed a long time ago and should be no problem any longer.
okel |
|
Back to top |
|
 |
Macrobiotus Apprentice


Joined: 06 Oct 2002 Posts: 230
|
Posted: Fri Sep 28, 2007 1:27 pm Post subject: |
|
|
Did you check IA32 Emulation / IA32 a.out support in your kernel? |
|
Back to top |
|
 |
John R. Graham Administrator


Joined: 08 Mar 2005 Posts: 10749 Location: Somewhere over Atlanta, Georgia
|
Posted: Fri Sep 28, 2007 1:27 pm Post subject: |
|
|
Okay, let's see what's really going on, then. Look in "/var/tmp/portage/sys-devel/gcc-4.1.2/work/build/x86_64-pc-linux-gnu" and find the "config.log" file and see what the exact failure is. Towards the end of the config.log will be output relevant to the failure.
- John |
|
Back to top |
|
 |
Maedhros Bodhisattva


Joined: 14 Apr 2004 Posts: 5511 Location: Durham, UK
|
Posted: Fri Sep 28, 2007 1:32 pm Post subject: |
|
|
And please post the output of emerge --info too. _________________ No-one's more important than the earthworm. |
|
Back to top |
|
 |
okel n00b

Joined: 04 Nov 2004 Posts: 38
|
|
Back to top |
|
 |
okel n00b

Joined: 04 Nov 2004 Posts: 38
|
Posted: Fri Sep 28, 2007 2:55 pm Post subject: |
|
|
Ok, that did it. The flaky kernel config is a copied config from my alternative x86 gentoo installation.
Thanks to Macrobiotus and the others.
okel |
|
Back to top |
|
 |
audiodef Watchman


Joined: 06 Jul 2005 Posts: 6656 Location: The soundosphere
|
|
Back to top |
|
 |
|