I have configured distcc in /etc/make.conf CC=distcc cc CXX=distcc c++ MAKE_JOBS_NUMBER=6 because kernel does not build with distcc I have in /etc/src.conf CC=cc CXX=c++ This works as expected, but it fails during rescue build on statement: make -f rescue.mk exe which ignores /etc/src.conf and fails build. (cd /usr/src/rescue/rescue/../../usr.bin/id && make -DRESCUE CRUNCH_CFLAGS=-DRESCUE DIRPRFX=rescue/rescue/id/ depend && make -DRESCUE CRUNCH_CFLAGS=-DRESCUE DIRPRFX=rescue/rescue/id/ id.o) `id.o' is up to date. (cd /usr/src/rescue/rescue/../../usr.sbin/chroot && make -DRESCUE CRUNCH_CFLAGS=-DRESCUE DIRPRFX=rescue/rescue/chroot/ depend && make -DRESCUE CRUNCH_CFLAGS=-DRESCUE DIRPRFX=rescue/rescue/chroot/ chroot.o) `chroot.o' is up to date. (cd /usr/src/rescue/rescue/../../usr.sbin/chown && make -DRESCUE CRUNCH_CFLAGS=-DRESCUE DIRPRFX=rescue/rescue/chown/ depend && make -DRESCUE CRUNCH_CFLAGS=-DRESCUE DIRPRFX=rescue/rescue/chown/ chown.o) `chown.o' is up to date. MAKEOBJDIRPREFIX=/usr/obj/usr/src/rescue/rescue make -f rescue.mk exe distcc cc -O2 -pipe -c rescue.c make[5]: exec(distcc) failed (No such file or directory) *** Error code 1 Stop. make[5]: stopped in /usr/obj/usr/src/rescue/rescue *** Error code 1
For bugs matching the following conditions: - Status == In Progress - Assignee == "bugs@FreeBSD.org" - Last Modified Year <= 2017 Do - Set Status to "Open"
The current (present) method for ccache / distcc for base is documented in man src.conf: WITH_CCACHE_BUILD Set to use ccache(1) for the build. No configuration is required except to install the devel/ccache package. When using with distcc(1), set CCACHE_PREFIX=/usr/local/bin/distcc. The default cache directory of $HOME/.ccache will be used, which can be overridden by setting CCACHE_DIR. The CCACHE_COMPILERCHECK option defaults to content when using the in-tree bootstrap compiler, and mtime when using an external compiler. The CCACHE_CPP2 option is used for Clang but not GCC. Sharing a cache between multiple work directories requires using a layout similar to /some/prefix/src /some/prefix/obj and an environment such as: CCACHE_BASEDIR='${SRCTOP:H}' MAKEOBJDIRPREFIX='${SRCTOP:H}/obj' See ccache(1) for more configuration options. If this issue is still reproducible, please re-open with additional information