Subject: Re: build error in current from 2 Jan
To: Frederick Bruckman <fredb@immanent.net>
From: Bruce ONeel <edoneel@sdf.lonestar.org>
List: port-mac68k
Date: 01/07/2004 17:14:35
Hi,
Thanks! I think this is still in the bootstrap phase where it's
building the tools directory (but I could be wrong) and that's
why the -m68060 didn't bother me. Still I'll try it with
your flag suggestion and see how it goes.
Thanks again!
cheers
bruce
Frederick Bruckman <fredb@immanent.net> wrote:
> Date: Wed, 7 Jan 2004 08:48:49 -0600 (CST)
> From: Frederick Bruckman <fredb@immanent.net>
> Subject: Re: build error in current from 2 Jan
> To: Bruce ONeel <edoneel@sdf.lonestar.org>
> Cc: port-mac68k@NetBSD.org
>
> On Wed, 7 Jan 2004, Bruce ONeel wrote:
>
> > My build.sh line looks like (all one line):
> >
> > ./build.sh -u -U -m mac68k -T /home/edoneel/current/build/tools -D
> > /home/edoneel/current/build/mac68k -R
> > /home/edoneel/current/build/release-mac68k release
> >
> > Also I'm building on a 68060 system.
>
> So you're cross-building on an amiga?
>
> It's not too surprising that -m68060 is broken. The lesser-used
> optimizations often get broken. Anyway, you are building the *target*
> with -m68060, which won't work on a Mac. If you want to tweak, try
> adding "-V HOST_CFLAGS=-m68020-60" to the build.sh command line.
>
> > # compile libgcc3/_bb.o
> > /home/edoneel/current/build/tools/bin/m68k--netbsdelf-gcc -O2 -m68060
> > -O2 -Werror -m68060 -O2 -I/home/edoneel/current/src/gnu/lib/libgcc3
> > -I/home/edoneel/current/src/gnu/usr.bin/gcc3/arch/m68k -DIN_GCC
> > -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED
> > -I/home/edoneel/current/src/gnu/dist/gcc/gcc
> > -I/home/edoneel/current/src/gnu/dist/gcc/gcc/.
> > -I/home/edoneel/current/src/gnu/dist/gcc/gcc/config
> > -I/home/edoneel/current/src/gnu/dist/gcc/gcc/../include
> > -I/home/edoneel/current/src/gnu/dist/gcc/gcc/cp
> > -I/home/edoneel/current/src/gnu/lib/libstdc++-v3/arch/m68k -I.
> > -nostdinc -isystem /home/edoneel/current/build/mac68k/usr/include -c
> > _bb.c -o _bb.o.tmp
> > In file included from _bb.c:2:
> > /home/edoneel/current/src/gnu/dist/gcc/gcc/libgcc2.c: In function
> > `__bb_exit_func':
> > /home/edoneel/current/src/gnu/dist/gcc/gcc/libgcc2.c:1542: error: unable
> > to find a register to spill in class `DATA_REGS'
> > /home/edoneel/current/src/gnu/dist/gcc/gcc/libgcc2.c:1542: error: this
> > is the insn:
> > (insn:QI 197 196 198 17 0x8428120 (set (cc0)
> > (compare (mem:SI (reg:SI 8 %a0 [65]) [2 S4 A32])
> > (const_int 4 [0x4]))) 11 {*m68k.md:518} (insn_list 195
> > (nil))
> > (expr_list:REG_DEAD (reg:SI 8 %a0 [65])
> > (nil)))
> > /home/edoneel/current/src/gnu/dist/gcc/gcc/libgcc2.c:1542: confused by
> > earlier errors, bailing out
> >
> > *** Failed target: _bb.o
> > *** Failed command:
> > /home/edoneel/current/build/tools/bin/m68k--netbsdelf-gcc -O2 -m68060
> > -O2 -Werror -m68060 -O2 -I/home/edoneel/current/src/gnu/lib/libgcc3
> > -I/home/edoneel/current/src/gnu/usr.bin/gcc3/arch/m68k -DIN_GCC
> > -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED
> > -I/home/edoneel/current/src/gnu/dist/gcc/gcc
> > -I/home/edoneel/current/src/gnu/dist/gcc/gcc/.
> > -I/home/edoneel/current/src/gnu/dist/gcc/gcc/config
> > -I/home/edoneel/current/src/gnu/dist/gcc/gcc/../include
> > -I/home/edoneel/current/src/gnu/dist/gcc/gcc/cp
> > -I/home/edoneel/current/src/gnu/lib/libstdc++-v3/arch/m68k -I. -nostdinc
> > -isystem /home/edoneel/current/build/mac68k/usr/include -c _bb.c -o
> > _bb.o.tmp
> > *** Error code 1
> >
> > Stop.
> > nbmake: stopped in /home/edoneel/current/src/gnu/lib/libgcc3
>
> Frederick