You must do a make -j8 CC=distcc install, too. I get around most of these issues using a wrapper script I call 'distmake'. I've attached it for people's general use.

To install the modules, you must also do a make -j8 CC=distcc modules_install before the regular install. You should, in general, compile as a regular user and then install as root, possibly using sudo. 'distmake' recognizes that you are root and does not attempt to distribute the compile to other machines (most people, I hope, don't do distributed compiling as root).


distmake usage:

0. - Modify configuration variables at the top: @machines
- Make sure you can run distcc as normally installed
- you will need fping, or define haveFPING=0 at the top of the file
- I strongly recommend using ccache - saves a bunch of preprocessing time
- Place the two attached scripts somewhere in your path on each machine.

1. distmake menuconfig
2. distmake
3. sudo distmake modules_install
4. sudo distmake install

This should compile, install the kernel and setup grub all nice and distributed
There are options to use different compilers and ssh too.

nik


Attachment: distmake
Description: Binary data

Attachment: setupdistcc
Description: Binary data


On Mar 17, 2005, at 5:11 AM, Junfeng Yang wrote:

Hi,

I just installed distcc and run into a problem when compiling linux kernel
2.6.11. I first did a make -j8 CC=distcc. When it finished, I tried to
install the kernel using make install. However, this make install didn't
work as I expected. Instead, it triggered a recompilation of the entire
kernel once again. Does linux kernel Make file check for which compiler
it uses to generate the obj files?

Thanks,
-Junfeng

__
distcc mailing list http://distcc.samba.org/
To unsubscribe or change options:
https://lists.samba.org/mailman/listinfo/distcc
__ 
distcc mailing list            http://distcc.samba.org/
To unsubscribe or change options: 
https://lists.samba.org/mailman/listinfo/distcc

Reply via email to