Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
distcc not working at all.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
taveren
Tux's lil' helper
Tux's lil' helper


Joined: 24 Jul 2002
Posts: 145
Location: London, Ontario

PostPosted: Tue Dec 17, 2002 4:18 pm    Post subject: distcc not working at all. Reply with quote

I have 2 Gentoo 1.4 systems up and running, each with as many things similar as possible. (One has X, the other doesn't). I've emerged distcc on each and even compiled a kernel using it.

I have my make.conf files almost identical, but it just doesn't seem to pick up the fact that I want to use distcc as the compiler. Here is what I have on the slower machine:
Code:

CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
ACCEPT_KEYWORDS="~x86"
CC="distcc gcc"
CXX="distcc g++"
MAKEOPTS="-j3"
DISTCC_HOSTS="192.168.1.2 localhost"


The faster (1.33Ghz) machine has the same, but with the hosts switched around. (This is temporary of course, it will be changed once I actually get it working). Emerging things on the 700Mhz system uses the local gcc, as does the faster system. Its like its ignoring the options in my make.conf.

I've tried aterm, lftp, mozilla, and a few other things. None of them recognized the distcc options. Any ideas?
Back to top
View user's profile Send private message
proxy
Apprentice
Apprentice


Joined: 20 Apr 2002
Posts: 260
Location: Chantilly, VA

PostPosted: Tue Dec 17, 2002 11:39 pm    Post subject: Reply with quote

i have noticed this and i beleive i know what the problem is.

in the newer gcc ebuilds, there is a different version of this file:

/etc/env.d/05gcc

it has 3 lines, the last 2 are new, namely they set CC and CXX to be gcc and g++, comment them out (put a # in front of them and you should be good to go)

enjoy :)

proxy
Back to top
View user's profile Send private message
taveren
Tux's lil' helper
Tux's lil' helper


Joined: 24 Jul 2002
Posts: 145
Location: London, Ontario

PostPosted: Wed Dec 18, 2002 2:38 pm    Post subject: Reply with quote

Great, that worked wonderfully. At first it didn't do anything, but I angry at something (unrelated) and shut all my computers off and went to bed. Realizing in the morning thats an ENV variable and wouldn't have an immediate affect. After the reboot, it worked great.

Thanks.
Back to top
View user's profile Send private message
proxy
Apprentice
Apprentice


Joined: 20 Apr 2002
Posts: 260
Location: Chantilly, VA

PostPosted: Thu Dec 19, 2002 3:40 am    Post subject: Reply with quote

just so you know, to update your enviornment variables without a reset, just type (as root)

Code:
env-update
Back to top
View user's profile Send private message
sven
Apprentice
Apprentice


Joined: 19 Apr 2002
Posts: 274

PostPosted: Sun Dec 22, 2002 10:14 am    Post subject: Reply with quote

I have a similiar problem with distcc!
I own two machines, one is a Pentium MMX 200, the other is an Athlon XP 1.700+. Both are running up-to-date Gentoo 1.4rc1 systems which means they both have installed the same gcc version, libaries and everything. I've installed distccd on both machines and added it to the default runlevel. I've modified the Pentiums make.conf file according to this thread:

Code:
CC="distcc"
CXX="distcc g++"
MAKEOPTS="-j3"
DISTCC_HOSTS="jupiter localhost"
DISTCC_VERBOSE=1

Jupiter is the Athlon, by the way. When I try to emerge something on the Pentium, I get the following error message after a while:

Code:
distcc[22932] (dcc_open_socket_out) client got connection to jupiter port 3632 on fd4
distcc[22932] (dcc_x_token_int) send DIST00000001
distcc[22932] (dcc_x_token_int) send ARGC0000000c
distcc[22932] (dcc_x_token_int) send ARGV00000002
distcc[22932] (dcc_x_token_int) send ARGV00000005
distcc[22932] (dcc_x_token_int) send ARGV00000012
distcc[22932] (dcc_x_token_int) send ARGV00000003
distcc[22932] (dcc_x_token_int) send ARGV00000005
distcc[22932] (dcc_x_token_int) send ARGV00000012
distcc[22932] (dcc_x_token_int) send ARGV00000003
distcc[22932] (dcc_x_token_int) send ARGV00000005
distcc[22932] (dcc_x_token_int) send ARGV00000002
distcc[22932] (dcc_x_token_int) send ARGV00000002
distcc[22932] (dcc_x_token_int) send ARGV00000005
distcc[22932] (dcc_x_token_int) send ARGV00000038
distcc[22932] (dcc_collect_child) child 22933 terminated with status 0
distcc[22932] (dcc_report_rusage) cpp resource usage: 0.620000s user, 0.070000s system
distcc[22932] cpp on neptun.home-net completed ok
distcc[22932] (dcc_x_file) send 135829 byte file /var/tmp/portage/gpm-1.20.0-r5/temp/distcc_00000000/cppout_0000022932.i with token DOTI
distcc[22932] (dcc_x_token_int) send DOTI00021295
distcc[22932] (dcc_send_job) client finished sending request to server
distcc[22932] (dcc_r_token_int) got DONE00000001
distcc[22932] (dcc_r_result_header) got response header
distcc[22932] (dcc_r_token_int) got STAT00007f00
distcc[22932] (dcc_r_token_int) got SERR0000002c
/usr/bin/cc: line 3: gcc: command not found
distcc[22932] (dcc_r_token_int) got SOUT00000000
distcc[22932] (dcc_r_token_int) got DOTO00000000
distcc[22932] (dcc_retrieve_results) Notice: skipping retrieval of 0 byte object file gpm.o
distcc[22932] (dcc_critique_status) Notice: cc on jupiter failed with exit code 127
distcc[22932] (dcc_exit) Notice: exit: code 127; self: 0.020000 user 0.010000 sys; children: 0.620000 user 0.070000 sys
distcc[22932] (dcc_cleanup_tempfiles) deleted 1 temporary files
make[1]: *** [gpm.o] Error 127
make[1]: Leaving directory `/var/tmp/portage/gpm-1.20.0-r5/work/gpm-1.20.0/src'
make: *** [do-all] Error 1

The line /usr/bin/cc: line 3: gcc: command not found seems to be important. I have no idea why gcc is not found, because I can compile everything locally on the Athlon without any problems!

Any idea?
Back to top
View user's profile Send private message
sven
Apprentice
Apprentice


Joined: 19 Apr 2002
Posts: 274

PostPosted: Wed Dec 25, 2002 10:55 am    Post subject: Reply with quote

Hmm, if I start distccd with my normal user

Code:
# distccd --daemon

then it works!

But it doesn't work when started by /etc/init.d/distccd start...

And btw, distccd wants to run on port 3632 on both computers and not on 4200 which seems to be the default port... strange, isn't it?
Back to top
View user's profile Send private message
darkweaseljedi
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jan 2003
Posts: 101
Location: Minneapolis, MN

PostPosted: Mon Jan 13, 2003 4:35 am    Post subject: Reply with quote

Was this ever resolved? Distccd doesn't function correctly if started with /etc/init.d/distccd --start

If you do a "distccd --daemon" with a non-root user it works fine.

and the last post here was in april of 2002. This is January of 2003, and it is still not working. Should I submit a bug report?

darkweasel
Back to top
View user's profile Send private message
sven
Apprentice
Apprentice


Joined: 19 Apr 2002
Posts: 274

PostPosted: Mon Jan 13, 2003 5:34 am    Post subject: Reply with quote

The last post was on Dec 25 2002.
I was able to fix this by creating a symlink to /usr/bin/g++ and /usr/bin/cpp. It seems like the nobody user which distccd is started as through the init.d file was not able to access these binaries.

This is more a workaround than a fix...
Back to top
View user's profile Send private message
ccpetersen
n00b
n00b


Joined: 11 Jun 2002
Posts: 25

PostPosted: Tue Jan 14, 2003 2:37 pm    Post subject: Reply with quote

See:
https://forums.gentoo.org/viewtopic.php?t=30056&highlight=distcc
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Tue Jan 14, 2003 3:11 pm    Post subject: Reply with quote

distccd & gcc-config
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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