Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22057 - emerge with distcc fails with: ERROR: unknown host
Summary: emerge with distcc fails with: ERROR: unknown host
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Lisa Seelye (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-01 13:01 UTC by Miguel Sousa Filipe
Modified: 2011-10-30 22:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miguel Sousa Filipe 2003-06-01 13:01:04 UTC
distcc is used successefully in the same computer in things like:
time make CC="distcc" -j5 bzImage

but .. emerge ntp 
does not work.. here is the error
distcc[22653] (dcc_open_socket_out) ERROR: unknown host: "DISTCC_HOSTS=127.0.0.1"
distcc[22653] (dcc_build_somewhere) Warning: failed to distribute to
"DISTCC_HOSTS=127.0.0.1", running locally instead

www linux # echo $DISTCC_HOSTS 
DISTCC_HOSTS=127.0.0.1 193.136.164.1 193.136.164.11

www linux # distcc-config --get-hosts
DISTCC_HOSTS=127.0.0.1 193.136.164.1 193.136.164.11

also noticed that if I did make CC=distcc -j5 bzImage the make would fail with
the same errors.. but make CC="distcc" -j5 bzImage runs very nicely.
also, hostnames aren't working, I only got distcc working with numeric IPv4 host
numbers.

I've seen posts in the forums with ppl having these same problems.. please check
this out guys!
Comment 1 Miguel Sousa Filipe 2003-06-01 13:03:03 UTC
www linux # grep DISTCC /etc/make.conf
DISTCC_HOSTS="127.0.0.1 193.136.164.1 193.136.164.11"
www linux # emerge info 
Portage 2.0.48 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4)
=================================================================
System uname: 2.4.20-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 2.26GHz
GENTOO_MIRRORS="ftp://ftp.rnl.ist.utl.pt/gentoo http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss 3dnow apm cups encode gif imlib libg++ mikmod mmx mpeg ncurses nls oggvorbis pdflib png quicktime spell svga truetype xml2 xv gdbm berkdb slang readline tcpd pam libwww ssl perl python -X -gtk -gnome -alsa -xmms -kde -motif -opengl -qt -esd -arts -sdl jpeg -avi crypt zlib mysql -gpm php -java imap ipv6"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-O2 -mcpu=i686 -pipe"
CXXFLAGS=""
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j5"
AUTOCLEAN="yes"
SYNC="rsync://ftp.rnl.ist.utl.pt/gentoo-portage"
FEATURES="sandbox ccache distcc userpriv usersandbox notitles fixpackages"
Comment 2 Zach Welch (RETIRED) gentoo-dev 2003-06-01 19:31:08 UTC
What version of distcc are you using?  Have you tried upgrading to the latest 2.5-r1?  I will be marking that version as stable this week sometime, so please try that to see if these problems are resolved.

Your reported use of 'CC=distcc' also indicates you have probably not read (or have decided to ignore) the Gentoo distcc documentation.  Please view the latest revision on our new development wiki:

http://wiki.dev.gentoo.org/gentoo/moin.cgi/UsingDistcc?action=show

For reference, the original URL mentioned in the ebuild contains mostly the same information, though the wiki is now slightly more up-to-date:

http://cvs.gentoo.org/~zwelch/distcc.html

Try following the suggestions presented there, as well as the linked QuestionsAndAnswers page.  If things remain problematic, please report more of the basic details about your problems, with clear and simple steps to reproduce the problem.  Thank you for using Gentoo.
Comment 3 Lisa Seelye (RETIRED) gentoo-dev 2003-10-04 15:48:01 UTC
try:

   unset $DISTCC_HOSTS
   distcc-config --set-hosts "host1 host2 host3"


The problem is you have DISTCC_HOSTS= in the string of hosts, which clearly
is not a valid host.