Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on AMD64
  • Search

[solved] configure: error: cannot run C compiled programs

Have an x86-64 problem? Post here.
Locked
Advanced search
10 posts • Page 1 of 1
Author
Message
okel
n00b
n00b
Posts: 38
Joined: Thu Nov 04, 2004 8:51 am

[solved] configure: error: cannot run C compiled programs

  • Quote

Post by okel » Fri Sep 28, 2007 10:44 am

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: Select all

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.
Top
John R. Graham
Administrator
Administrator
User avatar
Posts: 10905
Joined: Tue Mar 08, 2005 3:39 pm
Location: Somewhere over Winder, Georgia, USA

  • Quote

Post by John R. Graham » Fri Sep 28, 2007 11:01 am

See [IG7] cannot run C compiled programs (AMD64).

- John
Top
okel
n00b
n00b
Posts: 38
Joined: Thu Nov 04, 2004 8:51 am

  • Quote

Post by okel » Fri Sep 28, 2007 11:36 am

That's what I wrote about, it's from the year 2005. I tried it and it didn't make any difference.

okel
Top
okel
n00b
n00b
Posts: 38
Joined: Thu Nov 04, 2004 8:51 am

  • Quote

Post by okel » Fri Sep 28, 2007 11:48 am

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
Top
Macrobiotus
Apprentice
Apprentice
User avatar
Posts: 230
Joined: Sun Oct 06, 2002 9:12 am

  • Quote

Post by Macrobiotus » Fri Sep 28, 2007 1:27 pm

Did you check IA32 Emulation / IA32 a.out support in your kernel?
Top
John R. Graham
Administrator
Administrator
User avatar
Posts: 10905
Joined: Tue Mar 08, 2005 3:39 pm
Location: Somewhere over Winder, Georgia, USA

  • Quote

Post by John R. Graham » Fri Sep 28, 2007 1:27 pm

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
Top
Maedhros
Bodhisattva
Bodhisattva
User avatar
Posts: 5511
Joined: Wed Apr 14, 2004 8:10 pm
Location: Durham, UK

  • Quote

Post by Maedhros » Fri Sep 28, 2007 1:32 pm

And please post the output of emerge --info too.
No-one's more important than the earthworm.
Top
okel
n00b
n00b
Posts: 38
Joined: Thu Nov 04, 2004 8:51 am

  • Quote

Post by okel » Fri Sep 28, 2007 1:38 pm

I'm currently reading and testing http://bugs.gentoo.org/show_bug.cgi?id=189764 . It might fit to my problem. I'll post results.

okel
Top
okel
n00b
n00b
Posts: 38
Joined: Thu Nov 04, 2004 8:51 am

  • Quote

Post by okel » Fri Sep 28, 2007 2:55 pm

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
Top
audiodef
Watchman
Watchman
User avatar
Posts: 6656
Joined: Wed Jul 06, 2005 1:02 pm
Location: The soundosphere
Contact:
Contact audiodef
Website

  • Quote

Post by audiodef » Tue Apr 05, 2011 9:00 pm

I don't mean to open a dead thread, but I'm having this problem now. So far for sandbox and wine.
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Top
Locked

10 posts • Page 1 of 1

Return to “Gentoo on AMD64”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Authors
Gentoo is a trademark of the Gentoo Foundation, Inc. and of Förderverein Gentoo e.V.
The contents of this document, unless otherwise expressly stated, are licensed under the CC-BY-SA-4.0 license.
The Gentoo Name and Logo Usage Guidelines apply.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy