Odd experience today -- was building a kernel with the standard makefiles
and -j 4, and found the following in buildkernel.log:

...
cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
-fformat-extensions -ansi -g -nostdinc -I-  -I. -I../../.. -I../../../dev
-I../../../contrib/dev/acpica -I../../../contrib/ipfilter -I/usr/include  -D_KERNEL 
-include
opt_global.h -elf  -mpreferred-stack-boundary=2  vers.c
linking kernel.debug
   text    data     bss     dec     hex filename
2899368  282508  348852 3530728  35dfe8 kernel.debug
objcopy --strip-debug kernel.debug kernel
cd ../../../modules ; envMAKEOBJDIRPREFIX=/cboss/freebsd/jail_smpng_commit/src/
sys/i386/compile/GENERIC/modules KMODDIR=/boot/kernel DEBUG="-g"
DEBUG_FLAGS="-g" make obj ;  env
MAKEOBJDIRPREFIX=/cboss/freebsd/jail_smpng_commit/src/sys/i386/compile/GENERIC/modules 
KMODDIR=/boot/kernel DEBUG="-g" DEBUG_FLAGS="-g"
make all
...
cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
-fformat-extensions -ansi -g -nostdinc -I-  -I. -I../../.. -I../../../dev
-I../../../contrib/dev/acpica -I../../../contrib/ipfilter -I/usr/include  -D_KERNEL 
-include
opt_global.h -elf  -mpreferred-stack-boundary=2  vers.c
objcopy --strip-debug kernel.debug kernel
/usr/libexec/elf/objcopy: kernel.debug: File truncated
*** Error code 1

Looks like for some reason the objcopy on kernel.debug got run twice,
possibly due to the -j.  This was run from src/sys/i386/compile/GENERIC as

make -j 4

Robert N M Watson             FreeBSD Core Team, TrustedBSD Project
[EMAIL PROTECTED]      NAI Labs, Safeport Network Services


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to