Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[GCC] C++ compiler cannot create executables (Résolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
SamRay1024
n00b
n00b


Joined: 30 Mar 2005
Posts: 58
Location: France - Rouen

PostPosted: Tue Sep 13, 2005 9:02 am    Post subject: [GCC] C++ compiler cannot create executables (Résolu) Reply with quote

Bonjour,

Je suis en train de faire une maj (emerge -Du world) et j'en suis au paquet de mise-à-jour de Python. Sauf qu'il plante sur cette erreur :
Quote:
checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables


Que dois-je faire ?
_________________
Keyboard not detected, hit any key to continue.


Last edited by SamRay1024 on Tue Sep 13, 2005 11:56 am; edited 1 time in total
Back to top
View user's profile Send private message
kopp
Advocate
Advocate


Joined: 09 Apr 2004
Posts: 2885
Location: Grenoble, France

PostPosted: Tue Sep 13, 2005 10:35 am    Post subject: Reply with quote

As tu mis à jour gcc récemment ?
Quelle version de gcc as-tu ? Que te renvoie
Code:
gcc-config -l


Au passage, quand il y a des problèmes, il y a un message qu'il faut lire avant de poster : https://forums.gentoo.org/viewtopic-t-347528.html
Il est indiqué aussi quelles infos donner dans ce cas...
Back to top
View user's profile Send private message
Adrien
Advocate
Advocate


Joined: 13 Jul 2004
Posts: 2326
Location: Bretagne

PostPosted: Tue Sep 13, 2005 11:24 am    Post subject: Re: [GCC] C++ compiler cannot create executables Reply with quote

SamRay1024 wrote:
Quote:
checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables


Que dois-je faire ?

Ca peut être du à tes CFLAGS, si elles sont trop agressives. D'où l'intérêt de poster les informations relatives à ton système.
Back to top
View user's profile Send private message
SamRay1024
n00b
n00b


Joined: 30 Mar 2005
Posts: 58
Location: France - Rouen

PostPosted: Tue Sep 13, 2005 11:42 am    Post subject: Reply with quote

Kopp : merci pour le lien, je n'avais pas connaissance de ces infos ;)

Alors voici quelques informations :

Version de Gcc :
Quote:
Minux / # gcc -dumpversion
3.3.6


Gcc Config :
Quote:
Minux / # gcc-config -l
[1] i386-pc-linux-gnu-3.3.5-20050130
[2] i386-pc-linux-gnu-3.3.5-20050130-hardened
[3] i386-pc-linux-gnu-3.3.5-20050130-hardenednopie
[4] i386-pc-linux-gnu-3.3.5-20050130-hardenednopiessp
[5] i386-pc-linux-gnu-3.3.5-20050130-hardenednossp
[6] i686-pc-linux-gnu-3.3.6 *
[7] i686-pc-linux-gnu-3.3.6-hardened
[8] i686-pc-linux-gnu-3.3.6-hardenednopie
[9] i686-pc-linux-gnu-3.3.6-hardenednopiessp
[10] i686-pc-linux-gnu-3.3.6-hardenednossp


Emerge infos :
Quote:
Minux / # emerge info
Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r1, 2.6.12-gentoo-r9 i686)
=================================================================
System uname: 2.6.12-gentoo-r9 i686 Intel(R) Pentium(R) M processor 1300MHz
Gentoo Base System version 1.6.13
dev-lang/python: 2.3.5, 2.4.1-r1
sys-apps/sandbox: 1.2.12
sys-devel/autoconf: 2.13, 2.59-r6
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils: 2.15.92.0.2-r10
sys-devel/libtool: 1.5.18-r1
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe -mfpmath=sse"
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="-O2 -march=pentium-m -pipe -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mir1.ovh.net/gentoo-distfiles/"
LANG="fr_FR@euro"
LC_ALL="fr_FR@euro"
LINGUAS="fr fr_FR"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage"
USE="x86 X acpi adns alsa apm avi berkdb bitmap-fonts cdr cjk crypt cups curl emboss encode esd fam foomaticdb fortran gd gdbm gif gnome gpm gstreamer gtk gtk2 hal imlib jpeg libg++ libwww mad mikmod motif mp3 mpeg ncurses nls ogg oggvorbis opengl pam pdflib perl png python quicktime readline samba sdl spell ssl tcpd tiff truetype truetype-fonts type1-fonts vorbis xml2 xv zlib linguas_fr linguas_fr_FR userland_GNU kernel_linux elibc_glibc"
Unset: ASFLAGS, CTARGET, LDFLAGS, PORTDIR_OVERLAY


Détails de mon make.conf :
Quote:
CFLAGS="-O2 -march=pentium-m -pipe -mfpmath=sse"
CHOST="i686-pc-linux-gnu"

CXXFLAGS="${CFLAGS}"

GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"

# pour la compilation
MAKEOPTS="-j2"

# la variable USE
USE="-qt -kde -arts -oss -ipv6 -mozilla -epiphany -eds -xmms acpi gtk gnome hal cjk samba"

# carte son
ALSA_CARDS="snd_intel8x0"

# autres
#ACCEPT_KEYWORDS="~x86"
LINGUAS="fr fr_FR"

# compilation partagee
#FEATURES="distcc"

GENTOO_MIRRORS="http://mir1.ovh.net/gentoo-distfiles/"
SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage"


Avant d'être en Gcc 3.3.6 j'étais en 3.4.4. J'ai donc fait un downgrade de version. Seulement, je viens d'avoir une lueur. Grâce à la version 3.4.4 de Gcc, il me semble que j'ai pu utiliser le CFLAG -march=pentium-m qui est le plus adapté à ma config. Il est donc possible que ce CFLAG ne soit pas disponible dans la version 3.3.6.

C'est la seule idée qui me vient. Si tel est le cas, je vais devoir recompiler la version 3.4.4 de Gcc car toute ma distrib a été compilée comme cela. Je n'ai pas envie de faire un revdep-rebuild à ce niveau là :D.
_________________
Keyboard not detected, hit any key to continue.


Last edited by SamRay1024 on Tue Sep 13, 2005 11:55 am; edited 1 time in total
Back to top
View user's profile Send private message
palatin
Tux's lil' helper
Tux's lil' helper


Joined: 20 Oct 2004
Posts: 113
Location: Paris

PostPosted: Tue Sep 13, 2005 11:50 am    Post subject: Reply with quote

Quote:
CFLAGS="-O2 -march=pentium-m -pipe -mfpmath=sse"


En effet, march=pentium-m date de gcc 3.4
_________________
fumo~
Back to top
View user's profile Send private message
SamRay1024
n00b
n00b


Joined: 30 Mar 2005
Posts: 58
Location: France - Rouen

PostPosted: Tue Sep 13, 2005 11:56 am    Post subject: Reply with quote

Ok, alors il faut que je réinstalle la version 3.4.4.

Merci :).
_________________
Keyboard not detected, hit any key to continue.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French 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