Subject: Re: netbsd-3-0 build failure
To: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
From: Ignatios Souvatzis <is@netbsd.org>
List: tech-toolchain
Date: 03/10/2006 16:13:16
Hi,
Izumi Tsutsui wrote:
> is@NetBSD.org wrote:
>
> > On Thu, Feb 16, 2006 at 11:18:00AM +0100, Gunther Nikl wrote:
> > > On Fri, Feb 10, 2006 at 12:41:59AM +0100, Anders Lindgren wrote:
> > > > # compile GENERIC/if_x25subr.o
> > > > /usr/build/tools.amiga/bin/m68k--netbsdelf-gcc -pipe -m68060 -Wa,-m68030
> > > > -Wa,-m68851 -msoft-float -ffreestanding
> > > > -pipe -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith
> > > > -Wmissing-prototypes -Wstrict-prototypes -Wno-sign-compare
> > > > -fno-zero-initialized-in-bss -Damiga -DFPCOPROC -I. -I/usr/src/sys/arch
> > > > -I/usr/src/sys -nostdinc
> > > > -DDRACO -DM68060 -DM68040 -DM68030 -DM68020 -DLKM -DMAXUSERS=8 -D_KERNEL
> > > > -D_KERNEL_OPT -I/usr/src/sys/dist/ipf -c
> > > > /usr/src/sys/netccitt/if_x25subr.c
> > > > /usr/src/sys/netccitt/if_x25subr.c: In function `x25_ifinput':
> > > > /usr/src/sys/netccitt/if_x25subr.c:218: error: inconsistent operand
> > > > constraints in an `asm'
>
> This could happen if COPTS is overriden with -pipe (in /etc/mk.conf),
> i.e. some sources could get warnings if they are compiled without
> optimization.
Ah - thanks for the clarification. "Don't do that, then" - that is,
put something like .ifdef PKGSRC ... .endif around your stuff.
COPTS is very delicately chosen to suit the CPUs and whether we're compiling
a bootblock ...
Regards,
-is
--
seal your e-mail: http://www.gnupg.org/