Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jun 2002 21:49:47 -0700
From:      Sean Chittenden <sean@chittenden.org>
To:        Shizuka Kudo <shizukakudo_99@yahoo.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: buildworld failed with -O0
Message-ID:  <20020623214947.J84322@ninja1.internal>
In-Reply-To: <20020624031801.26858.qmail@web11408.mail.yahoo.com>; from "shizukakudo_99@yahoo.com" on Sun, Jun 23, 2002 at = 08:18:01PM
References:  <20020624031801.26858.qmail@web11408.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> I don't know if I'm the one that observed this.  Building world
> completed with default CFLAGS (-O -pipe -march=pentiumpro), but
> failed with -O0 or without optimization. /usr/src cvsupped within
> one day. Here's the error message (same for -O0 and without -O).
> 
> ===> libexec/rtld-elf
> cc -pipe -march=pentiumpro -Wall -DFREEBSD_ELF
> -I/usr/src/libexec/rtld-elf/i386
> -I/usr/src/libexec/rtld-elf -elf -fpic -DPIC  
> -Wformat=2 -Wno-format-extra-args  -c
> /usr/src/libexec/rtld-elf/rtld.c
> /usr/src/libexec/rtld-elf/rtld.c: In function
> `atomic_decr_int':
> /usr/src/libexec/rtld-elf/i386/rtld_machdep.h:58:
> inconsistent operand constraints in an `asm'
> 
> Is it a gcc31 problem?

I ran into, what I think is the same thing as you're describing, a
while ago.  The short and skinny being that -O0 doesn't compile any
ASM which breaks things and is why you need at least -O to compile the
kernel/world.  ::shrug:: I could've botched that explanation, but it
took me a while to track this down and have it explained.  Kind of
obscure IMHO.  Someone suggested testing to make sure that at least -O
is specified where needed, but I'm 99% sure I haven't seen that
commit.  -sc

-- 
Sean Chittenden

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?20020623214947.J84322>