Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#5093 - distcc does not work when compiling kernel26 ABS package
Attached to Project:
Arch Linux
Opened by Casey McGinty (cmcginty) - Saturday, 22 July 2006, 22:44 GMT
Last edited by Roman Kyrylych (Romashka) - Wednesday, 10 January 2007, 01:27 GMT
Opened by Casey McGinty (cmcginty) - Saturday, 22 July 2006, 22:44 GMT
Last edited by Roman Kyrylych (Romashka) - Wednesday, 10 January 2007, 01:27 GMT
|
DetailsThe latest kernel26 ABS package can not take advantage of distc compiling. The reason for this is that the kernel Makefile will redefine $CC. The only way to force a user specified CC is to change the 'make' line the PKGBUILD file.
the change should be from: make {target} to: make CC=$CC {target} This will force make to use the environment variable $CC |
This task depends upon
====================================================================
#-- DistCC: a distributed C/C++/ObjC compiler (modify MAKEFLAGS too)
export DISTCC="y"
#-- A space-delimited list of hosts running in the DistCC cluster
export DISTCC_HOSTS="192.168.3.7"
====================================================================
/usr/bin/makepkg does this on line 623:
====================================================================
export PATH=/usr/lib/distcc/bin:$PATH
====================================================================
which makes the link on distcc called gcc the first available gcc binary. this works perfectly.
anyway, if you override the CC in the kernel's Makefile (like: distcc gcc) you will break building modules for everyone who does not have distcc installed.
The export path does not look correct? The arch distcc package does not create /usr/lib/distcc/bin directory.
[ -d /usr/lib/distcc/bin ] && export PATH=/usr/lib/distcc/bin:$PATH
The arch distcc package installs stuff into /usr/bin
So, this line doesn't hurt at all, but it doesn't do anything useful either from the looks of things.
attached patch should help.