Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
"C compiler cannot create executables" !??!
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4 ... 10, 11, 12  Next  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
quattro
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jan 2003
Posts: 80
Location: Olathe, Kansas

PostPosted: Fri Feb 11, 2005 2:44 pm    Post subject: Reply with quote

Just to chime in, I too had the problem with "C compiler cannot create executable". I was able to fix the problem by executing the following:

Code:
gcc-config i686-pc-linux-gnu-3.3.5
fix_libtool_files.sh 3.3.4


It worked for me, YMMV.

Quattro
Back to top
View user's profile Send private message
thirsk
n00b
n00b


Joined: 12 Feb 2005
Posts: 2

PostPosted: Sat Feb 12, 2005 12:21 am    Post subject: Reply with quote

I tried everything here and then commented my FEATURES line before I got things working again (no more compiler can't create executables problem). I now recall ccache saving some broken builds, so as a suggestion, it might be good to disable ccache or clear the cache (ccache -C) after you do one of the other fixes.
Back to top
View user's profile Send private message
thomasando
Tux's lil' helper
Tux's lil' helper


Joined: 05 Apr 2003
Posts: 94

PostPosted: Sat Feb 26, 2005 1:37 pm    Post subject: Reply with quote

I had this problem on emerging gettext, using the standard CFLAGS from the stage 1-on-3 install. I did this:

Code:
export CFLAGS=""


And it is currently compiling. As soon as it's done, I'll put them back in and emerge everything else....

Hope taht helps someone out.
Back to top
View user's profile Send private message
Sideryt
n00b
n00b


Joined: 27 Feb 2005
Posts: 2

PostPosted: Sun Feb 27, 2005 3:06 pm    Post subject: Reply with quote

Hello all,

have the same problem. I install gentoo on my laptop and after "emerge system" got this problem after the first step, when it try to install cpio-2.6-r1.

quattro wrote:
Just to chime in, I too had the problem with "C compiler cannot create executable". I was able to fix the problem by executing the following:

Code:
gcc-config i686-pc-linux-gnu-3.3.5
fix_libtool_files.sh 3.3.4


It worked for me, YMMV.

Quattro


unfortunality i have no gcc-config or fix_libtool_files.sh. So, what to do?

thx

Sid
Back to top
View user's profile Send private message
Sideryt
n00b
n00b


Joined: 27 Feb 2005
Posts: 2

PostPosted: Sun Feb 27, 2005 4:33 pm    Post subject: Reply with quote

Update:

It seems that binutils are missing. In config.log the comipler doesnt fing "as". How can it be?

Sid
Back to top
View user's profile Send private message
Treovo
Tux's lil' helper
Tux's lil' helper


Joined: 30 Mar 2004
Posts: 88

PostPosted: Wed Mar 23, 2005 5:43 pm    Post subject: Reply with quote

Here we go again: I've broken gcc :cry:

I've been reading the forums for the past 3 days, I've also read the FAQ and all related posts. Still no luck, no way to emerge anything.

This is briefly what I tried:
Code:

gcc-config 1 (switched to the previous 3.3.4 version)
gcc-config 2 (switched to the current 3.3.5 version)
fix_libtools_files.sh 3.3.4
fix_libtools_files.sh 3.3.5
sh /etc/make.conf (to see if my lags were OK)


I've also tried to modify /etc/env.d/ld.so.conf as mentioned in some posts.
I've tried to run env-update with and without source /etc/profile (someone mentioned in bugzilla a bug in the script...)
I've modified /etc/env.d/05gcc to reflect the current gcc version used.
I've alos tried many other things but I can't remember in which order and what that was...

And finally, before posting this, I've tried to chroot into my box hoping that I could use the compiler of the live cd. If someone already recovered from this problem by doing so I'd really be happy to know how such a miracle has been accomplished.

Before I just reformat and start all over again, I wanted to try this great forum. :)

Here is my emerge info:
Code:
 Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5,
glibc-2.3.4.20040808-r1, 2.6.10-rc2-mm4 i686)
=================================================================
System uname: 2.6.10-rc2-mm4 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar 17 2005,
13:11:26)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.7.9-r1, 1.8.5-r3, 1.6.3, 1.9.4, 1.5
sys-devel/binutils:  2.15.92.0.2-r6
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS=""
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X alsa apm avi berkdb bitmap-fonts cdr crypt cups curl
divx4linux emboss encode esd fam flac font-server fonts foomaticdb
fortran gdbm gif gphoto2 gpm gtk imagemagick imlib ipv6 jpeg libg++
libwww mad mikmod mmx motif mp3 mpeg ncurses nls nptl nptlonly oggvorbis
opengl oss pam pdflib perl pic png qt quicktime readline sdl spell sse
ssl svga tcpd tiff truetype truetype-fonts type1-fonts xml2 xmms xv
zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY


Hope someone can help...:( I'm really desperate but still hope someone could come up with something I did not try before.
Thanks for your time.
_________________
.: Free your mind and your ass will follow :.
Back to top
View user's profile Send private message
Gengor
n00b
n00b


Joined: 24 Mar 2005
Posts: 3
Location: Gütersloh, Germany

PostPosted: Fri Mar 25, 2005 12:08 pm    Post subject: Reply with quote

I'm also stuck with the problem, that I cannot compile anything.

But as for your problem, I read something in another thread that might help you.

Your emerge info says:
your emerge --info wrote:
CFLAGS="-O2 -mcpu=i686 -pipe"

In THIS thread I read, that -mcpu was deprecated. Maybe you have the same problem as this guy did.



As for myself, when I emerge e.g. kdebase, I get this:
Code:
>>> emerge (1 of 1) kde-base/kdebase-3.4.0 to /
>>> md5 src_uri ;-) kdebase-3.4.0.tar.bz2
>>> Unpacking source...
>>> Unpacking kdebase-3.4.0.tar.bz2 to /var/tmp/portage/kdebase-3.4.0/work
 * Applying kdebase-3.4.0-startkde-gentoo.patch ...                       [ ok ]
>>> Source unpacked.
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... admin/config.guess: line 957:  4864 Aborted                 ( $c -c -o $dummy.o $dummy.c ) >/dev/null 2>&1
admin/config.guess: line 957:  4865 Aborted                 ( $c -c -o $dummy.o $dummy.c ) >/dev/null 2>&1
i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i686-pc-linux-gnu-strip... i686-pc-linux-gnu-strip
checking for kde-config... /usr/kde/3.4/bin/kde-config
checking where to install... /usr/kde/3.4 (as requested)
checking for style of include used by make... GNU
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details


It also startet after an emerge -eD world.
I have now only gcc-3.4.3 and I also have tried all kinds of things mentioned in this form, like gcc-config <compiler>, adjust ld.so.conf, fix_libtool_files.sh etc., but nothing helped! :-(

But I'm still not ready to give up, since so far I was always able to fix my gentoo. 8-)

As for my system, this is my emerge --info:
Code:
gorilla-nix ~ # emerge --info
Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20050125-r1, 2.6.10-gentoo-r7 i686)
=================================================================
System uname: 2.6.10-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Feb 26 2005, 23:40:50)]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.59-r6
sys-devel/automake:  1.9.5
sys-devel/binutils:  2.15.92.0.2-r6
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.4.22-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/"
LANG="de_De@euro"
LC_ALL="de_DE@euro"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aalib acpi alsa arts avi berkdb bitmap-fonts cdparanoia cdr crypt cups curl divxlinux dvd dvdr emboss encode esd exif fam firefox flac flash font-server foomaticdb fortran ftp gdbm gif gimpprint gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml imagemagick imap imlib ipv6 java joystick jpeg junit kde libg++ libwww mad mikmod mime ming mmx mng mozilla mp3 mpeg mysql mysqli ncurses nls ogg oggvorbis openal opengl oss pam pda pdflib perl php pic png python qt quicktime readline real samba sdl slang spell splash ssl stream svg svga tcltk tcpd tidy tiff truetype truetype-fonts type1-fonts vcd vorbis wxwindows xml2 xmms xv xvid zlib linguas_de"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS, PORTDIR_OVERLAY


I really hope someone can help me, because a full reinstall due to an error reminds me too much of my old Windows days. :wink:
Back to top
View user's profile Send private message
irf2003
Veteran
Veteran


Joined: 10 Sep 2003
Posts: 1078

PostPosted: Fri Mar 25, 2005 2:47 pm    Post subject: Reply with quote

Gengor,
can you post the relevent portion for config.log, also please post the output of emerge info
hth
Back to top
View user's profile Send private message
Gengor
n00b
n00b


Joined: 24 Mar 2005
Posts: 3
Location: Gütersloh, Germany

PostPosted: Fri Mar 25, 2005 3:11 pm    Post subject: Reply with quote

irf2003 wrote:
Gengor,
can you post the relevent portion for config.log, also please post the output of emerge info
hth


emerge info is already in my post above. 8-)

Here's the config.log part, that I think has to do with it:

config.log (part of it)
Code:
## ----------- ##
## Core tests. ##
## ----------- ##

configure:1586: checking build system type
configure:1604: result: i686-pc-linux-gnu
configure:1612: checking host system type
configure:1626: result: i686-pc-linux-gnu
configure:1634: checking target system type
configure:1648: result: i686-pc-linux-gnu
configure:1695: checking for a BSD-compatible install
configure:1750: result: /bin/install -c
configure:1765: checking for -p flag to install
configure:1778: result: yes
configure:1789: checking whether build environment is sane
configure:1832: result: yes
configure:1884: checking for gawk
configure:1900: found /bin/gawk
configure:1910: result: gawk
configure:1920: checking whether make sets $(MAKE)
configure:1940: result: yes
configure:2016: checking for i686-pc-linux-gnu-strip
configure:2032: found /usr/bin/i686-pc-linux-gnu-strip
configure:2042: result: i686-pc-linux-gnu-strip
configure:2198: checking for kde-config
configure:2260: result: /usr/kde/3.4/bin/kde-config
configure:2284: checking where to install
configure:2292: result: /usr/kde/3.4 (as requested)
configure:2343: checking for style of include used by make
configure:2371: result: GNU
configure:2481: checking for i686-pc-linux-gnu-gcc
configure:2497: found /usr/i686-pc-linux-gnu/gcc-bin/3.4.3/i686-pc-linux-gnu-gcc
configure:2507: result: i686-pc-linux-gnu-gcc
configure:2789: checking for C compiler version
configure:2792: i686-pc-linux-gnu-gcc --version </dev/null >&5
i686-pc-linux-gnu-gcc (GCC) 3.4.3 20050110 (Gentoo Linux 3.4.3.20050110, ssp-3.4.3.20050110-0, pie-8.7.7)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2795: $? = 0
configure:2797: i686-pc-linux-gnu-gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/specs
Configured with: /var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.4.3 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.3 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.3/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.3/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/include/g++-v3 --host=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --enable-shared --enable-threads=posix --disable-multilib --disable-libgcj --enable-languages=c,c++,f77
Thread model: posix
gcc driver version 3.4.3 20050110 (Gentoo Linux 3.4.3.20050110, ssp-3.4.3.20050110-0, pie-8.7.7) executing gcc version 3.3.4
configure:2800: $? = 0
configure:2802: i686-pc-linux-gnu-gcc -V </dev/null >&5
i686-pc-linux-gnu-gcc: `-V' option must have argument
configure:2805: $? = 1
configure:2828: checking for C compiler default output file name
configure:2831: i686-pc-linux-gnu-gcc  -O2 -march=pentium4 -fomit-frame-pointer -pipe   conftest.c  >&5
i686-pc-linux-gnu-gcc: spec failure: unrecognized spec option 'v'
i686-pc-linux-gnu-gcc: spec failure: unrecognized spec option 'v'
i686-pc-linux-gnu-gcc: spec failure: unrecognized spec option 'v'
i686-pc-linux-gnu-gcc: spec failure: unrecognized spec option 'p'
i686-pc-linux-gnu-gcc: spec failure: unrecognized spec option 'P'
./configure: line 2832: 12752 Aborted                 $CC $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5
configure:2834: $? = 134
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "kdebase"
| #define VERSION "3.4.0"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2873: error: C compiler cannot create executables
See `config.log' for more details.


Just in case: here's the whole file. config.log

Looking at the files again, I noticed one strange thing: I have 2 gcc-directories in my path:
  • /usr/i686-pc-linux-gnu/gcc-bin/3.4.3
  • /usr/i586-pc-linux-gnu/gcc-bin/3.4.3-20050110

Both these directories exist. The top one is the first in my path!

If I do a 'gcc --version', I get gcc (GCC) 3.4.3 20050110 (Gentoo Linux 3.4.3.20050110, ssp-3.4.3.20050110-0, pie-8.7.7)

One of the fixes I tried, was written in bug 85490. So I guess the path with "i585" is the precompiled binary from the bugfix, the other (i686) is what I compiled from my emerge.
Back to top
View user's profile Send private message
Gengor
n00b
n00b


Joined: 24 Mar 2005
Posts: 3
Location: Gütersloh, Germany

PostPosted: Thu Mar 31, 2005 1:24 pm    Post subject: Reply with quote

Well, I also "solved" the problem by doing a full reinstall, because that seemed the fastest solution after all.

2005.0 already runs nice an smooth with gcc 3.3.5.
Back to top
View user's profile Send private message
spetznaz
n00b
n00b


Joined: 07 Dec 2003
Posts: 36
Location: Norway

PostPosted: Thu Mar 31, 2005 11:01 pm    Post subject: Reply with quote

First excuse my english. But nobody on the Scandinavian forum know what is wrong.
(norwegian version at https://forums.gentoo.org/viewtopic-t-316515.html)

I get the error after updating the system to 2005.0 using this guide http://www.gentoo.org/proj/en/base/amd64/2005.0-upgrade-amd64.xml#doc_chap2 (The scripted way) I received no error under the install of 2005.0.

[maybe important or maybe not important at all]
The day before the upgrade i fix a bug I had with gcc. I was unable to oppgrade (or downgrade) gcc. but this bug report fixed it. https://bugs.gentoo.org/show_bug.cgi?id=86123

The advice was:
Quote:

rm -f /usr/lib32
ln -s ../../emul/linux/x86/usr/lib /usr/lib32
FEATURES=-sandbox emerge gcc


This fix the gcc update problem. (but i am wondering it may break somting else?)

Now gcc is not usable for anyting.

Tings I have tested:
1) fix_libtool_files.sh 3.4.2
2) gcc-config 1
3) Edit /etc/ld.so.conf all gcc paths point to 3.4.3-20050110 and not 3.4.2
4) Dubble checked make.conf for errors/typos
5) Compile with out any CFLAGS and CXXFLAGS

I am aware of Bug 73435 ( https://bugs.gentoo.org/show_bug.cgi?id=73435 ) But I can't see how to fix my system with the answers given in this bug-report.

ikaro point out "20050110/../../../../x86_64-pc-linux-gnu/bin/ld: crt1.o: No such file: No such file or directory" as the error line but I don't now how to use this info :-(

Dave Nebinger wrote this on the gentoo-user mailing list:
Quote:

Well probably you lost your /usr/lib32's file crt1.o file. Bummer.

If you remember what the old /usr/lib32 link was you might be able to copy
it back to /usr/lib32.

To properly repair your system you should probably re-emerge glibc now that
gcc is functioning again, but you'll need to get by the missing crt1.o file
before you'll be able to do that.


But how do I compile glibc with no working compillers?

System info:
Code:

spetznaz@Mjolne ~ $ gcc-config -l
[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.3-20050110 *
[5] x86_64-pc-linux-gnu-3.4.3-20050110-hardened
[6] x86_64-pc-linux-gnu-3.4.3-20050110-hardenednopie
[7] x86_64-pc-linux-gnu-3.4.3-20050110-hardenednossp


Code:

spetznaz@Mjolne ~ $ emerge --info
Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.2 0050125-r1, 2.6.11-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.11-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.10
Python: dev-lang/python-2.3.5 [2.3.5 (#1, Mar 29 2005, 02:30:26)]
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disab led]
dev-lang/python: 2.3.5
sys-devel/autoconf: 2.13, 2.59-r6
sys-devel/automake: 1.9.5, 1.5, 1.6.3, 1.7.9-r1, 1.4_p6, 1.8.5-r3
sys-devel/binutils: 2.15.92.0.2-r7
sys-devel/libtool: 1.5.14
virtual/os-headers: 2.6.8.1-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -O3 -pipe -frename-registers -fweb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share /config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/shar e/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O3 -pipe -frename-registers -fweb"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="ftp://ftp.linux.ee/pub/gentoo/distfiles/ ftp://mirror.pudas.net/ gentoo ftp://trumpetti.atm.tut.fi/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi alsa amd64 avi berkdb bidi bitmap-fonts cdr crypt dba directfb dvd d vdr dvdread encode fam fbcon ffmpeg flac font-server fortran freetype gd ggi gif gimp gpm gtk gtk2 imlib ipv6 jp2 jpeg kde libcaca lzw lzw-tiff mad motif mp3 mp eg mysql ncurses nls ogg oggvorbis opengl oss pam perl png python qt readline sd l spell ssl svg tcltk tcpd tiff truetype truetype-fonts type1-fonts usb userloca les wxwindows xml2 xmms xpm xrandr xv xvid zlib"
Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS


Error report:
I get this type of error for anyting i try to emerge. irssi as an exampel
Code:

>>> Source unpacked.
* econf: updating irssi-0.8.10-rc5/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating irssi-0.8.10-rc5/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --with-glib2 --without-servertest --with-proxy --with-ncurses --enable-nls --with-perl --enable-ipv6 --without-socks --with-openssl-include=/usr --with-openssl-libs=/usr
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal-1.4... found
checking for working autoconf... found
checking for working automake-1.4... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.

!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/irssi-0.8.10_rc5-r1/work/irssi-0.8.10-rc5/config.log

!!! ERROR: net-irc/irssi-0.8.10_rc5-r1 failed.
!!! Function econf, Line 485, Exitcode 0
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.


The config.log file:
Code:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --with-glib2 --without-servertest --with-proxy --with-ncurses --enable-nls --with-perl --enable-ipv6 --without-socks --with-openssl-include=/usr --with-openssl-libs=/usr

## --------- ##
## Platform. ##
## --------- ##

hostname = Mjolne
uname -m = x86_64
uname -r = 2.6.11-gentoo-r4
uname -s = Linux
uname -v = #1 Wed Mar 23 19:42:54 CET 2005

/usr/bin/uname -p = AMD Athlon(tm) 64 Processor 3000+
/bin/uname -X     = unknown

/bin/arch              = x86_64
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /sbin
PATH: /usr/sbin
PATH: /usr/lib/portage/bin
PATH: /bin
PATH: /usr/bin
PATH: /opt/bin
PATH: /usr/x86_64-pc-linux-gnu/gcc-bin/3.4.3-20050110
PATH: /opt/ati/bin
PATH: /usr/X11R6/bin
PATH: /usr/qt/3/bin
PATH: /usr/kde/3.4/sbin
PATH: /usr/kde/3.4/bin
PATH: /opt/vmware/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1576: checking for a BSD-compatible install
configure:1631: result: /bin/install -c
configure:1642: checking whether build environment is sane
configure:1685: result: yes
configure:1700: checking whether make sets $(MAKE)
configure:1720: result: yes
configure:1752: checking for working aclocal-1.4
configure:1759: result: found
configure:1767: checking for working autoconf
configure:1774: result: found
configure:1782: checking for working automake-1.4
configure:1789: result: found
configure:1797: checking for working autoheader
configure:1804: result: found
configure:1812: checking for working makeinfo
configure:1819: result: found
configure:1829: checking whether to enable maintainer-specific portions of Makefiles
configure:1838: result: no
configure:1861: checking for x86_64-pc-linux-gnu-gcc
configure:1877: found /usr/bin/x86_64-pc-linux-gnu-gcc
configure:1887: result: x86_64-pc-linux-gnu-gcc
configure:2169: checking for C compiler version
configure:2172: x86_64-pc-linux-gnu-gcc --version </dev/null >&5
x86_64-pc-linux-gnu-gcc (GCC) 3.4.3-20050110 (Gentoo Linux 3.4.3.20050110-r1, ssp-3.4.3.20050110-0, pie-8.7.7)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2175: $? = 0
configure:2177: x86_64-pc-linux-gnu-gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/specs
Configured with: /var/tmp/portage/gcc-3.4.3.20050110-r1/work/gcc-3.4.3/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/3.4.3-20050110 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.3-20050110 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.3-20050110/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.3-20050110/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/include/g++-v3 --host=x86_64-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --enable-multilib --disable-libgcj --enable-languages=c,c++,f77 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 3.4.3-20050110 (Gentoo Linux 3.4.3.20050110-r1, ssp-3.4.3.20050110-0, pie-8.7.7)
configure:2180: $? = 0
configure:2182: x86_64-pc-linux-gnu-gcc -V </dev/null >&5
x86_64-pc-linux-gnu-gcc: `-V' must come at the start of the command line
configure:2185: $? = 1
configure:2208: checking for C compiler default output file name
configure:2211: x86_64-pc-linux-gnu-gcc    conftest.c  >&5
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/../../../../x86_64-pc-linux-gnu/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:2214: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "irssi"
| #define VERSION "0.8.10-rc5"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2253: error: C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=x86_64-pc-linux-gnu
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_path_install='/bin/install -c'
ac_cv_prog_CC=x86_64-pc-linux-gnu-gcc
ac_cv_prog_make_make_set=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='aclocal-1.4'
AR=''
AUTOCONF='autoconf'
AUTOHEADER='autoheader'
AUTOMAKE='automake-1.4'
BUILD_IRSSIBOT_FALSE=''
BUILD_IRSSIBOT_TRUE=''
BUILD_IRSSIPROXY_FALSE=''
BUILD_IRSSIPROXY_TRUE=''
BUILD_PLUGINS_FALSE=''
BUILD_PLUGINS_TRUE=''
BUILD_TEXTUI_FALSE=''
BUILD_TEXTUI_TRUE=''
CC='x86_64-pc-linux-gnu-gcc'
CFLAGS=''
CHAT_MODULES=''
COMMON_LIBS=''
COMMON_NOUI_LIBS=''
CPP=''
CPPFLAGS=''
CURSES_INCLUDEDIR=''
CURSES_LIBS=''
CXX=''
CXXCPP=''
CXXFLAGS=''
DEFS=''
DYNALOADER_A=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
F77=''
FFLAGS=''
GLIB_CFLAGS=''
GLIB_CONFIG=''
GLIB_GENMARSHAL=''
GLIB_LIBS=''
GLIB_MKENUMS=''
GOBJECT_QUERY=''
HAVE_PERL_FALSE=''
HAVE_PERL_TRUE=''
HAVE_STATIC_PERL_FALSE=''
HAVE_STATIC_PERL_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
LDFLAGS=''
LIBOBJS=''
LIBPERL_A=''
LIBS=''
LIBTOOL=''
LN_S=''
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='makeinfo'
NEED_TPARM_FALSE=''
NEED_TPARM_TRUE=''
OBJEXT=''
PACKAGE='irssi'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PERL_CFLAGS=''
PERL_EXTRA_OPTS=''
PERL_FE_LINK_LIBS=''
PERL_LDFLAGS=''
PERL_LIBTOOL=''
PERL_LINK_FLAGS=''
PERL_LINK_LIBS=''
PERL_MM_PARAMS=''
PERL_STATIC_LIBS=''
PERL_USE_LIB=''
PKG_CONFIG=''
PROG_LIBS=''
RANLIB=''
SET_MAKE=''
SHELL='/bin/sh'
SSL_CFLAGS=''
SSL_LIBS=''
STRIP=''
TEXTUI_LIBS=''
USE_CURSES_FALSE=''
USE_CURSES_TRUE=''
VERSION='0.8.10-rc5'
VERSION_DATE=''
VERSION_TIME=''
ac_ct_AR=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_F77=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='/usr/share'
exec_prefix='NONE'
host='x86_64-pc-linux-gnu'
host_alias='x86_64-pc-linux-gnu'
host_cpu=''
host_os=''
host_vendor=''
includedir='${prefix}/include'
infodir='/usr/share/info'
irc_MODULES=''
libdir='/usr/lib64'
libexecdir='${exec_prefix}/libexec'
localstatedir='/var/lib'
mandir='/usr/share/man'
oldincludedir='/usr/include'
perl_module_fe_lib=''
perl_module_lib=''
perl_static_fe_lib=''
perl_static_lib=''
perlpath=''
prefix='/usr'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sedpath=''
sharedstatedir='${prefix}/com'
sysconfdir='/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE "irssi"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define VERSION "0.8.10-rc5"

configure: exit 77
Back to top
View user's profile Send private message
toddles13
n00b
n00b


Joined: 05 Jan 2004
Posts: 72
Location: Jafaland NZ

PostPosted: Tue Apr 05, 2005 11:30 am    Post subject: Reply with quote

Don't know if this is your problem but it fixed mine by doing the following (this was after the upgrade to 2005.0)

Once you have gone through all the other suggestions in previous post then try this:

Code:
binutils-config --amd64

then

Code:
source /etc/profile


Gets rid of the below error for me.
Code:
checking whether to enable maintainer-specific portions of Makefiles... no
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
Back to top
View user's profile Send private message
atom.galaxy
Tux's lil' helper
Tux's lil' helper


Joined: 05 Nov 2004
Posts: 112
Location: Slovenia, Eu

PostPosted: Wed Apr 06, 2005 1:38 pm    Post subject: Reply with quote

Some summaries
Can't find binutils: [ugly version]
Code:

saturn / # cd /usr/i686-pc-linux-gnu/binutils-bin/2.15.92.0.2/
saturn 2.15.92.0.2 # for binutil in * ; do ln -s $binutil /bin ; done; #make symlinks

however, the above way in my case sometimes fails with message "too many levels of symbolic links"

Can't find binutils: [nice version]
Code:

saturn / # vim /etc/env.d/05binutils
#add this line:
PATH=/usr/i686-pc-linux-gnu/binutils-bin/2.15.92.0.2/


Libstdc++ missing or wrong version:
Code:

saturn / # vim /etc/env.d/05gcc
#add this line:
GCC_SPECS="/usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110/specs"
#remember to adjust the folder named [gcc version] with the folder on your filesystem
saturn / # env-update

_________________
Atoms are watching...
Back to top
View user's profile Send private message
zendmaster
Apprentice
Apprentice


Joined: 06 Nov 2003
Posts: 204
Location: Tisdale, Saskatchewan, Canada

PostPosted: Fri Apr 08, 2005 4:02 am    Post subject: Reply with quote

I was having the same problem.

binutils-config --x86

seemed to fix it for me.
Back to top
View user's profile Send private message
worldgnat
n00b
n00b


Joined: 10 Apr 2005
Posts: 53

PostPosted: Sun Apr 10, 2005 3:08 am    Post subject: Some errors.... bad ones... Reply with quote

I am installing gentoo, and when I emerge some programs, it works perfectly, but then others, such as pcmcia, reiserfsprogs, and others I don't remember right now, give me an error message telling me that the C compiler cannot create executables. I don't know how to check config.log, (I'm a bit of a newb), so if any one can tell me how to do that please do. I've never had much if any luck installing programs on Linux of any kind, so if anyone can help me, again, please do.


-Peter

P.S. I deleted all of my mom's e-mails to do this, most of which she needed, so I really need to get this working :oops:
Back to top
View user's profile Send private message
Dark_Helmet
n00b
n00b


Joined: 10 Apr 2005
Posts: 1

PostPosted: Sun Apr 10, 2005 4:37 pm    Post subject: Reply with quote

toddles13 wrote:


Code:
binutils-config --amd64

then

Code:
source /etc/profile




This fixed it for me!!

Thanks.
Back to top
View user's profile Send private message
worldgnat
n00b
n00b


Joined: 10 Apr 2005
Posts: 53

PostPosted: Mon Apr 11, 2005 9:59 pm    Post subject: Reply with quote

Never Mind, I fixed the problem by completely starting the installation over. It turns out I was using stage3 and configuring it a s stage1 :wink: . I haven't gotten everything installed yet, (working on the fourth try, emerging gentoo-sources). Thanks anyway.

-Peter
Back to top
View user's profile Send private message
atom.galaxy
Tux's lil' helper
Tux's lil' helper


Joined: 05 Nov 2004
Posts: 112
Location: Slovenia, Eu

PostPosted: Tue Apr 12, 2005 5:14 am    Post subject: Reply with quote

Fourth try is ok for a first time... took me 16 tryes just to boot the livecd correctly (but I did have a TOTALLY new machine and the livecd didn't have support for my cdrom, which it still doesnt :D)
_________________
Atoms are watching...
Back to top
View user's profile Send private message
Stieltje
Apprentice
Apprentice


Joined: 03 Apr 2003
Posts: 158
Location: The land where the sky is black

PostPosted: Tue Apr 12, 2005 12:26 pm    Post subject: Reply with quote

is it recommandable to just extract a binary of gcc and install it that way?

long story short, i have tried all possible things mentioned in this thread, but nothing helps. Worth mentioning might be that I do not have binutils-config.
Code:


# emerge -p binutils

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] sys-devel/binutils-config-1.8-r2 
[ebuild   R   ] sys-devel/binutils-2.15.92.0.2-r7 





I really really really do not want to reinstall gentoo at this point, really bad idea


in times like this one misses the pkg_add utility from solaris/*bsd : )
_________________
PCs nearly always come with Microsoft Windows as their operating systems, but the "OS," as it is called, can be changed to a non-Microsoft operating system with a little work.
Back to top
View user's profile Send private message
atom.galaxy
Tux's lil' helper
Tux's lil' helper


Joined: 05 Nov 2004
Posts: 112
Location: Slovenia, Eu

PostPosted: Tue Apr 12, 2005 1:17 pm    Post subject: Reply with quote

Well, it could help... but it's not gcc that's the problem with binutils. It's the broken binutils.

I have no idea what the problem might be, by all means tell us more :D we like problems :D

Anyway, yes, i think it's ok if you just unpack the binary gcc. Just remember you might need all of the base precompiled packages, not just gcc :D.
_________________
Atoms are watching...
Back to top
View user's profile Send private message
Stieltje
Apprentice
Apprentice


Joined: 03 Apr 2003
Posts: 158
Location: The land where the sky is black

PostPosted: Tue Apr 12, 2005 1:19 pm    Post subject: Reply with quote

anyway, things seem to compile now.

solution:

I downloaded the latest stage 1 tarball.

made a backup of my /etc


untared the stage 1 tarball into /

replaced the /etc with my backup


then did a emerge -du world




well, things compile now, I hope I did not forget anything important as a step.



/cheers
_________________
PCs nearly always come with Microsoft Windows as their operating systems, but the "OS," as it is called, can be changed to a non-Microsoft operating system with a little work.
Back to top
View user's profile Send private message
atom.galaxy
Tux's lil' helper
Tux's lil' helper


Joined: 05 Nov 2004
Posts: 112
Location: Slovenia, Eu

PostPosted: Tue Apr 12, 2005 1:20 pm    Post subject: Reply with quote

congrats :D.
_________________
Atoms are watching...
Back to top
View user's profile Send private message
Stieltje
Apprentice
Apprentice


Joined: 03 Apr 2003
Posts: 158
Location: The land where the sky is black

PostPosted: Tue Apr 12, 2005 1:37 pm    Post subject: Reply with quote

hm, I guess that I did something really stupid :(


my system is now totally broken


anyway, at least I now know how to break my gentoo :)
_________________
PCs nearly always come with Microsoft Windows as their operating systems, but the "OS," as it is called, can be changed to a non-Microsoft operating system with a little work.
Back to top
View user's profile Send private message
atom.galaxy
Tux's lil' helper
Tux's lil' helper


Joined: 05 Nov 2004
Posts: 112
Location: Slovenia, Eu

PostPosted: Tue Apr 12, 2005 1:39 pm    Post subject: Reply with quote

Oh well... With a little work :D...
_________________
Atoms are watching...
Back to top
View user's profile Send private message
zerwalter
n00b
n00b


Joined: 15 Aug 2004
Posts: 4
Location: Davis, CA

PostPosted: Tue Apr 26, 2005 1:01 am    Post subject: Reply with quote

Hello,

I am attempting to emerge php and have the same error "Compiler: cannot create executables." I've read through this thread and mine doesn't appear to have the same cause but perhaps someone can assist me.

Code:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:1653: checking host system type
configure:1753: checking for gcc
configure:1866: checking whether the C compiler (gcc -O2 -march=pentium2 -fomit-frame-pointer  -ltiff -L/usr/lib) works
configure:1882: gcc -o conftest -O2 -march=pentium2 -fomit-frame-pointer   -ltiff -L/usr/lib conftest.c  -lxmlparse -lxmltok 1>&5
configure:1908: checking whether the C compiler (gcc -O2 -march=pentium2 -fomit-frame-pointer  -ltiff -L/usr/lib) is a cross-compiler
configure:1913: checking whether we are using GNU C
configure:1922: gcc -E conftest.c
configure:1941: checking whether gcc accepts -g
configure:1974: checking whether gcc and cc understand -c and -o together
configure:1989: gcc -c conftest.c -o conftest.o 1>&5
configure:1990: gcc -c conftest.c -o conftest.o 1>&5
configure:1995: cc -c conftest.c 1>&5
configure:1997: cc -c conftest.c -o conftest.o 1>&5
configure:1998: cc -c conftest.c -o conftest.o 1>&5
configure:2025: checking how to run the C preprocessor
configure:2046: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:2106: checking for AIX
configure:2133: checking if compiler supports -R
configure:2148: gcc -o conftest -O2 -march=pentium2 -fomit-frame-pointer   -ltiff -L/usr/lib conftest.c -R /usr/lib  -lxmlparse -lxmltok 1>&5
gcc: unrecognized option `-R'
/usr/lib: file not recognized: Is a directory
collect2: ld returned 1 exit status
configure: failed program was:
#line 2141 "configure"
#include "confdefs.h"

int main() {

; return 0; }


The rest is here: http://www.zerwalter.com/config.log

Here is what portage says (an excerpt):

Code:

checking for getrlimit... yes
checking for PSPELL support... yes
checking for new_aspell_config in -laspell... yes
checking for QtDOM support... yes
checking for c++... c++
checking whether the C++ compiler (c++ -O2 -march=pentium2 -fomit-frame-pointer -L/usr/lib  -ltiff -L/usr/lib -Wl,-rpath,/usr/qt/3/lib -L/usr/qt/3/lib) works... no
configure: error: installation or configuration problem: C++ compiler cannot create executables.


Thanks in advance :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Goto page Previous  1, 2, 3, 4 ... 10, 11, 12  Next
Page 3 of 12

 
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