Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[GCC] Passage de 3.3 à 3.4 - divers problèmes
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
razer
l33t
l33t


Joined: 08 Oct 2004
Posts: 893
Location: Paris - France

PostPosted: Wed Mar 23, 2005 4:24 pm    Post subject: [GCC] Passage de 3.3 à 3.4 - divers problèmes Reply with quote

En voulant faire le ménage parmi mes paquets en doublette de version, j'ai supprimé gcc-3.3.5 car j'avais la version 3.4.3 d'installé.
Suite à quoi, impossible de compiler qq ce soit, l'erreur habituelle "C cannot create executables"
De là un petit "gcc-config -c" m'indique que le lien vers i686-pc-linux-gnu-3.3.5 est rompu...
J'édite donc le fichier "/etc/env.d/gcc/config", et je modifie la variable "CURRENT" en la faisant pointer vers la version 3.4.3
Suite à quoi plus d'erreur lors de gcc-config :
Code:

$ gcc-config -c
i686-pc-linux-gnu-3.4.3-20050110


Bon, seulement le 1° paquet que j'essaye de compiler échoue
De plus, mon système souffre d'une lenteur exessive, notament lors de la phase de check...

J'ai pu lire suite à une recherche qu'à priori un update de version gcc implique le rémerge de paquets de base, donc j'essaye d'émerger binutils.
Suite à une erreur, je vire tous les CFLAGS, ccache, malgré tout toujours la même erreur :
Code:

]# emerge -av binutils

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

Calculating dependencies ...done!
[ebuild     U ] sys-devel/binutils-2.15.92.0.2-r7 [2.15.92.0.2-r5] -debug -multislot -multitarget +nls -test (-uclibc) 0 kB

Total size of downloads: 0 kB

Do you want me to merge these packages? [Yes/No]
>>> emerge (1 of 1) sys-devel/binutils-2.15.92.0.2-r7 to /
>>> md5 src_uri ;-) binutils-2.15.92.0.2.tar.bz2
>>> md5 src_uri ;-) binutils-2.15.92.0.2-patches-2.0.tar.bz2
>>> md5 src_uri ;-) binutils-2.15.92.0.2-uclibc-patches-1.1.tar.bz2
>>> Unpacking source...
>>> Unpacking binutils-2.15.92.0.2.tar.bz2 to /bigfoot/tmpportage/portage/binutils-2.15.92.0.2-r7/work
>>> Unpacking binutils-2.15.92.0.2-patches-2.0.tar.bz2 to /bigfoot/tmpportage/portage/binutils-2.15.92.0.2-r7/work
>>> Unpacking binutils-2.15.92.0.2-uclibc-patches-1.1.tar.bz2 to /bigfoot/tmpportage/portage/binutils-2.15.92.0.2-r7/work
 * Applying various patches (bugfixes/updates) ...
 *   00_all_ugly-hack-to-keep-dev-null.patch.bz2 ...                                                   [ ok ] *   02_all_binutils-2.15.92.0.2-ltconfig-multilib.patch.bz2 ...                                       [ ok ] *   03_all_binutils-2.15.92.0.2-ppc64-pie.patch.bz2 ...                                               [ ok ] *   04_all_binutils-2.15.92.0.2-place-orphan.patch.bz2 ...                                            [ ok ] *   05_all_binutils-2.15.92.0.2-relro-fix.patch.bz2 ...                                               [ ok ] *   05_all_binutils-2.15-elf32-arm-textrel.patch.bz2 ...                                              [ ok ] *   06_all_binutils-2.15.92.0.2-arm-textrel.patch.bz2 ...                                             [ ok ] *   07_all_binutils-2.15.92.0.2-elfvsb-test.patch.bz2 ...                                             [ ok ] *   08_all_binutils-2.15.92.0.2-lang_place_orphans-dont-abort-on-just_symbols.patch.bz2 ...           [ ok ] *   09_all_binutils-2.15.94.0.1-ld-static-shared-blocking.patch.bz2 ...                               [ ok ] *   10_all_arm-hppa-pie.patch.bz2 ...                                                                 [ ok ] *   23_all_binutils-2.15.90.0.1.1-rev-variable-page-size-support.patch.bz2 ...                        [ ok ] *   40_all_118_arm_pass_all.patch.bz2 ...                                                             [ ok ] *   53_all_gcc4-lovin.patch.bz2 ...                                                                   [ ok ] *   61_all_binutils-001_libiberty-nolimits.patch.bz2 ...                                              [ ok ] *   63_all_binutils-2.15.92.0.2-pt-pax-flags-200411061615.patch.bz2 ...                               [ ok ] *   66_all_binutils-2.15.92.0.2-warn-textrel.patch.bz2 ...                                            [ ok ] *   72_all_skip-comments.patch.bz2 ...                                                                [ ok ] *   76_all_use-new-ld-dtags.patch.bz2 ...                                                             [ ok ] *   91_all_libiberty-pic.patch.bz2 ...                                                                [ ok ] * Done with patching
 * Applying various patches (bugfixes/updates) ...
 *   52_all_binutils-20041010-uclibc-100-conf.patch.bz2 ...                                            [ ok ] * Done with patching
 * Using GNU config files from /usr/share/libtool
 *  Updating config.sub                                                                                [ ok ] *  Updating config.guess                                                                              [ ok ] * Patching ${S}/ltmain.sh ...
 *   Applying portage-1.4.1.patch ...
 *   Applying relink-1.4.0a-GCC3.0-2.patch ...
 *   Applying sed-1.4.3.patch ...
 *   Applying tmp-1.3.5.patch ...
>>> Source unpacked.
./configure --prefix=/usr --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --datadir=/usr/share/binutils-data/i686-pc-linux-gnu/2.15.92.0.2 --infodir=/usr/share/binutils-data/i686-pc-linux-gnu/2.15.92.0.2/info --mandir=/usr/share/binutils-data/i686-pc-linux-gnu/2.15.92.0.2/man --bindir=/usr/i686-pc-linux-gnu/binutils-bin/2.15.92.0.2 --libdir=/usr/lib/binutils/i686-pc-linux-gnu/2.15.92.0.2 --libexecdir=/usr/lib/binutils/i686-pc-linux-gnu/2.15.92.0.2 --includedir=/usr/lib/binutils/i686-pc-linux-gnu/2.15.92.0.2/include --enable-shared --enable-64-bit-bfd --without-included-gettext
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler (gcc -O2 -mcpu=i686 -pipe ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

!!! ERROR: sys-devel/binutils-2.15.92.0.2-r7 failed.
!!! Function toolchain-binutils_src_compile, Line 108, Exitcode 1
!!! configure failed
!!! If you need support, post the topmost build error, NOT this status message.


Des idées ?
Back to top
View user's profile Send private message
guilc
Bodhisattva
Bodhisattva


Joined: 15 Nov 2003
Posts: 3326
Location: Paris - France

PostPosted: Wed Mar 23, 2005 4:59 pm    Post subject: Reply with quote

oui :
gcc-config -l
gcc-config <lenumérodelalignequivabien>

ta bidouille dans le /etc/env.d ne suffit pas : gcc-config fait des liens un peu partout en plus...
_________________
Merci de respecter les règles du forum.

Mon site perso : https://www.xwing.info
Mon PORTDIR_OVERLAY : https://gentoo.xwing.info ou layman -a xwing
Back to top
View user's profile Send private message
razer
l33t
l33t


Joined: 08 Oct 2004
Posts: 893
Location: Paris - France

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

Merci guilc j'avais bien réalisé les commandes que tu cites, mais çà n'arrangeait rien...
J'ai fini par résoudre l'affaire (à priori, binutils a bien compilé en tout cas...), avec un :
Code:

export CC="/usr/i686-pc-linux-gnu/gcc-bin/3.4.3-20050110/gcc"


Je m'étonne simplement de n'avoir jamais eu à déclarer cette variable avant...
Enfin de tte manière je recompile actuellement une 3.3.5, suite à des erreurs lors de la compilation pour des librairies dont gnucash dépend.
Je crois que c'est plus sage
Back to top
View user's profile Send private message
taiwan
n00b
n00b


Joined: 16 Apr 2002
Posts: 51

PostPosted: Wed Mar 23, 2005 11:27 pm    Post subject: Reply with quote

razer wrote:
Merci guilc j'avais bien réalisé les commandes que tu cites, mais çà n'arrangeait rien...
J'ai fini par résoudre l'affaire (à priori, binutils a bien compilé en tout cas...), avec un :
Code:

export CC="/usr/i686-pc-linux-gnu/gcc-bin/3.4.3-20050110/gcc"


Je m'étonne simplement de n'avoir jamais eu à déclarer cette variable avant...
Enfin de tte manière je recompile actuellement une 3.3.5, suite à des erreurs lors de la compilation pour des librairies dont gnucash dépend.
Je crois que c'est plus sage


Comment downgrader de version de gcc et y rester ?
Back to top
View user's profile Send private message
Enlight
Advocate
Advocate


Joined: 28 Oct 2004
Posts: 3519
Location: Alsace (France)

PostPosted: Thu Mar 24, 2005 8:41 am    Post subject: Reply with quote

après le gcc-config 2 tu devrais commencer par ré-emerger gcc pour qu'il soit compilé avec lui même :

Code:

emerge gcc binutils glibc portage
emerge -e world


si vraiment tu veux ton ancien gcc, pas de downgrade à faire, mais un simple
Code:
gcc-config 1 && source /etc/profile


edit : omg je suis leet, je sais pas pourquoi j'ai l'impression de pas le mériter :cry:
Back to top
View user's profile Send private message
taiwan
n00b
n00b


Joined: 16 Apr 2002
Posts: 51

PostPosted: Fri Mar 25, 2005 9:42 am    Post subject: Reply with quote

edit : omg je suis leet, je sais pas pourquoi j'ai l'impression de pas le mériter

he merci en tout cas :)
Back to top
View user's profile Send private message
gulivert
l33t
l33t


Joined: 17 Jun 2004
Posts: 863
Location: Switzerland

PostPosted: Mon Mar 28, 2005 11:14 am    Post subject: Reply with quote

Hello tout le monde,

J'ai voulu tenté de mettre à jour mon gcc en 3.4.3-20050110, donc j'envoie la compilation, pas de problème, tous ce
compile sans broncher. Suite à ça je fait le

Code:
gcc-config -l
[1] i686-pc-linux-gnu-3.3.5 *
[2] i686-pc-linux-gnu-3.3.5-hardened
[3] i686-pc-linux-gnu-3.3.5-hardenednopie
[4] i686-pc-linux-gnu-3.3.5-hardenednossp
[5] i686-pc-linux-gnu-3.4.3-20050110
[6] i686-pc-linux-gnu-3.4.3-20050110-hardened
[7] i686-pc-linux-gnu-3.4.3-20050110-hardenednopie
[8] i686-pc-linux-gnu-3.4.3-20050110-hardenednossp


Donc si j'ai tout suivi je dois faire

Code:
gcc-config -l 5


Pour utilier gcc-3.4, je m'éxecute et voici l'erreur :

Code:
gcc-config -l 5
 * /usr/bin/gcc-config: Profile does not exist or invalid setting for /etc/env.d/gcc/i686-pc-linux-gnu-3.4.3-20050110
[1] i686-pc-linux-gnu-3.3.5 *
[2] i686-pc-linux-gnu-3.3.5-hardened
[3] i686-pc-linux-gnu-3.3.5-hardenednopie
[4] i686-pc-linux-gnu-3.3.5-hardenednossp
[5] i686-pc-linux-gnu-3.4.3-20050110
[6] i686-pc-linux-gnu-3.4.3-20050110-hardened
[7] i686-pc-linux-gnu-3.4.3-20050110-hardenednopie
[8] i686-pc-linux-gnu-3.4.3-20050110-hardenednossp


Donc la je me dis comme lut plus haut, édit le fichier /etc/env.d/gcc/config et mais y ton gcc. Je m'éxecute puis envoie la
commande env-update. Puis

Code:
gcc-config -c
 * /usr/bin/gcc-config: Profile does not exist or invalid setting for /etc/env.d/gcc/i686-pc-linux-gnu-3.4.3-20050110
i686-pc-linux-gnu-3.4.3-20050110


Voilà, depuis là je tourne en rond et ne sait pas trop koi faire.
Pour info gentoo-2004.3, kernel 2.6.11-r4, gcc-3.3.5 & 3.4.3-20050110.

J'aimerais bien gcc-3.4 pour le Cflags= -march=pentium-m

Merci d'avance

edit : ajout pour mon erreur, voici mon répertoire /etc/env.d/gcc

Code:
config
i686-pc-linux-gnu-3.3.5
i686-pc-linux-gnu-3.3.5-hardened
i686-pc-linux-gnu-3.3.5-hardenednopie
i686-pc-linux-gnu-3.3.5-hardenednossp
i686-pc-linux-gnu-3.4.3-20050110
i686-pc-linux-gnu-3.4.3-20050110-hardened
i686-pc-linux-gnu-3.4.3-20050110-hardenednopie
i686-pc-linux-gnu-3.4.3-20050110-hardenednossp

_________________
Macbook Pro Unibody 9.1 - Kernel 4.4.6 - Awesome 3.5
Back to top
View user's profile Send private message
gulivert
l33t
l33t


Joined: 17 Jun 2004
Posts: 863
Location: Switzerland

PostPosted: Mon Mar 28, 2005 11:50 am    Post subject: Reply with quote

Bon en surfant un peu sur google j'ai peu trouvé ce guide : http://gentoo-wiki.com/HOWTO_Migrate_to_GCC_3.4

Donc j'arrive à compiler avec gcc-3.4 mais j'ai tjs ça

Quote:
gcc-config -l
* /usr/bin/gcc-config: Profile does not exist or invalid setting for /etc/env.d/gcc/i686-pc-linux-gnu-3.4.3-20050110
[1] i686-pc-linux-gnu-3.3.5
[2] i686-pc-linux-gnu-3.3.5-hardened
[3] i686-pc-linux-gnu-3.3.5-hardenednopie
[4] i686-pc-linux-gnu-3.3.5-hardenednossp
[5] i686-pc-linux-gnu-3.4.3-20050110 *
[6] i686-pc-linux-gnu-3.4.3-20050110-hardened
[7] i686-pc-linux-gnu-3.4.3-20050110-hardenednopie
[8] i686-pc-linux-gnu-3.4.3-20050110-hardenednossp


C'est grave?
_________________
Macbook Pro Unibody 9.1 - Kernel 4.4.6 - Awesome 3.5
Back to top
View user's profile Send private message
armkreuz1
Tux's lil' helper
Tux's lil' helper


Joined: 31 Mar 2004
Posts: 142
Location: Melocheville, Québec, Canada

PostPosted: Mon Mar 28, 2005 4:01 pm    Post subject: Reply with quote

Après ton gcc-config <ta nouvelle version>

un petit:

fix_libtool_files.sh 3.3.5 pourrait ne pas nuire


3.3.5 puisque c'est ton ancienne version
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8723
Location: ~Brussels - Belgique

PostPosted: Mon Mar 28, 2005 8:33 pm    Post subject: Reply with quote

gulivert wrote:

Donc si j'ai tout suivi je dois faire

Code:
gcc-config -l 5


Pour utilier gcc-3.4, je m'éxecute et voici l'erreur :

Code:
gcc-config -l 5
 * /usr/bin/gcc-config: Profile does not exist or invalid setting for /etc/env.d/gcc/i686-pc-linux-gnu-3.4.3-20050110
[1] i686-pc-linux-gnu-3.3.5 *
[2] i686-pc-linux-gnu-3.3.5-hardened
[3] i686-pc-linux-gnu-3.3.5-hardenednopie
[4] i686-pc-linux-gnu-3.3.5-hardenednossp
[5] i686-pc-linux-gnu-3.4.3-20050110
[6] i686-pc-linux-gnu-3.4.3-20050110-hardened
[7] i686-pc-linux-gnu-3.4.3-20050110-hardenednopie
[8] i686-pc-linux-gnu-3.4.3-20050110-hardenednossp



Pour choisir la config 5, il faut faire
Code:
gcc-config 5
L'option "-l" signifie "liste" ;)
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
TTK
Guru
Guru


Joined: 02 Mar 2004
Posts: 523

PostPosted: Tue Mar 29, 2005 9:46 am    Post subject: Reply with quote

Hello

Je me demandais, en passant, si ca valait vraiment la peine de changer de compilo ?? Y a t il vraiment des evolutions géniales dans gcc 3.4 ?
Back to top
View user's profile Send private message
El_Goretto
Moderator
Moderator


Joined: 29 May 2004
Posts: 3174
Location: Paris

PostPosted: Tue Mar 29, 2005 10:00 am    Post subject: Reply with quote

ntpl, c'est à partir de gcc 3.4 ou c'est déjà supporté par 3.3?
Back to top
View user's profile Send private message
TTK
Guru
Guru


Joined: 02 Mar 2004
Posts: 523

PostPosted: Tue Mar 29, 2005 10:19 am    Post subject: Reply with quote

El_Goretto wrote:
ntpl, c'est à partir de gcc 3.4 ou c'est déjà supporté par 3.3?


nptl c'est dans la libc, pas dans gcc si je ne m'abuse ..
Back to top
View user's profile Send private message
gim
Guru
Guru


Joined: 29 Apr 2003
Posts: 418
Location: milky-way

PostPosted: Tue Mar 29, 2005 11:13 am    Post subject: Reply with quote

TTK wrote:
Je me demandais, en passant, si ca valait vraiment la peine de changer de compilo ??

Oué, ça sert à partir à la chasse aux incompatibilités, et donc à nourrir les bugzillas.

TTK wrote:
Y a t il vraiment des evolutions géniales dans gcc 3.4 ?

Non, mais dans gcc 4.0 si ;)

--edit: typo


Last edited by gim on Tue Mar 29, 2005 7:05 pm; edited 1 time in total
Back to top
View user's profile Send private message
zarasoustra17
Guru
Guru


Joined: 01 Jul 2003
Posts: 382
Location: Marseille France

PostPosted: Tue Mar 29, 2005 12:12 pm    Post subject: Reply with quote

Personnellement, je viens de passer en 3.4 et j'en ai profité pour passer à kde-3.4 et le temps de compilation m'a semblé plus rapide qu'avant, maintenant, est-ce dû au flag kdeenablefinal, à kde ou à gcc-3.4 ? mystère, quoi qu'il en soit, je n'ai rien de négatif contre cette nouvelle realease..
Back to top
View user's profile Send private message
gulivert
l33t
l33t


Joined: 17 Jun 2004
Posts: 863
Location: Switzerland

PostPosted: Tue Mar 29, 2005 12:13 pm    Post subject: Reply with quote

TTK wrote:
Hello

Je me demandais, en passant, si ca valait vraiment la peine de changer de compilo ?? Y a t il vraiment des evolutions géniales dans gcc 3.4 ?


Pour ma part je suis passé en GCC-3.4 pour le support du pentium-m dans le Cflags. Rien que pour ça.
_________________
Macbook Pro Unibody 9.1 - Kernel 4.4.6 - Awesome 3.5
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