Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Nov 2001 09:43:16 +1100
From:      Peter Jeremy <peter.jeremy@alcatel.com.au>
To:        Jim Bryant <kc5vdj@yahoo.com>
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: kernel won't build - atomic.c/atomic.h errors...
Message-ID:  <20011113094316.A26926@gsmx07.alcatel.com.au>
In-Reply-To: <3BE0C13E.5000106@yahoo.com>; from kc5vdj@yahoo.com on Wed, Oct 31, 2001 at 09:27:58PM -0600
References:  <3BE31270.5010905@yahoo.com> <3BE0C13E.5000106@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Sorry for mot responding sooner.

On Wed, Oct 31, 2001 at 09:27:58PM -0600, Jim Bryant wrote:
>cc -c -g -pipe  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -ansi  -nostdinc -I-  -I. -I../../.. -I../../../dev -I../../../contrib/dev/acpica -I../../../contrib/ipfilter -I../../../../include  -D_KERNEL -include opt_global.h -elf  -mpreferred-stack-boundary=2 -fomit-frame-pointer ../../../i386/i386/atomic.c
>In file included from ../../../i386/i386/atomic.c:48:
>machine/atomic.h: In function `atomic_set_char':
>machine/atomic.h:214: inconsistent operand constraints in an `asm'

On Fri, Nov 02, 2001 at 03:38:56PM -0600, Jim Bryant wrote:
>Is anyone else seeing this problem?

There is a problem with the way gcc handles asm constraints.  The
quick solution is to compile with `-O'.  For a more detailed analysis
and my then suggested solution, refer to the thread "kernel compile
failure without -O option" in -current from Jul 2000 (I can't quote
the exact message ID of my response because our firewall helpfully
rewrites it).

Since those patches were written, the code has been cleaned up to
remove support for older variants of gcc, but the constraint changes
for gcc >= 2.8 should still be valid.

Peter, VK2PJ

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011113094316.A26926>