From owner-freebsd-stable Wed Mar 14 22:11:30 2001 Delivered-To: freebsd-stable@freebsd.org Received: from nova.fnal.gov (nova.fnal.gov [131.225.121.207]) by hub.freebsd.org (Postfix) with ESMTP id DA6C037B718 for ; Wed, 14 Mar 2001 22:11:25 -0800 (PST) (envelope-from zingelman@fnal.gov) Received: from localhost (tez@localhost) by nova.fnal.gov (8.9.3+Sun/8.9.3) with ESMTP id AAA15006 for ; Thu, 15 Mar 2001 00:16:48 -0600 (CST) X-Authentication-Warning: nova.fnal.gov: tez owned process doing -bs Date: Thu, 15 Mar 2001 00:16:48 -0600 (CST) From: Tim Zingelman X-Sender: To: Subject: can't build 4.3-BETA GENERIC kernel with -g Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Am I missing something here... is this the wrong way to build a kernel with debug symbols? Any help is appreciated. I've cvsuped built, installed, mergemastered a 4.3-BETA world & kernel as of this morning 3/14/01, and rebooted. Everything worked great as usual. I need to build a kernel with debug, to diagnose a panic I've been seeing with smbfs.ko. So I set: CFLAGS= -g COPTFLAGS= -g in /etc/make.conf, went back to /usr/src (nothing has changed since my last installworld/kernel, etc. except those two items in make.conf that were previously set = -O -pipe) I get a compile failure on /usr/src/sys/i386/i386/atomic.c, including /usr/src/sys/i386/include/atomic.h "inconsistent operand constraints in an `asm'" see below for details. I also tried setting CFLAGS & COPTFLAGS to just -pipe and building with: make kernel KERNCONF=GENERIC DEBUG=-g and got the same results. I have repeated this on another -BETA machine with the same results. - Tim Zingelman make kernel KERNCONF=GENERIC ... cc -c -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/../include -D_KERNEL -include opt_global.h -elf -mpreferred-stack-boundary=2 -fomit-frame-pointer /usr/src/sys/i386/i386/atomic.c In file included from /usr/src/sys/i386/i386/atomic.c:47: machine/atomic.h: In function `atomic_set_char': machine/atomic.h:106: inconsistent operand constraints in an `asm' machine/atomic.h: In function `atomic_clear_char': machine/atomic.h:107: inconsistent operand constraints in an `asm' machine/atomic.h: In function `atomic_add_char': machine/atomic.h:108: inconsistent operand constraints in an `asm' machine/atomic.h: In function `atomic_subtract_char': machine/atomic.h:109: inconsistent operand constraints in an `asm' machine/atomic.h: In function `atomic_set_short': machine/atomic.h:111: inconsistent operand constraints in an `asm' machine/atomic.h: In function `atomic_clear_short': machine/atomic.h:112: inconsistent operand constraints in an `asm' machine/atomic.h: In function `atomic_add_short': machine/atomic.h:113: inconsistent operand constraints in an `asm' machine/atomic.h: In function `atomic_subtract_short': machine/atomic.h:114: inconsistent operand constraints in an `asm' machine/atomic.h: In function `atomic_set_int': machine/atomic.h:116: inconsistent operand constraints in an `asm' machine/atomic.h: In function `atomic_clear_int': machine/atomic.h:117: inconsistent operand constraints in an `asm' machine/atomic.h: In function `atomic_add_int': machine/atomic.h:118: inconsistent operand constraints in an `asm' machine/atomic.h: In function `atomic_subtract_int': machine/atomic.h:119: inconsistent operand constraints in an `asm' machine/atomic.h: In function `atomic_set_long': machine/atomic.h:121: inconsistent operand constraints in an `asm' machine/atomic.h: In function `atomic_clear_long': machine/atomic.h:122: inconsistent operand constraints in an `asm' machine/atomic.h: In function `atomic_add_long': machine/atomic.h:123: inconsistent operand constraints in an `asm' machine/atomic.h: In function `atomic_subtract_long': machine/atomic.h:124: inconsistent operand constraints in an `asm' *** Error code 1 Stop in /usr/obj/usr/src/sys/GENERIC. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message