From owner-freebsd-current Mon Nov 12 14:43:29 2001 Delivered-To: freebsd-current@freebsd.org Received: from netau1.alcanet.com.au (ntp.alcanet.com.au [203.62.196.27]) by hub.freebsd.org (Postfix) with ESMTP id E6D3A37B41A for ; Mon, 12 Nov 2001 14:43:25 -0800 (PST) Received: from mfg1.cim.alcatel.com.au (mfg1.cim.alcatel.com.au [139.188.23.1]) by netau1.alcanet.com.au (8.9.3 (PHNE_22672)/8.9.3) with ESMTP id JAA07378; Tue, 13 Nov 2001 09:43:19 +1100 (EDT) Received: from gsmx07.alcatel.com.au by cim.alcatel.com.au (PMDF V5.2-32 #37645) with ESMTP id <01KANG0WRRHS2ZDN7X@cim.alcatel.com.au>; Tue, 13 Nov 2001 09:43:25 +1100 Received: (from jeremyp@localhost) by gsmx07.alcatel.com.au (8.11.1/8.11.1) id fACMhG327025; Tue, 13 Nov 2001 09:43:16 +1100 Content-return: prohibited Date: Tue, 13 Nov 2001 09:43:16 +1100 From: Peter Jeremy Subject: Re: kernel won't build - atomic.c/atomic.h errors... In-reply-to: <3BE31270.5010905@yahoo.com>; from kc5vdj@yahoo.com on Fri, Nov 02, 2001 at 03:38:56PM -0600 In-reply-to: <3BE0C13E.5000106@yahoo.com>; from kc5vdj@yahoo.com on Wed, Oct 31, 2001 at 09:27:58PM -0600 To: Jim Bryant Cc: freebsd-current@FreeBSD.ORG Mail-Followup-To: Jim Bryant , freebsd-current@FreeBSD.ORG Message-id: <20011113094316.A26926@gsmx07.alcatel.com.au> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline User-Agent: Mutt/1.2.5i References: <3BE31270.5010905@yahoo.com> <3BE0C13E.5000106@yahoo.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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