Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Feb 2002 11:53:51 +0100
From:      Rahul Siddharthan <rsidd@online.fr>
To:        stable@freebsd.org
Subject:   Can't build unoptimized/debugging kernel
Message-ID:  <20020201115351.A27595@lpt.ens.fr>

next in thread | raw e-mail | index | archive | help
On FreeBSD 4-stable (cvsupped Jan 31 at around 13:40 GMT) I'm unable to
build an unoptimized debugging kernel.  The kernel builds fine with
COPTFLAGS=-O -pipe
but with 
COPTFLAGS=-g (or -g -pipe) I get the following error.  I get the same error
without optimization and without -g.  

The kernel is patched with a USB audio driver, but that seems unrelated 
to this error.
Any ideas?

Is it a good idea to use -g and -O together? 

Thanks - Rahul

gcc -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 -I/usr/src/sys/contrib/ipfilter  -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/BLUERONDO.
*** 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?20020201115351.A27595>