Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
configure: error: C++ compiler cannot create executables
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Ya.lv
n00b
n00b


Joined: 10 Jun 2008
Posts: 5

PostPosted: Tue Jun 10, 2008 7:32 am    Post subject: configure: error: C++ compiler cannot create executables Reply with quote

I was installing new system, and upgraded CHOST from i486 to i686 and got this error ...

tried everything i can find, here in forum about this problem, but none helps ...

i did everything the manual said for upgrading CHOST

Code:

burbulis env.d # gcc-config -l
 [1] i686-pc-linux-gnu-4.1.2 *
burbulis env.d # gcc-config 1
 * Switching native-compiler to i686-pc-linux-gnu-4.1.2 ...                                                                                             [ ok ]
burbulis env.d # env-update
>>> Regenerating /etc/ld.so.cache...
burbulis env.d # source /etc/profile


Code:

burbulis env.d # binutils-config -l
 [1] i686-pc-linux-gnu-2.18 *
burbulis env.d # binutils-config 1
 * Switching to i686-pc-linux-gnu-2.18 ...                                                                                                              [ ok ]
>>> Regenerating /etc/ld.so.cache...

 * Please remember to run:

 *   # source /etc/profile

burbulis env.d # source /etc/profile


Code:

burbulis env.d # emerge python
Calculating dependencies... done!
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) dev-lang/python-2.4.4-r13 to /
...
...
...
checking for c++... i686-pc-linux-gnu-g++
checking for C++ compiler default output file name...
configure: error: C++ compiler cannot create executables
See `config.log' for more details.


Code:

burbulis env.d # emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r8 i686)
=================================================================
System uname: 2.6.24-gentoo-r8 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz
Timestamp of tree: Sun, 08 Jun 2008 16:30:01 +0000
app-shells/bash:     3.2_p33
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/baselayout: 1.12.9
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61
sys-devel/automake:  1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentuim4 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.linux.ee/pub/gentoo/distfiles/ ftp://ftp.linux.ee/pub/gentoo/distfiles/ "
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="aac aalib acl alsa ao apache2 apm bash-completition berkdb bzip2 cdb cgi clamav cli cracklib crypt ctype cups curl curlwrappers cvs dedicated dri encode enscript esd examples exif expat fam fastcgi ffmpeg flac fortran ftp gd gdbm gif gpm hddtemp iconv idn imagemagick imap ipv6 isdnlog javascript jpeg jpeg2k lame lirc lm_sensors lua maildir mbox midi mime mng mp3 mpeg mplayer mssql mysql mysqli ncurses nls nocd nptl nptlonly ogg openmp oss pam pcre pdf perl php pic png pppd python readline reflection samba sasl session simplexml sndfile sockets spl ssl subversion suid svg svga symlink syslog tcl tcpd unicode vhosts x86 xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


Last edited by Ya.lv on Tue Jun 10, 2008 9:17 am; edited 1 time in total
Back to top
View user's profile Send private message
muhsinzubeir
l33t
l33t


Joined: 29 Sep 2007
Posts: 948
Location: /home/muhsin

PostPosted: Tue Jun 10, 2008 9:03 am    Post subject: Reply with quote

have u tried to rebuild the entire system?

Code:
emerge -e system && emerge -e world

_________________
~x86
p5k-se
Intel Core 2 Duo
Nvidia GT200
http://www.zanbytes.com
Back to top
View user's profile Send private message
Ya.lv
n00b
n00b


Joined: 10 Jun 2008
Posts: 5

PostPosted: Tue Jun 10, 2008 9:14 am    Post subject: Reply with quote

emerge -e system starts with pycrypto, that gives me error, that he can't find i486-pc-linux-gnu, and stops ... so does emerge -e world

Code:

burbulis ~ # emerge -e system
Calculating dependencies... done!
>>> Verifying ebuild Manifests...
...
...
...
creating build/temp.linux-i686-2.4
creating build/temp.linux-i686-2.4/src
i486-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -march=pentuim4 -pipe -fomit-frame-pointer -fPIC -Isrc/ -I/usr/include/python2.4 -c src/MD2.c -o build/temp.linux-i686-2.4/src/MD2.o
unable to execute i486-pc-linux-gnu-gcc: No such file or directory
error: command 'i486-pc-linux-gnu-gcc' failed with exit status 1

 * Messages for package dev-python/pycrypto-2.0.1-r6:

 *
 * ERROR: dev-python/pycrypto-2.0.1-r6 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2614:  Called distutils_src_compile
 *             environment, line  745:  Called die
 * The specific snippet of code:
 *       ${python} setup.py build "$@" || die "compilation failed"
 *  The die message:
 *   compilation failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-python/pycrypto-2.0.1-r6/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/pycrypto-2.0.1-r6/temp/environment'.
 *

Back to top
View user's profile Send private message
muhsinzubeir
l33t
l33t


Joined: 29 Sep 2007
Posts: 948
Location: /home/muhsin

PostPosted: Tue Jun 10, 2008 9:25 am    Post subject: Reply with quote

i think gcc is still using old stuffs...
Code:
emerge --oneshot -av libtool


P:S
more info on gcc upgrading
_________________
~x86
p5k-se
Intel Core 2 Duo
Nvidia GT200
http://www.zanbytes.com
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
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