Arch Linux

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!
Tasklist

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
Task Type Feature Request
Category Kernel
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture not specified
Severity Low
Priority Normal
Reported Version 0.7.2 Gimmick
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The 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

Closed by  Tobias Powalowski (tpowa)
Friday, 09 March 2007, 15:51 GMT
Reason for closing:  Fixed
Comment by Alexander Baldeck (kth5) - Sunday, 23 July 2006, 16:53 GMT
this is actually not 100% the case. if you enable the distcc feature in makepkg.conf like this:

====================================================================
#-- 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.

Comment by Judd Vinet (judd) - Tuesday, 25 July 2006, 22:18 GMT
Re-opened by Casey McGinty:

The export path does not look correct? The arch distcc package does not create /usr/lib/distcc/bin directory.
Comment by Travis Willard (Cerebral) - Sunday, 15 October 2006, 23:51 GMT
Makepkg says:

[ -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.
Comment by Tobias Powalowski (tpowa) - Friday, 09 March 2007, 15:02 GMT
still valid?
Comment by Alexander Baldeck (kth5) - Friday, 09 March 2007, 15:08 GMT
it is still valid. distcc packages needs links to /usr/bin/distcc in /usr/lib/distcc/bin to get it to work without using `distcc gcc` which would hurt! :)

attached patch should help.
Comment by Alexander Baldeck (kth5) - Friday, 09 March 2007, 15:37 GMT
oops... sample taken from ccache, obviously the links are made wrong. see this patch instead.

Loading...