Jenkins build is back to normal : FreeBSD_HEAD #837

2016-10-25 Thread jenkins-admin
https://jenkins.FreeBSD.org/job/FreeBSD_HEAD/837/
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


stable/11 -r307797 on BPi-M3 (cortex-a7): xgcc's cc1 during lang/gcc6 build gets SIGSYS failures (/usr/ports -r424540)

2016-10-25 Thread Mark Millard
[I'll be submitting some of the below information to bugzilla.]

While trying to build lang/gcc6 on a BPI-M3 (Cortex-A7, ALLWINNER) I got "xgcc: 
internal compiler error: Bad system call (program cc1)", which means a SIGSYS 
(signal 12) resulted.

[I will note that I'v never seen this issue (so far) on the rpi2: This may be 
KERNCONF=ALLWINNER specific. But I've not yet updated to -r307797 on the rpi2. 
The BPI-M3 context is new for me; the rpi2 I've been using for a long time.]

This was under/on:

root@bananapi-m3:/usr/ports # uname -apKU
FreeBSD bananapi-m3 11.0-STABLE FreeBSD 11.0-STABLE #0 r307797M: Mon Oct 24 
00:41:16 PDT 2016 
markmi@FreeBSDx64:/usr/local/src/crochet/work/obj/arm.armv6/usr/src/sys/ALLWINNER
  arm armv6 1100505 1100505

[Note this was cross-built and then a matching svnlite co was done on the 
BPi-M3. So the source timestamps on the BPi-M3 are newer than the times from 
the cross build.]

root@bananapi-m3:/usr/ports # svnlite info /usr/ports/ | grep "Re[lv]"
Relative URL: ^/head
Revision: 424540
Last Changed Rev: 424540

dmesg | tail shows:

pid 29581 (cc1), uid 0: exited on signal 12 (core dumped)
pid 29613 (cc1), uid 0: exited on signal 12 (core dumped)
pid 29622 (cc1), uid 0: exited on signal 12 (core dumped)
pid 29651 (cc1), uid 0: exited on signal 12 (core dumped)
pid 29660 (cc1), uid 0: exited on signal 12 (core dumped)
pid 29798 (cc1), uid 0: exited on signal 12 (core dumped)
pid 30422 (cc1), uid 0: exited on signal 12 (core dumped)
pid 30426 (cc1), uid 0: exited on signal 12 (core dumped)
pid 30428 (cc1), uid 0: exited on signal 12 (core dumped)
pid 30431 (cc1), uid 0: exited on signal 12 (core dumped)

(All the lang/gcc6 prerequisites built okay on the BPi-M3.)

Unfortunately direct execution of the cc1 command on the libgcc2.i from a use 
of -save-temps does not fail. For some reason the failure is only when xgcc 
causes the cc1 command execution.

Also unfortunately truss gets a segmentation fault of its own trying the handle 
watching the SIGSYS related activity. (A truss bugzilla report has been made.) 
Thus the following tail of the truss output for leading up to the SIGSYS does 
not cover the SIGSYS related activity itself:

root@bananapi-m3:/usr/obj/portswork/usr/ports/lang/gcc6/work/.build/armv6-portbld-freebsd11.0/libgcc
 # tail truss.log
31183 100086: close(3)   = 0 (0x0)
31183 100086: 
openat(AT_FDCWD,"/usr/obj/portswork/usr/ports/lang/gcc6/work/gcc-6.2.0/libgcc/longlong.h",O_NOCTTY,00)
 ERR#2 'No such file or directory'
31183 100086: openat(AT_FDCWD,"./longlong.h",O_NOCTTY,00) ERR#2 'No such file 
or directory'
31183 100086: openat(AT_FDCWD,"../.././gcc/longlong.h",O_NOCTTY,00) ERR#2 'No 
such file or directory'
31183 100086: 
openat(AT_FDCWD,"/usr/obj/portswork/usr/ports/lang/gcc6/work/gcc-6.2.0/libgcc/../gcc/longlong.h",O_NOCTTY,00)
 ERR#2 'No such file or directory'
31183 100086: 
openat(AT_FDCWD,"/usr/obj/portswork/usr/ports/lang/gcc6/work/gcc-6.2.0/libgcc/../include/longlong.h",O_NOCTTY,00)
 = 3 (0x3)
31183 100086: fstat(3,{ mode=-rw-r--r-- ,inode=573594,size=61185,blksize=32768 
}) = 0 (0x0)
31183 100086: read(3,"/* longlong.h -- definitions for"...,61185) = 61185 
(0xef01)
31183 100086: close(3)   = 0 (0x0)
31183 100086: 
mmap(0x0,16384,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,16384,0x1)

Via using gdb on truss [with truss running xgcc and xgcc in turn running its 
cc1 instance]:

root@bananapi-m3:/usr/obj/portswork/usr/ports/lang/gcc6/work/.build/armv6-portbld-freebsd11.0/libgcc
 # gdb truss
. . . [the below is in enter_syscall] . . .
380 t->cs.name = sysdecode_syscallname(t->proc->abi->abi, 
t->cs.number);
381 if (t->cs.name == NULL)
(gdb) 
382 fprintf(info->outfile, "-- UNKNOWN %s SYSCALL %d --\n",
383 t->proc->abi->type, t->cs.number);
384 
385 sc = get_syscall(t->cs.name, narg);
386 t->cs.nargs = sc->nargs;
387 assert(sc->nargs <= nitems(t->cs.s_args));
388 
389 t->cs.sc = sc;

(t->cs.name == NULL after line 380). . .

Looking at the two things that the fprintf on lines 382 and 383 would report:

(gdb) print t->proc->abi->type
$4 = 0x10166 "FreeBSD ELF32"

(gdb) print t->cs.number
$5 = 580828064

FYI: 580828064 = 0x229EBBA0

(sc == NULL results from line 385 so sc->nargs on line 386 gets a SIGSEGV.)

Just for completness:

(gdb) print *t
$2 = {entries = {le_next = 0x0, le_prev = 0x20617070}, proc = 0x20617060, tid = 
100150, in_syscall = 1, cs = {sc = 0x0, name = 0x0, number = 580828064, args = 
0x2061b0c0, nargs = 0, 
   s_args = 0x2061b0ec}, before = {tv_sec = 1477418265, tv_nsec = 492342263}, 
after = {tv_sec = 1477418265, tv_nsec = 492496630}}

(gdb) print sc
$3 = (struct syscall *) 0x0



Supporting details follow. . .

The specific error reports are:

xgcc: internal compiler error: Bad system call (program cc1)
Please submit a full bug report,
with preprocessed 

FreeBSD_HEAD_i386 - Build #4160 - Fixed

2016-10-25 Thread jenkins-admin
FreeBSD_HEAD_i386 - Build #4160 - Fixed:

Build information: https://jenkins.FreeBSD.org/job/FreeBSD_HEAD_i386/4160/
Full change log: https://jenkins.FreeBSD.org/job/FreeBSD_HEAD_i386/4160/changes
Full build log: https://jenkins.FreeBSD.org/job/FreeBSD_HEAD_i386/4160/console

Change summaries:

307951 by imp:
Fix two backwards tests.

CID: 1365227, 1365228

307950 by imp:
Add it to the right place

307949 by imp:
Add missing file

307948 by jhb:
Use binary and (&) instead of logical to extract the mask of a capability.

CID:1365227
Submitted by:   cem

307947 by br:
Change fs image name so it will not be regenerated (we
have both big and little-endian images in tree).
Also we don't known the endianness of the platform the
image was generated on.

Sponsored by:   DARPA, AFRL
Sponsored by:   HEIF5

307946 by cem:
uhso(4): Fix a null pointer dereference

The directly following m_defrag() call can wait, so there is no reason this
call can't as well.

Reported by:Coverity
CID:1353551
Sponsored by:   Dell EMC Isilon

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: [RFC] remove GNU rcs from FreeBSD 12

2016-10-25 Thread Eivind Nicolay Evensen
On Sun, Sep 11, 2016 at 03:38:04PM +0200, Baptiste Daroussin wrote:
> hi,
> 
> For long we are planning to remove GNU rcs from base, after a failed attempt
> before FreeBSD 10.0. Let see where we are to be able to remove it from FreeBSD
> 12.

Whatever the outcome may be and for whatever my opinion is worth, I hope
rcs will stay in base. I don't care about the licensing. I don't
care if a switch to openrcs happens either, as long as it works.

For years, one has been able to rely upon this operating system having
certain pieces of software available. Losing that makes it a worse choice
than before.

I've already had to readd cvs to my freebsd tree since that was removed,
but if it keeps getting worse and worse and there's soon a
freebsd kernel and some random bits of freebsd userland available
through ports, there's not much reason to keep using it as an operating
system, because then it is not an operating system anymore, rather an
emulation of another "system" built around that concept.



Eivind N. E.
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Build failed in Jenkins: FreeBSD_HEAD #836

2016-10-25 Thread jenkins-admin
https://jenkins.FreeBSD.org/job/FreeBSD_HEAD/836/--
[...truncated 10327 lines...]
--- cleanobj ---
--- h_strncpy.cleandir ---
(cd /builds/workspace/FreeBSD_HEAD/src/lib/libc/tests/ssp &&  
DEPENDFILE=.depend.h_strncpy  NO_SUBDIR=1 
/builds/workspace/FreeBSD_HEAD/obj/builds/workspace/FreeBSD_HEAD/src/make.amd64/bmake
 -f Makefile _RECURSING_PROGS=t  PROG=h_strncpy  cleandir)
--- cleandir_subdir_sbin ---
--- cleanobj ---
--- cleandir_subdir_share ---
--- cleandepend ---
rm -f .depend .depend.*
--- cleandir_subdir_lib ---
--- cleandir_subdir_lib/libc/tests/locale ---
--- clean ---
rm -f  mbrtowc_test mbrtowc_test.full mbrtowc_test.debug t_mbrtowc.o
--- cleandir_subdir_share ---
--- cleanobj ---
--- cleandir_subdir_lib ---
--- cleandepend ---
rm -f .depend.mbrtowc_test .depend.mbrtowc_test.* GPATH GRTAGS GSYMS GTAGS
--- cleandir_subdir_lib/libbsdstat ---
===> lib/libbsdstat (cleandir)
--- cleandir_subdir_lib/libc ---
--- cleanobj ---
--- cleandir_subdir_share ---
--- cleandir_subdir_share/doc/pjdfstest ---
===> share/doc/pjdfstest (cleandir)
--- cleandir_subdir_lib ---
--- mbstowcs_test.cleandir ---
(cd /builds/workspace/FreeBSD_HEAD/src/lib/libc/tests/locale &&  
DEPENDFILE=.depend.mbstowcs_test  NO_SUBDIR=1 
/builds/workspace/FreeBSD_HEAD/obj/builds/workspace/FreeBSD_HEAD/src/make.amd64/bmake
 -f Makefile _RECURSING_PROGS=t  PROG=mbstowcs_test  cleandir)
--- cleandir_subdir_lib/libc/tests/ssp ---
--- clean ---
rm -f  h_strncpy h_strncpy.full h_strncpy.debug h_strncpy.o
--- cleandepend ---
rm -f .depend.h_strncpy .depend.h_strncpy.* GPATH GRTAGS GSYMS GTAGS
--- cleanobj ---
--- h_vsnprintf.cleandir ---
(cd /builds/workspace/FreeBSD_HEAD/src/lib/libc/tests/ssp &&  
DEPENDFILE=.depend.h_vsnprintf  NO_SUBDIR=1 
/builds/workspace/FreeBSD_HEAD/obj/builds/workspace/FreeBSD_HEAD/src/make.amd64/bmake
 -f Makefile _RECURSING_PROGS=t  PROG=h_vsnprintf  cleandir)
--- cleandir_subdir_lib/libbsdstat ---
--- cleanobj ---
--- cleandir_subdir_share ---
--- cleanobj ---
--- cleandir_subdir_lib ---
--- cleandir_subdir_lib/libc ---
--- h_vsprintf.cleandir ---
(cd /builds/workspace/FreeBSD_HEAD/src/lib/libc/tests/ssp &&  
DEPENDFILE=.depend.h_vsprintf  NO_SUBDIR=1 
/builds/workspace/FreeBSD_HEAD/obj/builds/workspace/FreeBSD_HEAD/src/make.amd64/bmake
 -f Makefile _RECURSING_PROGS=t  PROG=h_vsprintf  cleandir)
--- cleandir_subdir_lib/libc/tests/locale ---
--- clean ---
--- cleandir_subdir_share ---
--- cleandir_subdir_share/doc/papers ---
===> share/doc/papers (cleandir)
--- cleandir_subdir_lib ---
rm -f  mbstowcs_test mbstowcs_test.full mbstowcs_test.debug t_mbstowcs.o
--- cleandepend ---
rm -f .depend.mbstowcs_test .depend.mbstowcs_test.* GPATH GRTAGS GSYMS GTAGS
--- cleanobj ---
--- mbsnrtowcs_test.cleandir ---
(cd /builds/workspace/FreeBSD_HEAD/src/lib/libc/tests/locale &&  
DEPENDFILE=.depend.mbsnrtowcs_test  NO_SUBDIR=1 
/builds/workspace/FreeBSD_HEAD/obj/builds/workspace/FreeBSD_HEAD/src/make.amd64/bmake
 -f Makefile _RECURSING_PROGS=t  PROG=mbsnrtowcs_test  cleandir)
--- cleandir_subdir_lib/libc/tests/ssp ---
--- h_vsnprintf.cleandir ---
--- clean ---
rm -f  h_vsnprintf h_vsnprintf.full h_vsnprintf.debug h_vsnprintf.o
--- cleandepend ---
rm -f .depend.h_vsnprintf .depend.h_vsnprintf.* GPATH GRTAGS GSYMS GTAGS
--- cleanobj ---
--- cleandir_subdir_share ---
--- cleandir_subdir_share/doc/papers/beyond4.3 ---
===> share/doc/papers/beyond4.3 (cleandir)
--- cleandir_subdir_lib ---
--- h_vsprintf.cleandir ---
--- clean ---
rm -f  h_vsprintf h_vsprintf.full h_vsprintf.debug h_vsprintf.o
--- cleandir_subdir_share ---
--- cleandir_subdir_share/dtrace ---
===> share/dtrace (cleandir)
--- cleandir_subdir_lib ---
--- cleandepend ---
rm -f .depend.h_vsprintf .depend.h_vsprintf.* GPATH GRTAGS GSYMS GTAGS
--- cleandir_subdir_share ---
--- cleandir_subdir_share/doc ---
--- cleanobj ---
--- cleandir_subdir_lib ---
--- cleanobj ---
--- cleanobj ---
--- cleandir_subdir_share ---
--- cleandir_subdir_share/doc/papers/bufbio ---
===> share/doc/papers/bufbio (cleandir)
--- cleandir_subdir_lib ---
--- cleandir_subdir_lib/libc/tests/locale ---
--- clean ---
--- cleandir_subdir_sys ---
===> sys (cleandir)
--- cleandir_subdir_lib ---
rm -f  mbsnrtowcs_test mbsnrtowcs_test.full mbsnrtowcs_test.debug t_mbsnrtowcs.o
--- cleandepend ---
rm -f .depend.mbsnrtowcs_test .depend.mbsnrtowcs_test.* GPATH GRTAGS GSYMS GTAGS
--- cleandir_subdir_share ---
--- cleanobj ---
--- cleandir_subdir_lib ---
--- cleanobj ---
--- cleandir_subdir_share ---
--- cleandir_subdir_share/dtrace ---
--- cleanobj ---
--- cleandir_subdir_lib ---
--- mbtowc_test.cleandir ---
(cd /builds/workspace/FreeBSD_HEAD/src/lib/libc/tests/locale &&  
DEPENDFILE=.depend.mbtowc_test  NO_SUBDIR=1 
/builds/workspace/FreeBSD_HEAD/obj/builds/workspace/FreeBSD_HEAD/src/make.amd64/bmake
 -f Makefile _RECURSING_PROGS=t  PROG=mbtowc_test  cleandir)
--- cleandir_subdir_share ---
--- cleandir_subdir_share/doc ---
--- cleandir_subdir_share/doc/papers/contents ---
===> 

stable/11 -r307797 on BPi-M3 (cortex-a7): truss gets segmentation fault for handling unknown system call

2016-10-25 Thread Mark Millard
[The following has been reported in: 
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213778 .]

In trying to build lang/gcc6 xgcc's cc1 got some SIGSYS examples. In trying to 
track things down I ran into truss getting a SIGSEGV when it tries to handle 
the situation. . .

In truss's enter_syscall there is (from a live gdb on truss, after the 
segmentation fault):

380 t->cs.name = sysdecode_syscallname(t->proc->abi->abi, 
t->cs.number);
381 if (t->cs.name == NULL)
(gdb) 
382 fprintf(info->outfile, "-- UNKNOWN %s SYSCALL %d --\n",
383 t->proc->abi->type, t->cs.number);
384 
385 sc = get_syscall(t->cs.name, narg);
386 t->cs.nargs = sc->nargs;
387 assert(sc->nargs <= nitems(t->cs.s_args));
388 
389 t->cs.sc = sc;

(gdb) print *t
$2 = {entries = {le_next = 0x0, le_prev = 0x20617070}, proc = 0x20617060, tid = 
100150, in_syscall = 1, cs = {sc = 0x0, name = 0x0, number = 580828064, args = 
0x2061b0c0, nargs = 0, 
s_args = 0x2061b0ec}, before = {tv_sec = 1477418265, tv_nsec = 492342263}, 
after = {tv_sec = 1477418265, tv_nsec = 492496630}}

(gdb) print sc
$3 = (struct syscall *) 0x0

So line 386 listed above gets a segmentation fault for sc->nargs when 
t->cs.name is a NULL pointer: sc ends up NULL.

Looking at the two things that the fprintf on lines 382 and 383 would report:

(gdb) print t->proc->abi->type
$4 = 0x10166 "FreeBSD ELF32"

(gdb) print t->cs.number
$5 = 580828064

(gdb) print narg
$6 = 0

(that last is for context for the get_syscall arguments).

FYI: 580828064 = 0x229EBBA0


Context:

root@bananapi-m3:/usr/ports # uname -apKU
FreeBSD bananapi-m3 11.0-STABLE FreeBSD 11.0-STABLE #0 r307797M: Mon Oct 24 
00:41:16 PDT 2016 
markmi@FreeBSDx64:/usr/local/src/crochet/work/obj/arm.armv6/usr/src/sys/ALLWINNER
  arm armv6 1100505 1100505



===
Mark Millard
markmi at dsl-only.net

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


stable/11 -r307797 on BPi-M3 (cortex-a7): truss gets segmentation fault for handling unknown system call

2016-10-25 Thread Mark Millard
[The following has been reported in: 
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213778 .]

In trying to build lang/gcc6 xgcc's cc1 got some SIGSYS examples. In trying to 
track things down I ran into truss getting a SIGSEGV when it tries to handle 
the situation. . .

In truss's enter_syscall there is (from a live gdb on truss, after the 
segmentation fault):

380 t->cs.name = sysdecode_syscallname(t->proc->abi->abi, 
t->cs.number);
381 if (t->cs.name == NULL)
(gdb) 
382 fprintf(info->outfile, "-- UNKNOWN %s SYSCALL %d --\n",
383 t->proc->abi->type, t->cs.number);
384 
385 sc = get_syscall(t->cs.name, narg);
386 t->cs.nargs = sc->nargs;
387 assert(sc->nargs <= nitems(t->cs.s_args));
388 
389 t->cs.sc = sc;

(gdb) print *t
$2 = {entries = {le_next = 0x0, le_prev = 0x20617070}, proc = 0x20617060, tid = 
100150, in_syscall = 1, cs = {sc = 0x0, name = 0x0, number = 580828064, args = 
0x2061b0c0, nargs = 0, 
s_args = 0x2061b0ec}, before = {tv_sec = 1477418265, tv_nsec = 492342263}, 
after = {tv_sec = 1477418265, tv_nsec = 492496630}}

(gdb) print sc
$3 = (struct syscall *) 0x0

So line 386 listed above gets a segmentation fault for sc->nargs when 
t->cs.name is a NULL pointer: sc ends up NULL.

Looking at the two things that the fprintf on lines 382 and 383 would report:

(gdb) print t->proc->abi->type
$4 = 0x10166 "FreeBSD ELF32"

(gdb) print t->cs.number
$5 = 580828064

(gdb) print narg
$6 = 0

(that last is for context for the get_syscall arguments).

FYI: 580828064 = 0x229EBBA0


Context:

root@bananapi-m3:/usr/ports # uname -apKU
FreeBSD bananapi-m3 11.0-STABLE FreeBSD 11.0-STABLE #0 r307797M: Mon Oct 24 
00:41:16 PDT 2016 
markmi@FreeBSDx64:/usr/local/src/crochet/work/obj/arm.armv6/usr/src/sys/ALLWINNER
  arm armv6 1100505 1100505



===
Mark Millard
markmi at dsl-only.net

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


FreeBSD_HEAD_i386 - Build #4159 - Failure

2016-10-25 Thread jenkins-admin
FreeBSD_HEAD_i386 - Build #4159 - Failure:

Build information: https://jenkins.FreeBSD.org/job/FreeBSD_HEAD_i386/4159/
Full change log: https://jenkins.FreeBSD.org/job/FreeBSD_HEAD_i386/4159/changes
Full build log: https://jenkins.FreeBSD.org/job/FreeBSD_HEAD_i386/4159/console

Change summaries:

307944 by andrew:
Add MULTIDELAY support to the am335x dmtimer. This will be useful for
testing Cortex-A8 support in GENERIC.

Sponsored by:   ABT Systems Ltd

307943 by andrew:
Remove the need for the delay to be zero when MULTIDELAY is undefined,
it may be useful to only enable this in some configs.

Sponsored by:   ABT Systems Ltd

307942 by imp:
Really make WITHOUT_FORTH (MK_FORTH==no) work. The recent inclusion of
FICL definitions not in ficl/ficl32 files broke this generally. This
makes that stuff conditional on BOOT_FORTH. Also, move definitions
related to the architecture (FICL_CPUARCH and friends) into
Makefile.ficl that all parts of the tree that include files with ficl
need to include (but only if MK_FORTH == yes). In addition, had to fix
library ordering issue with LIBSTAND to keep it last. Without boot
forth, there's no references to memset to bring in memset.o from
libstand.a to satisfy libgeliboot.a's use of it. Listing libstand last
solves this issue (and it's the proper place for libstand to boot).

307937 by glebius:
Fix unchecked array reference in the VGA device emulation code.

Submitted by:   Ilja Van Sprundel 
Patch by:   tychon
Security:   SA-16:32

307936 by glebius:
The argument validation in r296956 was not enough to close all possible
overflows in sysarch(2).

Submitted by:   Kun Yang 
Patch by:   kib
Security:   SA-16:15

307928 by andrew:
Remove armadaxp_idcache_wbinv_all, it's a static function in the ELF
trampoline and not used outside this.

Sponsored by:   ABT Systems Ltd

307927 by marcel:
Be more precise when including headers so that we're less likely to
depend on namespace pollution and as such become more portable. This
means including headers like  or , but also
making sure we include system/host headers before local headers.

While here: define ENOATTR as ENOMSG in mtree.c. There is no ENOATTR
on Linux.

With this, makefs is ready for compilation on macOS and Linux.

307926 by glebius:
Check m_getcl() return value.

CID:611376

307925 by andrew:
Remove arm11x6_setttb and armv7_setttb as they are unused. While here
remove unneeded code from the ARMv7 cpu assembly code.

Sponsored by:   ABT Systems Ltd

307923 by marcel:
Allow building makefs(8) from another Makefile (such as one in
a seperate directory hierarchy used to build tools). This boils
down to replacing the use of ${.CURDIR} with either ${SRCDIR}
or ${SRCTOP}. SRCDIR is defined as the directory in which the
Makefile lives that bmake(1) is currently reading. Use SRCTOP
when reaching outside of makefs's directory.



The end of the build log:

[...truncated 7618 lines...]
/usr/obj/usr/src/rescue/rescue/usr/src/usr.sbin/chown created for 
/usr/src/usr.sbin/chown
--- obj_subdir_sbin ---
--- obj_subdir_sbin/ipf/ipresend ---
===> sbin/ipf/ipresend (obj)
--- obj_subdir_rescue ---
--- obj_crunchdir_iscsid ---
cd /usr/src/rescue/rescue/../../usr.sbin/iscsid &&  MK_AUTO_OBJ=no MK_TESTS=no  
UPDATE_DEPENDFILE=no  _RECURSING_CRUNCH=1 
MAKEOBJDIRPREFIX=/usr/obj/usr/src/rescue/rescue 
/usr/obj/usr/src/make.i386/bmake  DIRPRFX=rescue/rescue/iscsid/ -DRESCUE 
CRUNCH_CFLAGS=-DRESCUE MK_AUTO_OBJ=no obj
--- obj_subdir_share ---
--- obj ---
/usr/obj/usr/src/share/doc/psd/05.sysman created for 
/usr/src/share/doc/psd/05.sysman
--- obj_subdir_share/doc/psd/06.Clang ---
===> share/doc/psd/06.Clang (obj)
--- obj ---
/usr/obj/usr/src/share/doc/psd/06.Clang created for 
/usr/src/share/doc/psd/06.Clang
--- obj_subdir_share/doc/psd/12.make ---
===> share/doc/psd/12.make (obj)
--- obj_subdir_lib ---
--- obj ---
/usr/obj/usr/src/lib/libpam/modules/pam_unix created for 
/usr/src/lib/libpam/modules/pam_unix
--- obj_subdir_share ---
--- obj ---
--- obj_subdir_lib ---
--- obj_subdir_lib/libpam/static_libpam ---
===> lib/libpam/static_libpam (obj)
--- obj_subdir_share ---
/usr/obj/usr/src/share/doc/psd/12.make created for 
/usr/src/share/doc/psd/12.make
--- obj_subdir_rescue ---
--- obj ---
--- obj_subdir_share ---
--- obj_subdir_share/doc/psd/15.yacc ---
===> share/doc/psd/15.yacc (obj)
--- obj_subdir_rescue ---
/usr/obj/usr/src/rescue/rescue/usr/src/usr.sbin/iscsid created for 
/usr/src/usr.sbin/iscsid
--- obj_subdir_share ---
--- obj_subdir_share/doc/psd/16.lex ---
===> share/doc/psd/16.lex (obj)
--- obj_subdir_sbin ---
--- obj ---
/usr/obj/usr/src/sbin/ipf/ipresend created for /usr/src/sbin/ipf/ipresend
--- obj_subdir_sbin/ipfw ---
===> sbin/ipfw (obj)
--- obj_subdir_share ---
--- obj_subdir_share/doc/psd/15.yacc ---
--- obj ---
/usr/obj/usr/src/share/doc/psd/15.yacc created for 
/usr/src/share/doc/psd/15.yacc
--- obj_subdir_share/doc/psd/16.lex ---
--- obj ---
--- obj_subdir_sys ---
===> sys (obj)