Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 131970 - Getting "Configure: Error: Cannot run C compiled programs" when emerging GCC.
Summary: Getting "Configure: Error: Cannot run C compiled programs" when emerging GCC.
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-01 17:17 UTC by Nick Hays
Modified: 2012-08-12 19:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Emerge --info output (emerge_info,2.23 KB, text/plain)
2006-05-01 18:25 UTC, Nick Hays
Details
config.log (config.log,307.59 KB, text/plain)
2006-05-01 18:39 UTC, Nick Hays
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Hays 2006-05-01 17:17:20 UTC
The following is a chunk of what happens preceeding my error.  If you need to see anything else, please let me know exactly what you need.  I'm a new Gentoo user, so I'm still learning alot. :)  If you need an additional config file, please give me its path and I'll be happy to attach it.  TIA, Nick

checking for strtof declaration... yes
checking for strtof... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/filio.h usability... no
checking sys/filio.h presence... no
checking for sys/filio.h... no
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking for locale.h... (cached) yes
checking for LC_MESSAGES... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for shared libgcc... yes
configure: versioning on shared library symbols is gnu
checking for unistd.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking for testsuite resource limits support... yes
checking for setenv declaration... yes
checking for setenv... yes
updating cache ./config.cache
checking for gxx-include-dir... /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/include/g++-v3
checking for --enable-version-specific-runtime-libs... no
checking for install location... /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/include/g++-v3
configure: creating ./config.status
config.status: creating Makefile
config.status: creating include/Makefile
config.status: creating libmath/Makefile
config.status: creating libsupc++/Makefile
config.status: creating src/Makefile
config.status: creating po/Makefile
config.status: creating testsuite/Makefile
config.status: creating scripts/check_survey
config.status: creating scripts/testsuite_flags
config.status: creating config.h
config.status: executing default-1 commands
Adding multilib support to Makefile in /build/portage/gcc-3.4.5/work/gcc-3.4.5/libstdc++-v3
multidirs=32
with_multisubdir=
Running configure in multilib subdirs 32
pwd: /build/portage/gcc-3.4.5/work/build/x86_64-pc-linux-gnu/libstdc++-v3
Running configure in multilib subdir 32
pwd: /build/portage/gcc-3.4.5/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... /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... /build/portage/gcc-3.4.5/work/build/gcc/xgcc -B/build/portage/gcc-3.4.5/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'.
Comment 1 Mark Loeser (RETIRED) gentoo-dev 2006-05-01 18:05:40 UTC
The output of `emerge --info'?
Comment 2 Nick Hays 2006-05-01 18:25:46 UTC
Created attachment 85958 [details]
Emerge --info output

Per your request.
Thx
Comment 3 Mark Loeser (RETIRED) gentoo-dev 2006-05-01 18:30:27 UTC
I forgot to ask for the config.log as well.  You didn't paste enough of the output for me to know which one it is exactly, so do: 

grep -R "error: cannot run C compiled programs" \
/var/tmp/portage/gcc-3.4.5/work/build/

and attach the log that contains that message.
Comment 4 Nick Hays 2006-05-01 18:39:36 UTC
Created attachment 85959 [details]
config.log

Config.log from:
/var/tmp/portage/gcc-3.4.5/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/
Comment 5 Nick Hays 2006-05-01 18:54:46 UTC
Just an FYI- This has happened with Glibc and a couple programs (Wine being one of them) as well.  
Comment 6 SpanKY gentoo-dev 2006-05-02 17:59:50 UTC
your glibc multilib is hosed

i'll let the amd64 team sort it out ;)
Comment 7 Nick Hays 2006-05-02 19:01:02 UTC
(In reply to comment #6)
> your glibc multilib is hosed
> 
> i'll let the amd64 team sort it out ;)
> 

So basically this is a common problem with AMD64?  Nothing for me to do at this point?
Comment 8 Mike Doty (RETIRED) gentoo-dev 2006-05-02 19:27:23 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > your glibc multilib is hosed
> > 
> > i'll let the amd64 team sort it out ;)
> > 
> 
> So basically this is a common problem with AMD64?  Nothing for me to do at this
> point?
> 
This is not a common problem for amd64, nor any other arch.  You managed to kill your headers somehow.  reiser4?  unclean shutdown?  bad rm -rf?  bad harddisc? I don't know.

You have 2 solutions:  you can reinstall or you can try to hack it with binary packages from GRP.  It's much easier to reinstall.
Comment 9 Nick Hays 2006-05-04 07:15:52 UTC
Well I've gotten some headway on this.  I found out that I did not have 32 bit emulation enabled in my kernel.  I've enabled and compiled it and it seems to be working.  

Is there a way to tell emerge to compile something in 32 bit, or do I need to install only bin packages for those?
Comment 10 Simon Stelling (RETIRED) gentoo-dev 2006-05-04 12:14:51 UTC
closing then.(In reply to comment #9)

> Is there a way to tell emerge to compile something in 32 bit, or do I need to
> install only bin packages for those?

There isn't one from the user point of view, so you have to use the -bin packages

Comment 11 Audiodef 2011-04-05 21:38:32 UTC
I'm having this problem, and I don't think I hose anything, although I had a couple of unclean shutdowns when a thing or two bjorked. But I'm not convinced that's the problem.
Comment 12 Carter Young 2011-04-15 03:05:57 UTC
(In reply to comment #11)
> I'm having this problem, and I don't think I hose anything, although I had a
> couple of unclean shutdowns when a thing or two bjorked. But I'm not convinced
> that's the problem.

please run gcc -v along with gcc-config -l
Comment 13 Agostino Sarubbo gentoo-dev 2012-08-12 19:39:03 UTC
No need to keep older and unreproducible bugs open...if any of you have this problem please reopen

Resolved as invalid as blubb did