From owner-freebsd-current Sun Dec 2 13:40:27 2001 Delivered-To: freebsd-current@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id 9BAB237B416 for ; Sun, 2 Dec 2001 13:40:16 -0800 (PST) Received: from fledge.watson.org (robert@fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.11.6/8.11.5) with SMTP id fB2LYri21617 for ; Sun, 2 Dec 2001 16:34:53 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Sun, 2 Dec 2001 16:34:53 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: freebsd-current@FreeBSD.org Subject: kernel makefile irregularity (kernel.debug: file truncated) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 robert@fledge.watson.org NAI Labs, Safeport Network Services To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message