[pacman-dev] recommended usage of distcc/ccache
our wiki page is old. this is how i usesd distcc with makepkg from pacman2.x so i could switch using it with or without ccache: export MAKEFLAGS="-j6" export USE_FAKEROOT="y" export DISTCC="y" export DISTCC_HOSTS="localhost/4 192.168.0.25/2" # with ccache export CCACHE_PREFIX="distcc" export CC="ccache gcc" export CXX="ccache g++" # without ccache #unset CCACHE_PREFIX #export CC="distcc gcc" #export CXX="distcc g++" from the /usr/bin/makepkg script it should work even without that additional exports. but it seems to not work without using only that now with makepkg3: MAKEFLAGS="-j4" BUILDENV=(fakeroot distcc color ccache) DISTCC_HOSTS="localhost/2 192.168.0.6/2" also JGC pointed us to not use the export commands for ccache: http://bugs.archlinux.org/task/6957?histring=ccache Can you please tell us what it the recommended best working config for both options? and maybe please update both wiki pages for ccache and distcc. Thanks Andy
On 4/24/07, Andreas Radke <a.radke@arcor.de> wrote:
our wiki page is old. this is how i usesd distcc with makepkg from pacman2.x so i could switch using it with or without ccache:
export MAKEFLAGS="-j6" export USE_FAKEROOT="y" export DISTCC="y" export DISTCC_HOSTS="localhost/4 192.168.0.25/2"
# with ccache export CCACHE_PREFIX="distcc" export CC="ccache gcc" export CXX="ccache g++"
# without ccache #unset CCACHE_PREFIX #export CC="distcc gcc" #export CXX="distcc g++"
from the /usr/bin/makepkg script it should work even without that additional exports. but it seems to not work without using only that now with makepkg3:
MAKEFLAGS="-j4" BUILDENV=(fakeroot distcc color ccache) DISTCC_HOSTS="localhost/2 192.168.0.6/2"
also JGC pointed us to not use the export commands for ccache: http://bugs.archlinux.org/task/6957?histring=ccache
Can you please tell us what it the recommended best working config for both options? and maybe please update both wiki pages for ccache and distcc.
makepkg 3 has built in support for ccache. It can be disabled by packages that do not cooperate with it by placing !ccache in the options array (or the deprecated noccache). -Dan
Andreas Radke wrote:
# with ccache export CCACHE_PREFIX="distcc" export CC="ccache gcc" export CXX="ccache g++"
Never do it that way! If you compile a kernel for example you expect everybody to have ccache installed. Rather modify PATH to have /usr/lib/ccache/bin before /usr/bin. The symlinks in ccache are made to work around this kind of problem. Cheers, -Y
Am Tue, 24 Apr 2007 16:47:53 -0400 schrieb "Dan McGee" <dpmcgee@gmail.com>:
makepkg 3 has built in support for ccache. It can be disabled by packages that do not cooperate with it by placing !ccache in the options array (or the deprecated noccache).
ccache works well with makepkg3. but i couldn't get distcc to work again. any hints? Andy
having BUILDENV=(fakeroot distcc color ccache) and DISTCC_HOSTS="localhost/2 192.168.0.90/2" i still get this: distcc[25671] (dcc_get_hostlist) Warning: no hostlist is set; can't distribute work distcc[25671] (dcc_build_somewhere) Warning: failed to distribute, running locally instead AndyRTR
Am Tue, 15 May 2007 23:55:27 +0200 schrieb Andreas Radke <a.radke@arcor.de>:
having
BUILDENV=(fakeroot distcc color ccache) and DISTCC_HOSTS="localhost/2 192.168.0.90/2"
i still get this:
distcc[25671] (dcc_get_hostlist) Warning: no hostlist is set; can't distribute work distcc[25671] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
AndyRTR
_______________________________________________ pacman-dev mailing list pacman-dev@archlinux.org http://archlinux.org/mailman/listinfo/pacman-dev
ok, DISTCC_HOSTS is simply not exported. also MAKEFLAGS and maybe more. can you check again why you have removed all the "export" in front of the variables in /etc/makepkg.conf? Andy
participants (3)
-
Alexander Baldeck
-
Andreas Radke
-
Dan McGee