Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] distcc e gcc (forse mal configurato)
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
triki
Tux's lil' helper
Tux's lil' helper


Joined: 11 Feb 2005
Posts: 133
Location: Zena Italy

PostPosted: Mon Dec 26, 2005 9:12 pm    Post subject: [solved] distcc e gcc (forse mal configurato) Reply with quote

ecco la descrizione dei 2 pc in questione con i vari file di conf (prima che me li chiediate :D ):

1) fisso con 1500xp e gentoo perfettamente funzionante, ip xxx.xxx.xxx.130:

emerge info:

Code:
Portage 2.0.53 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.11-gentoo-r6 i686)
=================================================================
System uname: 2.6.11-gentoo-r6 i686 AMD Athlon(TM) XP1500+
Gentoo Base System version 1.6.13
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distcc distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X alsa apm audiofile avi berkdb bitmap-fonts bzip2 cdr crypt cups curl divx4linux dvd dvdr eds emboss encode exif expat fam ffmpeg flac foomaticdb fortran gdbm gif glut gphoto2 gpm gstreamer gtk gtk2 guile icq idn imagemagick imlib ipv6 java jpeg junit lcms libg++ libwww mad mikmod mng motif mp3 mpeg msn nas ncurses nls ogg oggvorbis openal opengl oss pam pcre pdflib perl png python quicktime readline samba scanner sdl slang speex spell ssl svga tcpd tiff truetype truetype-fonts type1-fonts udev usb vcd vorbis win32codecs x86 xine xml2 xmms xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY


file di conf di distccd:

Code:
DISTCCD_OPTS=""
DISTCCD_EXEC="/usr/bin/distccd"
DISTCCD_PIDFILE="/var/run/distccd/distccd.pid"
DISTCCD_OPTS="${DISTCCD_OPTS} --port 3632"
DISTCCD_OPTS="${DISTCCD_OPTS} --log-level critical"
DISTCCD_OPTS="${DISTCCD_OPTS} --allow xxx.xxx.xxx.131"
DISTCCD_NICE="15"


Code:
# /usr/bin/distcc-config --get-hosts             
xxx.xxx.xxx.130/2 xxx.xxx.xxx.131/1


2) portatile dell p3 500 MHz con gentoo in fase di preparazione (sistema base pronto +distcc), ip xxx.xxx.xxx.131:

emerge info:

Code:
Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.4.20041102-r1, 2.6.14-gentoo-r5 i686)
=================================================================
System uname: 2.6.14-gentoo-r5 i686 Pentium III (Coppermine)
distcc 2.18.3 i386-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python:     2.3.5-r2
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i386-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer"
CHOST="i386-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distcc distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X alsa apm avi berkdb bitmap-fonts bzip2 crypt cups curl divx4linux eds emboss encode expat foomaticdb fortran gdbm gif gpm gstreamer gtk gtk2 icq imlib ipv6 jpeg libg++ libwww mad mikmod motif mp3 mpeg msn ncurses nls ogg oggvorbis opengl oss pam pdflib perl png python quicktime readline samba sdl spell ssl tcpd truetype truetype-fonts type1-fonts udev usb vcd vorbis win32codecs x86 xine xml2 xmms xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY


file di conf di distccd:

Code:
DISTCCD_OPTS=""
DISTCCD_EXEC="/usr/bin/distccd"
DISTCCD_PIDFILE="/var/run/distccd/distccd.pid"
DISTCCD_OPTS="${DISTCCD_OPTS} --port 3632"
DISTCCD_OPTS="${DISTCCD_OPTS} --log-level critical"
DISTCCD_OPTS="${DISTCCD_OPTS} --allow xxx.xxx.xxx.130 xxx.xxx.xxx.131"
DISTCCD_NICE="15"


Code:
# /usr/bin/distcc-config --get-hosts             
xxx.xxx.xxx.130/2 xxx.xxx.xxx.131/1


Il mio obiettivo è compilare il più possibile sul pc più veloce per evitare inutili fatiche al portatile.

Premetto che siccome le versioni di gcc non coincidevano (sul portatile era 3.3 sul fisso 3.4) ho seguito queste istruzioni per aggiornarlo:
http://www.gentoo.org/doc/en/gcc-upgrading.xml#upgrade-3.3-to-3.4

I pc si pingano reciprocamente in maniera perfetta con risposta media di 0.188 ms

Ora compilando un programmino qualsiasi (per i test sto usando reiserfsprogs) a compilazione appena iniziata termina dicendo che non può trovare o avviare "i386-pc-linux-gnu"
L'unico dubbio che mi viene è che gcc per il fisso ha "i686-pc-linux-gnu" e per il portatile invece "i386-pc-linux-gnu" che ha quasi sicuramente ereditato da CHOST che non mi sono permesso di toccare visto che sulla guida dicono "Non modificarla perchè potrebbe causare seri malfunzionamenti".
Quindi o ho sbagliato lo stage (e quindi ereditato un chost sbagliato), o il chost è solo da modificare, o l'errore è un altro visto che vi sono varie differenze fra le configurazioni dei 2 pc che però non so interpretare.

Mi sapete aiutare?

Grazie


Last edited by triki on Tue Dec 27, 2005 4:09 pm; edited 1 time in total
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Tue Dec 27, 2005 9:06 am    Post subject: Re: distcc e gcc (forse mal configurato) Reply with quote

triki wrote:

Ora compilando un programmino qualsiasi (per i test sto usando reiserfsprogs) a compilazione appena iniziata termina dicendo che non può trovare o avviare "i386-pc-linux-gnu"
L'unico dubbio che mi viene è che gcc per il fisso ha "i686-pc-linux-gnu" e per il portatile invece "i386-pc-linux-gnu" che ha quasi sicuramente ereditato da CHOST che non mi sono permesso di toccare visto che sulla guida dicono "Non modificarla perchè potrebbe causare seri malfunzionamenti".


Prova a vedere se questo topic ti può essere d'aiuto.
_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
triki
Tux's lil' helper
Tux's lil' helper


Joined: 11 Feb 2005
Posts: 133
Location: Zena Italy

PostPosted: Tue Dec 27, 2005 10:33 am    Post subject: Reply with quote

allora grazie a quel topic che mi hai segnalato posso intuire che sul pc fisso, gcc non trova la dir con le librerie per i386 e ne deduco che le librerie i686 non possano compilare per i386. Quindi: posso mettere i686 come chost su un p3 a 500 MHz? Esiste una tabella di riferimento dove capire come classificare il mio sistema? (sul manuale ufficiale di gcc non ho trovato nulla!!!)

Ovviamente se esistono altre soluzioni fatemi sapere!
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Tue Dec 27, 2005 3:45 pm    Post subject: Reply with quote

triki wrote:
Esiste una tabella di riferimento dove capire come classificare il mio sistema? (sul manuale ufficiale di gcc non ho trovato nulla!!!)


http://gentoo-wiki.com/Safe_Cflags
_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
triki
Tux's lil' helper
Tux's lil' helper


Joined: 11 Feb 2005
Posts: 133
Location: Zena Italy

PostPosted: Tue Dec 27, 2005 4:08 pm    Post subject: Reply with quote

perfetto metto i686 e reistallo da capo così elimino le porcate che ho fatto

grazie
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Tue Dec 27, 2005 4:12 pm    Post subject: Reply with quote

triki wrote:
perfetto metto i686 e reistallo da capo così elimino le porcate che ho fatto

grazie


Basterebbe ricompilare come suggerito nel topic che ti ho linkato poco fa ;)
_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
triki
Tux's lil' helper
Tux's lil' helper


Joined: 11 Feb 2005
Posts: 133
Location: Zena Italy

PostPosted: Tue Dec 27, 2005 7:08 pm    Post subject: Reply with quote

si ho visto, però ho fatto altre porcate di vario tipo, quindi preferisco rimettere su tutto, tanto avevo installato solo sistema base + kernel + distcc.
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