Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[CAT]Problemes compilant programes
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Languages
View previous topic :: View next topic  
Author Message
mad93
Apprentice
Apprentice


Joined: 15 Feb 2005
Posts: 184
Location: Catalunya

PostPosted: Sat Oct 22, 2005 2:29 pm    Post subject: [CAT]Problemes compilant programes Reply with quote

Amb la màquina que estic configurant ara estic tenint problemés amb les llibreries de gcc. La màquina es tracta d'un k5 a 100 Mhz.

La seva configuració de make.conf és:
Quote:

# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example
CFLAGS="-O2 -mcpu=i586 -pipe"
CHOST="i586-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j5"
USE="-kde -qt -3dfx -3dnow -gtk2 samba mysql -gtk -gnome -X big-tables -ipv6 -ldap -bind-mysql -postgres -odbc userlocales imap libwww maildir sasl ssl vhosts gd"
GENTOO_MIRRORS="http://linuv.uv.es/mirror/gentoo/ http://gentoo.itdnet.net/getnoo/"
FEATURES="distcc"


Em trobo que em demana un component per gcc 3.3.5 però jo hi tinc 3.3.6, aquí l'error:
Quote:

grep: /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5-20050130/libstdc++.la: No such file or directory
/bin/sed: can't read /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5-20050130/libstdc++.la: No such file or directory
libtool: link: `/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5-20050130/libstdc++.la' is not a valid libtool archive
make: *** [libphp4.la] Error 1


Davant d'això he recompilat gcc i libtool per si un cas. A més he executat la comanda "fix_libtool_files.sh 3.3.5" i la comanda gcc-config -l mostra:
Quote:

[1] i586-pc-linux-gnu-3.3.6 *
[2] i586-pc-linux-gnu-3.3.6-hardened
[3] i586-pc-linux-gnu-3.3.6-hardenednopie
[4] i586-pc-linux-gnu-3.3.6-hardenednopiessp
[5] i586-pc-linux-gnu-3.3.6-hardenednossp


La veritat és que no sé que més fer, doncs tothom remet a l'eina fix_libtool_files.sh però a mi no m'ha donat cap resultat :S Alguna idea?
Back to top
View user's profile Send private message
mad93
Apprentice
Apprentice


Joined: 15 Feb 2005
Posts: 184
Location: Catalunya

PostPosted: Sun Oct 23, 2005 1:52 am    Post subject: Reply with quote

Al final ho he solucionat de forma matusera. He creat enllaços dinàmics de la versió que demanava a la 3.3.6 i sembla que funciona...
Back to top
View user's profile Send private message
quelcom
Guru
Guru


Joined: 16 Mar 2004
Posts: 306
Location: Catalonia

PostPosted: Sun Oct 23, 2005 12:22 pm    Post subject: Reply with quote

Jejeje me'n alegro.

Tinc un dubte: si has enllaçat a sac m'imagino que hauràs enllaçat a on estigui realment libstdc++.la. Així doncs, on el tenies si no existeix /usr/lib/gcc-lib/i586-pc-linux-gnu/ ?

Gràcies i salut!
Back to top
View user's profile Send private message
mad93
Apprentice
Apprentice


Joined: 15 Feb 2005
Posts: 184
Location: Catalunya

PostPosted: Sun Oct 23, 2005 9:53 pm    Post subject: Reply with quote

Em demanava /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5-20050130/libstdc++.la i jo tenia /usr/lib/gcc-lib/i586-pc-linux-gnu/3.3.6/libstdc++.la

Així doncs he fet desde /usr/lib/gcc-lib/
Code:
ln -s i586-pc-linux-gnu/ i386-pc-linux-gnu


i desde /usr/lib/gcc-lib/i586-pc-linux-gnu/
Code:
 ln -s 3.3.6/ 3.3.5-20050130


Problema solucionat :)
Back to top
View user's profile Send private message
Corellian
n00b
n00b


Joined: 29 Oct 2003
Posts: 65
Location: Catalunya (Europe)

PostPosted: Wed Jan 25, 2006 10:30 am    Post subject: Reply with quote

Però no hi havia una arquitectura específica a gcc per els AMD? com que has posat i586...
_________________
GPG Key-ID: 0x564903FA - Jabber ID: corellian@swissjabber.ch
Back to top
View user's profile Send private message
simkin
Apprentice
Apprentice


Joined: 25 Jun 2003
Posts: 164

PostPosted: Sat Jan 28, 2006 4:09 pm    Post subject: Reply with quote

Corellian wrote:
Però no hi havia una arquitectura específica a gcc per els AMD? com que has posat i586...

AMD-K5 és equivalent a un pentium, amb i586 ja va bé :-p
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Languages 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