Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Distcc not running
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Ghostryder
Apprentice
Apprentice


Joined: 10 Dec 2003
Posts: 216

PostPosted: Tue Aug 09, 2005 8:47 am    Post subject: Distcc not running Reply with quote

Hi,

in my case I have a notebook and a desktop machine and I want to use distcc for compiling. The desktop machine is an AM XP and the notebook a Pentium M.
Do I have to use cross compiling therefore? I'm thinking not because both are x86 architctures but I'm not completely sure.

So here's what if done. I emerged 'distcc' on both machines. Then I edited '/etc/make.conf' on both. They look as follows:

Notebook
Code:

# 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 -march=pentium3 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
USE="mmx gtk gnome qt kde cdr dvd alsa samba acpi avi cups dvdr encode ethereal mpeg oggvorbis truetype xmms xinerama imlib png unicode"
MAKEOPTS="-j5"
ACCEPT_KEYWORDS="~x86"
PORTDIR_OVERLAY=/usr/local/portage
FEATURES="distcc"


and desktop
Code:

# 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 -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
ACCEPT_KEYWORDS="~x86"
USE="-gtk -gnome kde qt alsa cdr dvd samba avi cups dvdr encode ethereal mpeg oggvorbis truetype xmms xinerama amarok"
FEATURES="distcc"
MAKEOPTS="-j5"


Afterwards I did at the notebook:

Code:
distcc-config --set-hosts 192.168.xxx.xxx //IP of the desktop


and same on the desktop

Code:
distcc-config --set-hosts 192.168.xxx.xxx //IP of the notebook


At last I changed /etc/conf.d/distccd on both to:

Code:

# Copyright 1999-2004 Gentoo Foundation
# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/files/2.18/conf,v 1.2 2004/10/21 16:20:10 vapier Exp $
# distccd configuration file

DISTCCD_OPTS=""

# this is the distccd executable
DISTCCD_EXEC="/usr/bin/distccd"

# this is where distccd will store its pid file
DISTCCD_PIDFILE="/var/run/distccd/distccd.pid"

# set this option to run distccd with extra parameters
# Default port is 3632.  For most people the default is okay.
DISTCCD_OPTS="${DISTCCD_OPTS} --port 3632"

# Logging
# You can change some logging options here:
# --log-file FILE
# --log-level LEVEL  [critical,error,warning, notice, info, debug]
#
# Leaving --log-file blank will log to syslog
# example: --log-file /dev/null --log-level warning
# example: --log-level critical

DISTCCD_OPTS="${DISTCCD_OPTS} --log-level critical"

# SECURITY NOTICE:
# It is HIGHLY recomended that you use the --listen option
# for increased security. You can specify an IP to permit connections
# from or a CIDR mask
# --listen accepts only a single IP
# --allow is now mandatory as of distcc-2.18.
# example:  --allow 192.168.0.0/24
# example:  --allow 192.168.0.5 --allow 192.168.0.150
# example:  --listen 192.168.0.2
DISTCCD_OPTS="${DISTCCD_OPTS} --allow 192.168.xxx.xxx"
DISTCCD_OPTS="${DISTCCD_OPTS} --listen 192.168.xxx.xxx"

#DISTCCD_OPTS="${DISTCCD_OPTS} --listen 192.168.0.2"

# set this for niceness
# Default is 15
DISTCCD_NICE="15"


and restarted Distcc-Daemon on both machines.

I tried to compile something but just get the following message:

Code:

if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../intl      -O2 -march=pentium3 -fomit-frame-pointer -MT text.o -MD -MP -MF ".deps/text.Tpo" -c -o text.o text.c; \
then mv -f ".deps/text.Tpo" ".deps/text.Po"; else rm -f ".deps/text.Tpo"; exit 1; fi
distcc[19103] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../intl      -O2 -march=pentium3 -fomit-frame-pointer -MT ttfont.o -MD -MP -MF ".deps/ttfont.Tpo" -c -o ttfont.o ttfont.c; \
then mv -f ".deps/ttfont.Tpo" ".deps/ttfont.Po"; else rm -f ".deps/ttfont.Tpo"; exit 1; fi
distcc[19107] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
distcc[19109] (dcc_build_somewhere) Warning: failed to distribute, running locally instead



What have I done wrong?

thanks g.
Back to top
View user's profile Send private message
Ghostryder
Apprentice
Apprentice


Joined: 10 Dec 2003
Posts: 216

PostPosted: Tue Aug 09, 2005 10:00 am    Post subject: Reply with quote

I uncommented the --listen entries in /etc/conf.d/distccd and now it seems to work. I'm just wondering a littlebit because whenI open distccmon-gui on both machines
there isn't anywhere a job listed although I'm running an emerge process and the processor on the desktop machine is at 99%. But why isn't it listed?
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5947

PostPosted: Tue Aug 09, 2005 4:02 pm    Post subject: Reply with quote

IMO, distccmon is a piece of garbage. Use top on the distcc server and filter by user distcc.

--beugh
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
Ghostryder
Apprentice
Apprentice


Joined: 10 Dec 2003
Posts: 216

PostPosted: Tue Aug 09, 2005 7:13 pm    Post subject: Reply with quote

Yeah, that's what I already did. So I saw that distcc is working properly. But thanks for answering...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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