Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Oct 2002 10:32:09 -0400 (EDT)
From:      Chris BeHanna <behanna@zbzoom.net>
To:        FreeBSD-Stable <stable@freebsd.org>
Subject:   Re: did someone break -STABLE?
Message-ID:  <20021024102918.I64739-100000@topperwein.pennasoft.com>
In-Reply-To: <20021023100145.GA52743@marvin.bsdng.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 23 Oct 2002, Kyle Martin wrote:

> just cvsup'ed 10 minutes ago, and attempted to build a kernel with no
> optimizations (CFLAGS=, COPTFLAGS=), heres what i end up with:
>
> cc -c  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
> -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
> -fformat-extensions -ansi  -nostdinc -I- -I. -I../.. -I../../../include
> -I../../contrib/ipfilter  -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'
> [...snip...]
> *** Error code 1
>
> Stop in /usr/src/sys/compile/MARVIN.

    This is (or should be) a FAQ.  For asm to get inlined
appropriately, you need at least -O.  Without it, code with inline asm
will fail to compile, every time (at least with GCC-2.95.x).

    -pipe is not an optimization; it tells the different compiler
phases to communicate via pipelines instead of using scratch files
in /tmp.  Unless /tmp is very, very fast (e.g., a memory filesystem),
using -pipe should speed the compile rather nicely.

-- 
Chris BeHanna                      http://www.pennasoft.com
Principal Consultant
PennaSoft Corporation
chris@pennasoft.com


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?20021024102918.I64739-100000>