View previous topic :: View next topic |
Author |
Message |
Beber Guru
Joined: 10 Apr 2004 Posts: 300 Location: Kemper, Lutèce
|
Posted: Sun May 09, 2004 7:13 pm Post subject: [Compilo] Gcc cassé [Résolu] |
|
|
alors voila, je veut compilé un simple Hello World, ca me fait ca :
Code: | (21:02:45) beber@guybrush ~/prog/syst $ gcc -o sleep sleep.c
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld: unrecognized option '--as-needed'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
|
Je me dit, ya p'tre une merde avec gcc, j'vé le reemergé ....
mais bon, ca me fait le meme messge d'erreur, forcement vu que c'est gcc qui bug
comment je peu faire pour le recupérer gcc ???
voici mon emerge info :
Code: | (21:08:25) beber@guybrush ~/programmation/syst $ emerge info
Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040420-r0, 2.6.5-gentoo)
=================================================================
System uname: 2.6.5-gentoo i686 AMD Athlon(TM) XP 2000+
Gentoo Base System version 1.4.10
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.tiscali.nl/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="3dnow X aalib acl acpi alsa apache2 apm arts avi berkdb cdr crypt cups dvd encode ethereal foomaticdb gdbm gif gnome gpm gtk gtk2 imagemagick imap imlib ipv6 java jpeg kde lcms ldap libg++ libwww mad maildir memlimit mikmod mmx motif mozilla mpeg msn mysql ncurses nls oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline samba sasl sdl slang slp snmp spell ssl svga tcltk tcpd theora tiff truetype usb videos x86 xml xml2 xmms xv zlib" |
Last edited by Beber on Mon May 10, 2004 3:55 pm; edited 2 times in total |
|
Back to top |
|
|
kernelsensei Bodhisattva
Joined: 22 Feb 2004 Posts: 5619 Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)
|
Posted: Sun May 09, 2004 7:18 pm Post subject: |
|
|
emerger un binaire de gcc avec l'option -k de emerge ? (apres avoir recup le binaire sur un cd gentoo ou sur un mirror ..) je ne pourrai pas t'en dire plus, j'ai jamais emerge de binaire .. _________________ $ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join' |
|
Back to top |
|
|
ghoti Advocate
Joined: 30 Dec 2002 Posts: 3634 Location: Belgium
|
Posted: Sun May 09, 2004 7:56 pm Post subject: |
|
|
Quote: | forcement vu que c'est gcc qui bug |
Apparemment, c'est plutôt le linker qui a un problème !
Avant d'entamer les grandes manoeuvres, vois si un petit coup de gcc-config ne rétablirait pas les choses ... |
|
Back to top |
|
|
TGL Bodhisattva
Joined: 02 Jun 2002 Posts: 1978 Location: Rennes, France
|
Posted: Sun May 09, 2004 9:47 pm Post subject: |
|
|
Je suppose que tu as eu un downgrade de binutils 2.15.qqch en 2.14.qqch suite à un masquage il y a qlqs jours, c'est ça ? Si oui, ton gcc n'est plus d'accord avec ton ld, et c'est lourd, effectivement... Deux solutions :
- soit réinstaller depuis un paquet binaire un gcc prévu pour binutils 2.14, puis éventuellement le réemerger depuis les sources pour qu'il soit à ta sauce
- soit réinstaller depuis un binaire un binutils-2.15, puis réémerger gcc (parceque maintenant le pb est corrigé), et enfin redescendre à binutils 2.14 (sans accroc cette fois en principe)
Que tu choisisses une solution ou l'autre, je te colle les binaires qui vont bien (c'est du -mcpu=pentium3, ça devrait donc marcher aussi sur athlon) nécéssaires ici :
http://tdegreni.free.fr/gentoo/gcc-3.3.3-r3.tbz2
http://tdegreni.free.fr/gentoo/binutils-2.15.90.0.3-r1.tbz2
(à mettre dans /usr/portage/packages/All, puis installer avec "emerge -K ...")
Oh, et c'est encore une belle occasion de rappeler que les binaires de sauvegarde des paquets system sont une bonne chose, facile à faire systématiquement à l'avenir avec le flag "buildsyspkg" dans les FEATURES de make.conf. |
|
Back to top |
|
|
Beber Guru
Joined: 10 Apr 2004 Posts: 300 Location: Kemper, Lutèce
|
Posted: Sun May 09, 2004 10:17 pm Post subject: |
|
|
en effet, c'est tout le problème que j'avais :
Code: | (00:12:10) guybrush /usr/qt/3/lib # etcat -u binutils
[ Colour Code : set unset ]
[ Legend : (U) Col 1 - Current USE flags ]
[ : (I) Col 2 - Installed With USE flags ]
U I [ Found these USE variables in : sys-devel/binutils-2.14.90.0.8-r1 ]
+ + nls : unknown
- - bootstrap : !!internal use only!! DO NOT SET THIS FLAG YOURSELF!, used during original system bootstrapping
- - build : !!internal use only!! DO NOT SET THIS FLAG YOURSELF!, used for creating build images and the first half of bootstrapping.
(00:16:00) guybrush /usr/qt/3/lib # etcat -u gcc
[ Colour Code : set unset ]
[ Legend : (U) Col 1 - Current USE flags ]
[ : (I) Col 2 - Installed With USE flags ]
U I [ Found these USE variables in : sys-devel/gcc-3.3.3-r3 ]
- - static : !!do not set this during bootstrap!! Causes things to be statically linked instead of dynamically
+ + nls : unknown
- - bootstrap : !!internal use only!! DO NOT SET THIS FLAG YOURSELF!, used during original system bootstrapping
+ + java : Adds support for Java
- - build : !!internal use only!! DO NOT SET THIS FLAG YOURSELF!, used for creating build images and the first half of bootstrapping.
+ + X : Adds support for XFree86
- - multilib : On 64bit systems, if you want to be able to compile 32bit and 64bit binaries
- - gcj : Build gcj (java compiler included with gcc package)
- - f77 : Build support for the f77 language
- - objc : Build support for the Objective C code language
- - hardened : activate Gentoo Hardened security improvements (kernel, gcc, glibc, binutils)
- - uclibc : Enable uclibc specific patches and build or link uclibc |
je suis en train de prendre tes tbz2, je test |
|
Back to top |
|
|
Beber Guru
Joined: 10 Apr 2004 Posts: 300 Location: Kemper, Lutèce
|
Posted: Sun May 09, 2004 11:15 pm Post subject: |
|
|
ok, merci, tout est rentré dans l'ordre |
|
Back to top |
|
|
|
|
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
|
|