Re: [PATCH] kbuild: work around distcc/icecc madness
From: Peter Zijlstra
Date: Fri Mar 20 2009 - 15:16:36 EST
On Fri, 2009-03-20 at 17:00 +0100, Thomas Gleixner wrote:
> On Fri, 20 Mar 2009, Peter Zijlstra wrote:
> > Yes, this makes it mostly work again... however,
> >
> > On -linus I can do:
> >
> > # cat distmake
> >
> > #!/bin/bash
> >
> > ARCH=$1; shift
> >
> > export LD="nice -n19 ${ARCH}-linux-ld"
> > export AS="distcc ${ARCH}-linux-as"
> > export CC="distcc ${ARCH}-linux-gcc"
> >
> > make LD="$LD" AS="$AS" CC="$CC" -j $DISTCC_SLOTS "$@"
> >
> > # distmake x86_64 bzImage
> >
> > to build the tree, and then use:
> >
> > # make install
> >
> > to install the resulting image. Note how the second make will use the
> > system gcc and not the distcc with cross arch toolchain.
> >
> > This will still start a full rebuild on -tip. When I change my script to
> > use distmake x86_64 install, things work again after this patch.
>
> Changing from distcc to gcc will start a full rebuild on linus tree as
> well.
I just tried:
root@twins:/mnt/build/linux-2.6# /mnt/md0/cross/bin/x86_64-linux-gcc --version
x86_64-linux-gcc (GCC) 4.3.1 20080510 (prerelease)
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
root@twins:/mnt/build/linux-2.6# gcc --version
gcc (Ubuntu 4.3.2-1ubuntu12) 4.3.2
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
The build with the distcc x86_64-linux-gcc compiler and the install
using the host compiler works just fine on Linus' tree.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/