Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

distcc and portage

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
CatSC
n00b
n00b
Posts: 28
Joined: Sat Jan 17, 2004 12:31 pm
Location: Wellington, New Zealand

distcc and portage

  • Quote

Post by CatSC » Mon Apr 12, 2004 3:36 am

Hello.
At the moment I'm trying to setup distcc.
I think distcc itself is working cos if I do
$ cd /usr/srs/linux
$ make bzImage -j3 CC=distcc
it distributes tasks and compiles properly.

my /etc/make.conf looks like

Code: Select all

CFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer"
CHOST="i386-pc-linux-gnu"
USE="kde gtk"
CXXFLAGS="${CFLAGS}"

MAKEOPTS="-j5 CC=distcc"
FEATURES="distcc"
DISTCC_HOSTS="main localhost"
when I try emerge something it says
"distcc[13047] ERROR: compile on localhost failed"

Cna you plz help me?
Top
cylgalad
Veteran
Veteran
Posts: 1327
Joined: Fri Apr 18, 2003 9:36 am
Location: France

  • Quote

Post by cylgalad » Mon Apr 12, 2004 10:21 am

MAKEOPTS="-j5" is enough, emerge ccache and have a FEATURES="distcc ccache", and don't forget to use distcc-config
You MUST read : http://www.gentoo.org/doc/en/distcc.xml
Make love not war !
Top
CatSC
n00b
n00b
Posts: 28
Joined: Sat Jan 17, 2004 12:31 pm
Location: Wellington, New Zealand

  • Quote

Post by CatSC » Tue Apr 13, 2004 4:00 am

Thanks

Ok I have it working now... the problem was that I thought that I have GCC of same version on both comps, but I didn't.

But there's other little problem. "distcc Monitor" does not show anything... :(
I'm sure that distcc itself is working properly cos I can see cc1 processes started by distccd on my main comp.

Do you know how to fix it?
Top
mat_the_w
n00b
n00b
Posts: 10
Joined: Mon Mar 22, 2004 11:42 pm

  • Quote

Post by mat_the_w » Sat Jun 19, 2004 4:00 am

CatSC:

In some guide somewhere it said to launch the graphical monitor with the env var as such:

Code: Select all

DISTCC_DIR=/var/tmp/portage/.distcc nohup distccmon-gnome &
and the text version as such:

Code: Select all

DISTCC_DIR=/var/tmp/portage/.distcc distccmon-text 1
Hope this helps

Mat_the_W
Top
elpierco
n00b
n00b
User avatar
Posts: 59
Joined: Sun Sep 28, 2003 7:47 am
Location: Lawrence Kansas

distcc notes

  • Quote

Post by elpierco » Sat Aug 14, 2004 4:10 pm

So using the above hint on executing distcc-gnome worked for me...also if you check in /var/tmp/portage/.distcc there should be two directories state and lock. When it wasnt working for me on one of my boxes I noticed that lock was missing so I unemerged it and rememerged it and it ran just fine after that so if your having problems might check that directory and then reemerge....El
Top
ross2411
n00b
n00b
User avatar
Posts: 55
Joined: Wed Feb 11, 2004 9:36 pm
Location: Bedford, England

  • Quote

Post by ross2411 » Sun Aug 15, 2004 10:57 pm

Couple of noob questions about distcc:
Firstly which computer can i run the monitor on to see something happening (as neither seem to show much :D)?
And secondly what is a good program to emerge to test this as i'm emerging kde at the mo (it's an update so thought i might as well) and it doesn't seem to have done anything (i've only give it 10 mins on a Pentium3 700 but still)?
Cheers

Ross
Top
elpierco
n00b
n00b
User avatar
Posts: 59
Joined: Sun Sep 28, 2003 7:47 am
Location: Lawrence Kansas

Followup

  • Quote

Post by elpierco » Mon Aug 16, 2004 12:27 am

You can run the monitor on the pc that you begin the emerge on ie the computer you are actually installing the software on. VSFTPD seems to use DISTCC consistently. So I would emerge it see if I see any activity and then unmerge it to test distcc with. Also as a sanity check I run netstat -c -A inet on either computer and look for traffic on port 3632 which is what distcc uses. If you are seeing that traffic it is working! Also running top -u distcc is somewhat useful just to make sure the program is actually running. Hope this helps. El
Top
SerfurJ
l33t
l33t
Posts: 824
Joined: Sat Apr 10, 2004 10:25 pm
Location: Texas

  • Quote

Post by SerfurJ » Fri Sep 03, 2004 7:50 pm

i get this error when trying to run distccmon-text the way you said:

Code: Select all

root # DISTCC_DIR=/var/tmp/portage/.distcc distccmon-text 1
distccmon-text[26968] (dcc_mkdir) ERROR: mkdir /var/tmp/portage/.distcc/state failed: No such file or directory
Top
Post Reply

8 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic