Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Errore nell'aggiornamento di portage [CHOST errata?]
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
Angelus666
n00b
n00b


Joined: 18 May 2006
Posts: 69

PostPosted: Thu Jun 08, 2006 9:55 am    Post subject: Errore nell'aggiornamento di portage [CHOST errata?] Reply with quote

Ciao a tutti!

Ho cercato nel forum se c'era un topic simile a questo, ma con le keywords "errore emerge portage" non ho trovato nulla che potesse aiutarmi. Se mi è sfuggito qualche topic mi scuso con i moderatori!

Ieri notte ho dato emerge --update --deep --newuse world e stamattina ho trovato tutto fermo sull'aggiornamento di portage! Queste sono parti dell'errore dato:

Code:
gcc-config error: could not run/locate "i386-pc-linux-gnu-gcc"
error: command "i386-pc-linux-gnu-gcc" failed with exit status 1


Qualche riga più giù:

Code:
ERROR: sys-apps/portage-2.0.54-r2 failed
function src_compile, line 53, exitcode1
failed to build missingos module


Stesso errore mi da quando do emerge portage.

Come risolvo questo problema?



Quando riavvio il sistema, poco prima del login, mi compare questo errore:

Code:
/etc/host.conf: line 24: bad command "mdns off"


Appena inserisco il nome utente (root in questo caso), mi da quest'altro errore:

Code:
configuration error - unknown item 'FAILLOG_ENAB' (notify administrator)
configuration error - unknown item 'LASTLOG_ENAB' (notify administrator)
configuration error - unknown item 'MOTDFILE' (notify administrator)
configuration error - unknown item 'FTMP_FILE' (notify administrator)
configuration error - unknown item 'ENV_ROOTPATH' (notify administrator)
configuration error - unknown item 'PASS_MIN_LEN' (notify administrator)
configuration error - unknown item 'CHFN_AUTH' (notify administrator)


Riesco comunque a loggare. Questi errori credo siano dati dal fatto che non ho ancora dato un etc-update (revdep-rebuild è la stessa cosa?).


Last edited by Angelus666 on Thu Jun 08, 2006 12:53 pm; edited 1 time in total
Back to top
View user's profile Send private message
emix
Veteran
Veteran


Joined: 30 Nov 2003
Posts: 1014

PostPosted: Thu Jun 08, 2006 10:00 am    Post subject: Re: Errore nell'aggiornamento di portage Reply with quote

Angelus666 wrote:
Code:
gcc-config error: could not run/locate "i386-pc-linux-gnu-gcc"
error: command "i386-pc-linux-gnu-gcc" failed with exit status 1

Il comando "gcc-config -l" che output ti da?

Angelus666 wrote:
Questi errori credo siano dati dal fatto che non ho ancora dato un etc-update (revdep-rebuild è la stessa cosa?).

Si, può darsi. Ti consiglio di aggiornare i file di configurazione. "revdep-rebuild" serve a tutt'altra cosa:
man revdep-rebuild wrote:
DESCRIPTION
revdep-rebuild scans libraries and binaries for missing shared library
dependencies and fixes them by re-emerging those broken binaries and
shared libraries. It is useful when an upgraded package breaks other
software packages that are dependent upon the upgraded package.
Back to top
View user's profile Send private message
Angelus666
n00b
n00b


Joined: 18 May 2006
Posts: 69

PostPosted: Thu Jun 08, 2006 10:18 am    Post subject: Re: Errore nell'aggiornamento di portage Reply with quote

emix wrote:

Il comando "gcc-config -l" che output ti da?


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



emix wrote:

Ti consiglio di aggiornare i file di configurazione


:?:
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Thu Jun 08, 2006 10:24 am    Post subject: Re: Errore nell'aggiornamento di portage Reply with quote

Angelus666 wrote:
Ho cercato nel forum se c'era un topic simile a questo, ma con le keywords "errore emerge portage" non ho trovato nulla che potesse aiutarmi. Se mi è sfuggito qualche topic mi scuso con i moderatori!


Non é un errore di portage.
E' solo uno dei tanti problemi cui si va incontro cambiando CHOST.
Leggi tutto questo topic e guarda se c'é la soluzione al tuo problema.
_________________
Ciao da me!
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Thu Jun 08, 2006 10:25 am    Post subject: Reply with quote

devi dare un
Code:

source /etc/profile

nella shell in corso per ricaricare le impostazioni dell'ambiente, tra cui quelle del compilatore in uso!
_________________
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Back to top
View user's profile Send private message
emix
Veteran
Veteran


Joined: 30 Nov 2003
Posts: 1014

PostPosted: Thu Jun 08, 2006 10:31 am    Post subject: Re: Errore nell'aggiornamento di portage Reply with quote

Angelus666 wrote:
emix wrote:

Ti consiglio di aggiornare i file di configurazione


:?:

Mi riferivo a questa tua frase:
Angelus666 wrote:
Questi errori credo siano dati dal fatto che non ho ancora dato un etc-update


:wink:
Back to top
View user's profile Send private message
Angelus666
n00b
n00b


Joined: 18 May 2006
Posts: 69

PostPosted: Thu Jun 08, 2006 10:42 am    Post subject: Re: Errore nell'aggiornamento di portage Reply with quote

randomaze wrote:
Angelus666 wrote:
Ho cercato nel forum se c'era un topic simile a questo, ma con le keywords "errore emerge portage" non ho trovato nulla che potesse aiutarmi. Se mi è sfuggito qualche topic mi scuso con i moderatori!


Non é un errore di portage.
E' solo uno dei tanti problemi cui si va incontro cambiando CHOST.
Leggi tutto questo topic e guarda se c'é la soluzione al tuo problema.


Ho letto quel topic ma non ho ancora capito il problema, ne tantomeno la soluzione! :(
Dopo l'installazione da Live Gentoo non ho più toccato CHOST! Solo durante l'installazione make.conf riportava CHOST="i386-pc-linux-gnu" e l'ho messo in i686, ma poi mai più toccato!

Cosa fa con source /etc/profile?
Back to top
View user's profile Send private message
emix
Veteran
Veteran


Joined: 30 Nov 2003
Posts: 1014

PostPosted: Thu Jun 08, 2006 10:50 am    Post subject: Re: Errore nell'aggiornamento di portage Reply with quote

Angelus666 wrote:
Cosa fa con source /etc/profile?

Ricarica il file di configurazione di bash, dove ad esempio vengono impostate le variabili d'ambiente e cose del genere.
Back to top
View user's profile Send private message
Angelus666
n00b
n00b


Joined: 18 May 2006
Posts: 69

PostPosted: Thu Jun 08, 2006 10:53 am    Post subject: Re: Errore nell'aggiornamento di portage Reply with quote

emix wrote:
Angelus666 wrote:
Cosa fa con source /etc/profile?

Ricarica il file di configurazione di bash, dove ad esempio vengono impostate le variabili d'ambiente e cose del genere.


Quindi devo dare source /etc/profile e poi ridare emerge --update --deep --newuse world?
Back to top
View user's profile Send private message
Luca89
Advocate
Advocate


Joined: 27 Apr 2005
Posts: 2107
Location: Agrigento (Italy)

PostPosted: Thu Jun 08, 2006 11:08 am    Post subject: Re: Errore nell'aggiornamento di portage Reply with quote

Angelus666 wrote:
Code:
gcc-config error: could not run/locate "i386-pc-linux-gnu-gcc"
error: command "i386-pc-linux-gnu-gcc" failed with exit status 1


Come risolvo questo problema?


Non trova il path corretto del compilatore, evidentemente hai fatto qualche casino con la variabile CHOST che non deve mai essere cambiata, se te la sei trovata diversa rispetto a quella del tuo sistema significa che hai scelto lo stage sbagliato. Quindi o reinstalli con lo stage giusto oppure segui uno dei tanti topic che riguardano il cambio di CHOST.


Quote:
Quando riavvio il sistema, poco prima del login, mi compare questo errore:

Code:
/etc/host.conf: line 24: bad command "mdns off"

è dovuto all'aggiornamento delle glibc che non includono più quel supporto, aggiornando i file di configurazione con etc-update puoi risolvere.

Quote:
Appena inserisco il nome utente (root in questo caso), mi da quest'altro errore:

Code:
configuration error - unknown item 'FAILLOG_ENAB' (notify administrator)
configuration error - unknown item 'LASTLOG_ENAB' (notify administrator)
configuration error - unknown item 'MOTDFILE' (notify administrator)
configuration error - unknown item 'FTMP_FILE' (notify administrator)
configuration error - unknown item 'ENV_ROOTPATH' (notify administrator)
configuration error - unknown item 'PASS_MIN_LEN' (notify administrator)
configuration error - unknown item 'CHFN_AUTH' (notify administrator)


Riesco comunque a loggare. Questi errori credo siano dati dal fatto che non ho ancora dato un etc-update (revdep-rebuild è la stessa cosa?).


Questo errore è dovuto all'aggiornamento di pam, con etc-update aggiorna i file di configurazione e sei apposto.
_________________
Running Fast!
Back to top
View user's profile Send private message
Angelus666
n00b
n00b


Joined: 18 May 2006
Posts: 69

PostPosted: Thu Jun 08, 2006 11:17 am    Post subject: Re: Errore nell'aggiornamento di portage Reply with quote

Luca89 wrote:

Non trova il path corretto del compilatore, evidentemente hai fatto qualche casino con la variabile CHOST che non deve mai essere cambiata, se te la sei trovata diversa rispetto a quella del tuo sistema significa che hai scelto lo stage sbagliato. Quindi o reinstalli con lo stage giusto oppure segui uno dei tanti topic che riguardano il cambio di CHOST.


ARGHHH!!!! Solo ora mi sono accorto di aver scelto uno stage x86 invece di i686! :cry:

Nei vari topic che ho letto vengono citati mille modi di porre rimedio a sto errore, ma non ho capito qual'è quello giusto. Una volta che in /etc/make.conf CHOST è i686, devo semplicemente dare emerge -e system o emerge -e world? Mi sembra troppo facile per essere vero... :roll:

edit: mi sa che devo reinstallare tutto, porca vacca. Sarebbe la 3a volte che reinstallo. Mi sa che Gentoo non fa per me...sono negato.

P.S.= Mi scuso con i moderatori, ma all'inizio non pensavo fosse un problema di CHOST, per questo ho aperto un nuovo thread. Per cui potete anche mergerlo con questo "https://forums.gentoo.org/viewtopic-t-399344-highlight-cambiare+chost.html". :(
Back to top
View user's profile Send private message
Angelus666
n00b
n00b


Joined: 18 May 2006
Posts: 69

PostPosted: Fri Jun 09, 2006 1:54 pm    Post subject: Reply with quote

Devo dare un source /etc/profile e poi emerge -e system per porre rimedio a tutto? Oppure devo rassegnarmi a reinstallare?
Ho letto tutti i vari topic in merito ma non riesco a capire la procedura esatta!
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Fri Jun 09, 2006 2:30 pm    Post subject: Reply with quote

Dai
Code:

gcc-config -l

e assicurati che dia qualcosa del genere
Code:

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

(con "i686" davanti)
dai
Code:

emerge -e world

e mettiti comodo, armandoti di pazienza :P

Se ti si presenteranno problemi relativi al path delle librerie di gcc esegui
Code:

fix_libtool_files.sh `gcc -dumpversion` --oldarch i386-pc-linux-gnu

_________________
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Back to top
View user's profile Send private message
Angelus666
n00b
n00b


Joined: 18 May 2006
Posts: 69

PostPosted: Fri Jun 09, 2006 2:42 pm    Post subject: Reply with quote

Grazie Scen!

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

Questo è l'output con quel comando, quindi credo che sia tutto (o quasi in regola!).

Stasera provo a fare quel bel emerge -e world e vediamo che succede!

Grazie ancora e ciao! :mrgreen:
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