On Sunday 03 April 2005 11:35, Stuart Longland wrote: > Andrew de Quincey wrote: > > On Sunday 03 April 2005 03:10, Andrew Gaffney wrote: > >>Andrew de Quincey wrote: > >>>Hi, I hope this is the correct place to send this. > >>> > >>>I have setup distcc in my network. Most of the hosts are i686, but one > >>> of them is x86_64. I wish to distribute tasks to the i686 machines from > >>> the x86_64 machine. This involves installing a cross compiler on the > >>> i686 machines for x86_64 tasks. Crossdev is overkill for this - I don't > >>> actually _need_ glibc and the like on the client machines for a simple > >>> distcc environment. It really adds to the upgrade time when emerge > >>> sync; emerge worlding. > >> > >>crossdev -s1 -t <x86_64 CHOST> > > > > According to the docs, that doesn't compile a c++ compiler: > > > > -s1, --stage1 Build a C compiler (no libc/C++) > > And guess what... no libc... no c++. If you require a C++ compiler, > then might I suggest making a µClibc-based toolchain? µClibc is just a > little smaller than it's GNU cousin, and so shouldn't occupy much space.
I have it running right now with *no* libc and g++. There is no reason to need a libc, apart from the fact that you cannot confiure g++ to build without patching it. I have just distcc compiled kdlibs with this configuration. Have you actually tried the patch? This is precisely what it does - g++ with no libc. The files installed with the patch are in the attached file. I could perhaps trim it more - there is no need for the include files either with distcc.
/etc /etc/env.d /etc/env.d/gcc /etc/env.d/gcc/x86_64-pc-linux-gnu-3.4.3-20050110-hardenednopie /etc/env.d/gcc/x86_64-pc-linux-gnu-3.4.3-20050110-hardenednossp /etc/env.d/gcc/x86_64-pc-linux-gnu-3.4.3-20050110 /etc/env.d/gcc/x86_64-pc-linux-gnu-3.4.3-20050110-hardened /lib /usr /usr/bin /usr/lib /usr/lib/gcc /usr/lib/gcc/x86_64-pc-linux-gnu /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110 /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/32 /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/crtbeginS.o /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/crtbeginT.o /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/vanilla.specs /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/specs /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/install-tools /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/install-tools/gsyslimits.h /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/install-tools/include /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/install-tools/include/mmintrin.h /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/install-tools/include/README /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/install-tools/include/varargs.h /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/install-tools/include/unwind.h /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/install-tools/include/float.h /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/install-tools/include/iso646.h /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/install-tools/include/xmmintrin.h /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/install-tools/include/stdarg.h /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/install-tools/include/stddef.h /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/install-tools/include/pmmintrin.h /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/install-tools/include/emmintrin.h /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/install-tools/include/limits.h /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/install-tools/include/stdbool.h /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/install-tools/mkheaders.conf /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/crtbegin.o /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/hardened.specs /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/hardenednopie.specs /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/include /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/include/mmintrin.h /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/include/README /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/include/varargs.h /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/include/unwind.h /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/include/float.h /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/include/syslimits.h /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/include/iso646.h /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/include/xmmintrin.h /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/include/stdarg.h /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/include/stddef.h /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/include/pmmintrin.h /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/include/emmintrin.h /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/include/limits.h /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/include/stdbool.h /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/hardenednossp.specs /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/crtend.o /usr/x86_64-pc-linux-gnu /usr/x86_64-pc-linux-gnu/lib /usr/x86_64-pc-linux-gnu/lib/x86 -> ../../i686-pc-linux-gnu/lib 1112489024 /usr/x86_64-pc-linux-gnu/gcc-bin /usr/x86_64-pc-linux-gnu/gcc-bin/3.4.3-20050110 /usr/x86_64-pc-linux-gnu/gcc-bin/3.4.3-20050110/x86_64-pc-linux-gnu-gcov /usr/x86_64-pc-linux-gnu/gcc-bin/3.4.3-20050110/x86_64-pc-linux-gnu-c++ /usr/x86_64-pc-linux-gnu/gcc-bin/3.4.3-20050110/x86_64-pc-linux-gnu-g++ /usr/x86_64-pc-linux-gnu/gcc-bin/3.4.3-20050110/x86_64-pc-linux-gnu-cpp /usr/x86_64-pc-linux-gnu/gcc-bin/3.4.3-20050110/x86_64-pc-linux-gnu-gcc /usr/x86_64-pc-linux-gnu/gcc-bin/3.4.3-20050110/x86_64-pc-linux-gnu-gccbug /usr/x86_64-pc-linux-gnu/gcc-bin/3.4.3-20050110/x86_64-pc-linux-gnu-gcc-3.4.3-20050110 -> x86_64-pc-linux-gnu-gcc 1112489024 /usr/share /usr/share/gcc-data /usr/share/gcc-data/x86_64-pc-linux-gnu /usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.3-20050110 /usr/libexec /usr/libexec/gcc /usr/libexec/gcc/x86_64-pc-linux-gnu /usr/libexec/gcc/x86_64-pc-linux-gnu/3.4.3-20050110 /usr/libexec/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/cc1 /usr/libexec/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/install-tools /usr/libexec/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/install-tools/fixincl /usr/libexec/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/install-tools/mkheaders /usr/libexec/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/install-tools/fixinc.sh /usr/libexec/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/collect2 /usr/libexec/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/cc1plus