From owner-freebsd-stable Sun Aug 13 22:59:15 2000 Delivered-To: freebsd-stable@freebsd.org Received: from alcanet.com.au (mail.alcanet.com.au [203.62.196.10]) by hub.freebsd.org (Postfix) with SMTP id A91C137B9C9 for ; Sun, 13 Aug 2000 22:58:56 -0700 (PDT) (envelope-from jeremyp@gsmx07.alcatel.com.au) Received: by border.alcanet.com.au id <115225>; Mon, 14 Aug 2000 15:58:28 +1000 Content-return: prohibited Date: Mon, 14 Aug 2000 15:57:53 +1000 From: Peter Jeremy Subject: Re: Can't build kernel in 4.1 snapshot? In-reply-to: ; from dgl@visi.com on Sat, Aug 12, 2000 at 06:57:29PM -0500 To: Doug Lee Cc: freebsd-stable@FreeBSD.ORG Mail-followup-to: Doug Lee , freebsd-stable@FreeBSD.ORG Message-Id: <00Aug14.155828est.115225@border.alcanet.com.au> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline User-Agent: Mutt/1.2.4i References: Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 2000-Aug-12 18:57:29 -0500, Doug Lee wrote: >cc -c -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -nostdinc -I- -I. -I../.. -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:47: >machine/atomic.h: In function `atomic_set_char': >machine/atomic.h:106: inconsistent operand constraints in an `asm' There is a problem with the way gcc handles asm constraints. The problem here will go away as soon as you add a `-O' to the compiler flags. Have a look at the thread "kernel compile failure without -O option" in -current - I posted a followup that includes some patches that should solve the problem (I can't quote the exact message ID of my response because our firewall helpfully rewrites it). Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message