Bug 185851 - [build] buildworld: respect src.conf during 'rescue' tools build
Summary: [build] buildworld: respect src.conf during 'rescue' tools build
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: Unspecified
Hardware: Any Any
: --- Affects Only Me
Assignee: Kubilay Kocak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-17 15:40 UTC by Radim Kolar
Modified: 2021-07-11 03:23 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Radim Kolar 2014-01-17 15:40:00 UTC
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
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2018-05-21 00:00:09 UTC
For bugs matching the following conditions:
- Status == In Progress
- Assignee == "bugs@FreeBSD.org"
- Last Modified Year <= 2017

Do
- Set Status to "Open"
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2018-05-21 00:00:38 UTC
For bugs matching the following conditions:
- Status == In Progress
- Assignee == "bugs@FreeBSD.org"
- Last Modified Year <= 2017

Do
- Set Status to "Open"
Comment 3 Kubilay Kocak freebsd_committer freebsd_triage 2021-07-11 03:23:46 UTC
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