Date: Thu, 15 Mar 2001 00:16:48 -0600 (CST) From: Tim Zingelman <zingelman@fnal.gov> To: <freebsd-stable@FreeBSD.ORG> Subject: can't build 4.3-BETA GENERIC kernel with -g Message-ID: <Pine.GSO.4.30.0103142349240.14922-100000@nova.fnal.gov>
next in thread | raw e-mail | index | archive | help
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 <zingelman@fnal.gov> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.30.0103142349240.14922-100000>