Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[PSEUDO-RISOLTO] problema con gcc
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
stalsy
n00b
n00b


Joined: 22 Apr 2005
Posts: 22
Location: Isernia, ITALY

PostPosted: Mon Dec 12, 2005 11:40 pm    Post subject: [PSEUDO-RISOLTO] problema con gcc Reply with quote

salve a tutti,

ho installato gentoo utilizzando uno stage preso dal "ramo" x86. Pero' ho inserito in make.conf le ottimizzazione del compilatore gcc per un'architettura a 64bit (insomma non mi erano chiare troppo le cose sull'architettura a 64bit). Ho fatto poi il primo emerge -DavutN world e alcune righe davano il seguente errore:

Code:
Error: suffix or operands invalid for `push'


sfortunatamente la prima cosa che ha emerso è gcc-config. E ora è fottuto (scusate il termine). Ho fatto marcia indietro e ho configurato le cflags come un normale p4

Code:
CFLAGS="-march=pentium4 -O2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"


il fatto è che ora non mi riesce più a compilare gcc perchè se faccio un
Code:
emerge gcc

prova ad emergere prima gcc-config (usando il compilatore "fottuto") e quindi mi ridà il seguente errore:
Code:

[..]
/var/tmp/portage/gcc-config-1.3.12-r4/temp/cc4Djhx8.s:1157: Error: suffix or operands invalid for `push'
/var/tmp/portage/gcc-config-1.3.12-r4/temp/cc4Djhx8.s:1158: Error: suffix or operands invalid for `push'
/var/tmp/portage/gcc-config-1.3.12-r4/temp/cc4Djhx8.s:1164: Error: suffix or operands invalid for `push'
/var/tmp/portage/gcc-config-1.3.12-r4/temp/cc4Djhx8.s:1174: Error: suffix or operands invalid for `push'
/var/tmp/portage/gcc-config-1.3.12-r4/temp/cc4Djhx8.s:1175: Error: suffix or operands invalid for `push'

!!! ERROR: sys-devel/gcc-config-1.3.12-r4 failed.
!!! Function src_compile, Line 25, Exitcode 1
!!! compile wrapper
!!! If you need support, post the topmost build error, NOT this status message.


non c'è verso di tornare al compilatore gcc iniziale?
_________________
nessun c...o è duro più della vita

there's no d..k more hard than life


Last edited by stalsy on Tue Dec 13, 2005 1:45 am; edited 1 time in total
Back to top
View user's profile Send private message
Peach
Advocate
Advocate


Joined: 08 Mar 2003
Posts: 3686
Location: London, UK

PostPosted: Mon Dec 12, 2005 11:46 pm    Post subject: Reply with quote

non sono un esperto di operazioni straordinarie di recupero, ma se non sbaglio, se recuperi da qualche parte il package del gentoo installation disk, hai modo di ripristinare una configurazione funzionante di gcc.
controlla di non avere la versione precedente con `gcc-config -l` al massimo puoi fare uno switch, ma non assicuro nulla (e soprattutto non è detto che hai una versione disponibile).
_________________
Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom
Back to top
View user's profile Send private message
stalsy
n00b
n00b


Joined: 22 Apr 2005
Posts: 22
Location: Isernia, ITALY

PostPosted: Tue Dec 13, 2005 12:02 am    Post subject: Reply with quote

veramente io sarei in grado anche di montare l'hd contenente il gcc inquisito (residente su una macchina desktop) sulla mio laptop... il fatto è che anche se copio il mio ebuild nella macchina desktop cmq poi lo devo compilare...


cmq gcc è quello dell'ultimo stage3 ovvero
Code:
gcc -v
Reading specs from /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5-20050130/specs
Configured with: /var/tmp/portage/gcc-3.3.5.20050130-r1/work/gcc-3.3.5/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/i386-pc-linux-gnu/gcc-bin/3.3.5-20050130 --includedir=/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5-20050130/include --datadir=/usr/share/gcc-data/i386-pc-linux-gnu/3.3.5-20050130 --mandir=/usr/share/gcc-data/i386-pc-linux-gnu/3.3.5-20050130/man --infodir=/usr/share/gcc-data/i386-pc-linux-gnu/3.3.5-20050130/info --with-gxx-include-dir=/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5-20050130/include/g++-v3 --host=i386-pc-linux-gnu --build=i386-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libgcj --enable-languages=c,c++,f77 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 3.3.5-20050130 (Gentoo 3.3.5.20050130-r1, ssp-3.3.5.20050130-1, pie-8.7.7.1)


Code:

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

_________________
nessun c...o è duro più della vita

there's no d..k more hard than life
Back to top
View user's profile Send private message
Peach
Advocate
Advocate


Joined: 08 Mar 2003
Posts: 3686
Location: London, UK

PostPosted: Tue Dec 13, 2005 12:46 am    Post subject: Reply with quote

stalsy wrote:
veramente io sarei in grado anche di montare l'hd contenente il gcc inquisito (residente su una macchina desktop) sulla mio laptop... il fatto è che anche se copio il mio ebuild nella macchina desktop cmq poi lo devo compilare...

no appunto.. parlavo di pacchetti che emergi con emerge -K e che si creano (se hai una macchina con stesse CHOST e gcc) con quickpkg

per quanto riguarda gcc mi sa che nn c'è modo di uscirne senza avere un accesso esterno.
_________________
Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom
Back to top
View user's profile Send private message
stalsy
n00b
n00b


Joined: 22 Apr 2005
Posts: 22
Location: Isernia, ITALY

PostPosted: Tue Dec 13, 2005 12:59 am    Post subject: Reply with quote

l'accesso esterno ce l'avevo e mi ero scaricato anche un compilatore c precompilato... pero' la cosa richiedeva tempo perchè poi mi servivano altri pacchetti per installare i binari del compilatore.... ero all'inizio dell'installazione quindi ho ritenuto che risultasse più veloce rifare la procedura di installazione da capo che mettersi ad aggiustare....

grazie cmq dell'aiuto
_________________
nessun c...o è duro più della vita

there's no d..k more hard than life
Back to top
View user's profile Send private message
Peach
Advocate
Advocate


Joined: 08 Mar 2003
Posts: 3686
Location: London, UK

PostPosted: Tue Dec 13, 2005 1:18 am    Post subject: Reply with quote

stalsy wrote:
l'accesso esterno ce l'avevo e mi ero scaricato anche un compilatore c precompilato... pero' la cosa richiedeva tempo perchè poi mi servivano altri pacchetti per installare i binari del compilatore.... ero all'inizio dell'installazione quindi ho ritenuto che risultasse più veloce rifare la procedura di installazione da capo che mettersi ad aggiustare....

grazie cmq dell'aiuto

ah quindi hai eliminato il problema alla radice!
beh se hai eliminato, metti un tag [PSEUDO-RISOLTO] così si capisce che il discorso è finito qui
ciao ;)
_________________
Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) 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