From owner-freebsd-bugs@FreeBSD.ORG Wed Nov 29 18:10:09 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CF90416A492 for ; Wed, 29 Nov 2006 18:10:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5BEEB43CA7 for ; Wed, 29 Nov 2006 18:10:06 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kATIA9mR055006 for ; Wed, 29 Nov 2006 18:10:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kATIA9T5055005; Wed, 29 Nov 2006 18:10:09 GMT (envelope-from gnats) Resent-Date: Wed, 29 Nov 2006 18:10:09 GMT Resent-Message-Id: <200611291810.kATIA9T5055005@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Dr. Markus Waldeck" Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CA8E616A4D2 for ; Wed, 29 Nov 2006 18:01:02 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id B81D543C9D for ; Wed, 29 Nov 2006 18:00:59 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id kATI12EO023055 for ; Wed, 29 Nov 2006 18:01:02 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id kATI12F5023054; Wed, 29 Nov 2006 18:01:02 GMT (envelope-from nobody) Message-Id: <200611291801.kATI12F5023054@www.freebsd.org> Date: Wed, 29 Nov 2006 18:01:02 GMT From: "Dr. Markus Waldeck" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: kern/106023: makeoptions DEBUG=-p X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2006 18:10:10 -0000 >Number: 106023 >Category: kern >Synopsis: makeoptions DEBUG=-p >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Nov 29 18:10:08 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Dr. Markus Waldeck >Release: 7.0-CURRENT-200611 >Organization: >Environment: FreeBSD fbh 7.0-CURRENT-200611 FreeBSD 7.0-CURRENT-200611 root@fb:/usr/src/sys/i386/compile/FB70B01 i386 >Description: I read about kgmon and tried to build a GENERIC kernel with makeoptions DEBUG=-p instead of makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols I got following compilation error MAKE=make sh ../../../conf/newvers.sh GENERIC cc -c -O -pipe -std=c99 -p -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -fformat-extensions -nostdinc -I- -I. -I../../.. -I../../../contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Werror vers.c linking kernel.debug aic7xxx_reg_print.o(.text+0x4): In function `ahc_scsiseq_print': : undefined reference to `.mcount' aic7xxx_reg_print.o(.text+0x2c): In function `ahc_sxfrctl0_print': : undefined reference to `.mcount' aic7xxx_reg_print.o(.text+0x54): In function `ahc_sxfrctl1_print': : undefined reference to `.mcount' aic7xxx_reg_print.o(.text+0x7c): In function `ahc_scsisigi_print': : undefined reference to `.mcount' aic7xxx_reg_print.o(.text+0xa4): In function `ahc_scsisigo_print': : undefined reference to `.mcount' aic7xxx_reg_print.o(.text+0xcc): more undefined references to `.mcount' follow *** Error code 1 >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: