Subject: distcc cross-compilation
To: None <port-hpcmips@netbsd.org>
From: elijah rutschman <elijahr@gmail.com>
List: port-hpcmips
Date: 10/07/2007 01:23:37
------=_Part_35485_31670261.1191738217818
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hello all,

I've got an x86 Linux box (kedavra) running a distcc daemon which is set up
to use a NetBSD/hpcmips cross-toolchain.
I've got a MobilePro 780 running NetBSD 4.0 RC1 (mumbler).
pkgsrc has been set up on mumbler to use distcc with the following lines in
/etc/mk.conf :

# use distcc to
compile
PKGSRC_COMPILER =       ccache distcc
gcc
DISTCC_HOSTS    =       kedavra localhost

If I cd to /usr/pkgsrc/editors/ed and type make, after the tarball is
downloaded, unzipped, etc., I get:

=> Required installed package distcc-[0-9]*: distcc-2.18.3nb2 found
=> Required installed package distcc-[0-9]*: distcc-2.18.3nb2 found
=> Required installed package ccache-[0-9]*: ccache-2.4 found
=> Required installed package ccache-[0-9]*: ccache-2.4 found
===> Overriding tools for ed-0.2nb1
===> Extracting for ed-0.2nb1
===> Patching for ed-0.2nb1
=> Applying pkgsrc patches for ed-0.2nb1
===> Creating toolchain wrappers for ed-0.2nb1
===> Configuring for ed-0.2nb1
=> Modifying GNU configure scripts to avoid --recheck
=> Replacing config-guess with pkgsrc versions
=> Replacing config-sub with pkgsrc versions
=> Replacing install-sh with pkgsrc version
creating cache ./config.cache
checking whether ln -s works... yes
checking for ranlib... ranlib
checking for a BSD compatible install... /usr/bin/install -c -o root -g
wheel
checking for POSIXized ISC... no
checking for gcc... cc
checking whether we are using GNU C... yes
checking for working const... yes
checking how to run the C preprocessor... cc -E
checking whether cross-compiling... no
checking for ANSI C header files... yes
checking for limits.h... yes
checking for memory.h... yes
checking for string.h... yes
checking for unistd.h... yes
checking for locale.h... yes
checking for setbuffer... yes
checking for sigsetjmp... yes
checking for sigaction... yes
checking for strerror... yes
checking for vprintf... yes
checking for working alloca.h... no
checking for alloca... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h
===> Building for ed-0.2nb1
./config.status
creating Makefile
creating config.h
config.h is unchanged
touch stamp-h
cc -c -I. -I. -DHAVE_CONFIG_H -O2 buf.c
distcc[15260] (dcc_writex) ERROR: failed to write: Broken pipe
distcc[15260] (dcc_writex) ERROR: failed to write: Broken pipe
distcc[15260] Warning: failed to distribute
/usr/pkgsrc/editors/ed/work/.ccache/buf.tmp.mumbler.7114.i to kedavra,
running locally instead


Does anyone have any suggestions why I might be getting this Broken pipe
error?  I know kedavra's distcc daemon is up and running, as I can send jobs
to it locally.


Thanks for your time.

-- 
Elijah Rutschman
http://teamabunai.org/cwolf

------=_Part_35485_31670261.1191738217818
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hello all,<br><br>I&#39;ve got an x86 Linux box (kedavra) running a distcc daemon which is set up to use a NetBSD/hpcmips cross-toolchain.<br>I&#39;ve got a MobilePro 780 running NetBSD 4.0 RC1 (mumbler).<br>pkgsrc has been set up on mumbler to use distcc with the following lines in /etc/mk.conf :
<br><br># use distcc to compile&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>PKGSRC_COMPILER =&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ccache distcc gcc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>DISTCC_HOSTS&nbsp;&nbsp;&nbsp; =&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; kedavra localhost&nbsp;&nbsp; 
<br><br>If I cd to /usr/pkgsrc/editors/ed and type make, after the tarball is downloaded, unzipped, etc., I get:<br><br>=&gt; Required installed package distcc-[0-9]*: distcc-2.18.3nb2 found<br>=&gt; Required installed package distcc-[0-9]*: 
distcc-2.18.3nb2 found<br>=&gt; Required installed package ccache-[0-9]*: ccache-2.4 found<br>=&gt; Required installed package ccache-[0-9]*: ccache-2.4 found<br>===&gt; Overriding tools for ed-0.2nb1<br>===&gt; Extracting for 
ed-0.2nb1<br>===&gt; Patching for ed-0.2nb1<br>=&gt; Applying pkgsrc patches for ed-0.2nb1<br>===&gt; Creating toolchain wrappers for ed-0.2nb1<br>===&gt; Configuring for ed-0.2nb1<br>=&gt; Modifying GNU configure scripts to avoid --recheck
<br>=&gt; Replacing config-guess with pkgsrc versions<br>=&gt; Replacing config-sub with pkgsrc versions<br>=&gt; Replacing install-sh with pkgsrc version<br>creating cache ./config.cache<br>checking whether ln -s works... yes
<br>checking for ranlib... ranlib<br>checking for a BSD compatible install... /usr/bin/install -c -o root -g wheel<br>checking for POSIXized ISC... no<br>checking for gcc... cc<br>checking whether we are using GNU C... yes
<br>checking for working const... yes<br>checking how to run the C preprocessor... cc -E<br>checking whether cross-compiling... no<br>checking for ANSI C header files... yes<br>checking for limits.h... yes<br>checking for 
memory.h... yes<br>checking for string.h... yes<br>checking for unistd.h... yes<br>checking for locale.h... yes<br>checking for setbuffer... yes<br>checking for sigsetjmp... yes<br>checking for sigaction... yes<br>checking for strerror... yes
<br>checking for vprintf... yes<br>checking for working alloca.h... no<br>checking for alloca... yes<br>updating cache ./config.cache<br>creating ./config.status<br>creating Makefile<br>creating config.h<br>===&gt; Building for 
ed-0.2nb1<br>./config.status<br>creating Makefile<br>creating config.h<br>config.h is unchanged<br>touch stamp-h<br>cc -c -I. -I. -DHAVE_CONFIG_H -O2 buf.c<br>distcc[15260] (dcc_writex) ERROR: failed to write: Broken pipe
<br>distcc[15260] (dcc_writex) ERROR: failed to write: Broken pipe<br>distcc[15260] Warning: failed to distribute /usr/pkgsrc/editors/ed/work/.ccache/buf.tmp.mumbler.7114.i to kedavra, running locally instead<br><br><br>
Does anyone have any suggestions why I might be getting this Broken pipe error?&nbsp; I know kedavra&#39;s distcc daemon is up and running, as I can send jobs to it locally.&nbsp; <br><br><br>Thanks for your time.<br>
<br>-- <br>Elijah Rutschman<br><a href="http://teamabunai.org/cwolf" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://teamabunai.org/cwolf</a>

------=_Part_35485_31670261.1191738217818--