LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.

Notices


Reply
  Search this Thread
Old 11-27-2003, 11:11 PM   #1
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Got distcc to work!


Having just installed Gentoo on my wife's new box, it has become of paramount importance that compiling happens as quickly as possible So I've made the attempt to install distcc, a distributed C compiler, on both our fast machines.

Everything went smoothly on the Gentoo end, but installing on Mandrake proved to be somewhat trickier. Gentoo would attempt to send work to distccd on Mandrake, but it would sit and churn without doing anything, seemingly. 'top' showed distccd taking up most of the CPU, and it turns out that it was doing nothing but producing copious quantities of error messages in /var/log/syslog and/or /var/log/daemons/info, of the following variety:

Nov 27 21:42:27 malcolm distccd[15568]: (dcc_make_tmpnam) failed to create /root/tmp/distcc_1e3b5d20.stderr: Permission denied
Nov 27 21:42:27 malcolm distccd[15568]: (dcc_make_tmpnam) failed to create /root/tmp/distcc_1e3b7b81.stderr: Permission denied
Nov 27 21:42:27 malcolm distccd[15568]: (dcc_make_tmpnam) failed to create /root/tmp/distcc_1e3b99e2.stderr: Permission denied

I have no idea why distccd was trying to create stuff in root's home directory, but many attempts at figuring out why were unsuccessful. On Mandrake, it appears that distccd wants to be run from xinetd, which, perversely, uses the configuration file /etc/xinetd.d/distcc:

Code:
service distcc
{
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = distcc
        server          = /usr/bin/distccd
        server_args     = --verbose --inetd
#       per_source      = 8
        log_type        = FILE /var/log/distccd
        disable         = no
        log_on_success  = PID HOST USERID EXIT DURATION
        log_on_failure  = USERID ATTEMPT
}
Documentation on just how in the hell this file works seems to be sorely lacking; the manual pages for distcc and distccd barely do more than mention xinetd, let alone tell you how to configure it properly. A few stray errors about ports already being in use eventually cleared up on their own, so that didn't help much. Switching from user 'nobody' to user 'distcc' didn't seem to matter either, since neither has permission to write to /root/tmp.

Anyway, to make a long story short, take out the --verbose option. Removing this allowed distccd to work correctly and stop producing 600MB logfiles. Something else is currently causing the Gentoo box to hang on compilation, but at least this small problem is nailed, I think (and at least it's getting past the 'configure' phase, which is where it stalled before).

Hope this helps another poor soul!
 
Old 11-28-2003, 09:02 AM   #2
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Original Poster
Rep: Reputation: 48
Hmm. Correction. Distcc does not work, it is just no longer producing large logfiles. Apparently turning off --verbose stopped the errors from getting logged, but they're still occurring, since distcc still hangs during compilation. Presumably the reason it got past the 'configure' phase is that I added a --nice 19 option, which probably made it work a little slower, and hang later in the compilation.

Anyhow, rest assured I will post a solution as soon as I figure it out...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Distcc exvor Linux - Software 1 11-17-2005 06:36 PM
distcc linuxhippy Slackware 4 05-05-2005 07:15 AM
using distcc to compile pengStudent Programming 3 03-10-2004 08:33 PM
How do I tell if distcc is working? kleptophobiac Linux - Software 3 12-23-2003 07:22 AM
Using distcc...? kleptophobiac Linux - Software 0 09-30-2003 09:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories

All times are GMT -5. The time now is 12:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration