Subject: Re: make build fails everytime
To: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>
From: Frederick Bruckman <fredb@immanent.net>
List: current-users
Date: 02/01/2002 09:53:12
On Fri, 1 Feb 2002, Juergen Hannken-Illjes wrote:

> > On Fri, 1 Feb 2002, Todd Vierling wrote:
> >
> > > On Fri, 1 Feb 2002, Frederick Bruckman wrote:
> > >
> > > : After updating my sources last night, I get a little farther than
> > > : that, but still broke:
> > >
> > > : scan.lo: In function `fcon':
> > > : scan.lo(.text+0x216c): undefined reference to `finite'
> > >
> > > This should be fixed now; lint1 links against -lm.  You need to update
> > > src/usr.bin/xlint/lint1/Makefile.
> >
> > It's failing in ".../tools/lint1".

> And src/usr.bin/xlint/lint1/Makefile is called from .../tools/lint1

OK. With Makefile v1.26, it adds -lm to the tool build, but still fails:

/t/tools/bin/m68k--netbsdelf-gcc -O2  -Wall -Wstrict-prototypes
 -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized  -Werror
 -I/s/src-current/usr.bin/xlint/lint1 -I. -DTARGET_OBJFMT_ELF
 -I/s/src-current/usr.bin/xlint/lint1/../arch/m68k
 -I/s/src-current/usr.bin/xlint/lint1/../common -nostdinc -isystem
 /usr/include  -c /s/src-current/usr.bin/xlint/lint1/../common/inittyp.c
 /t/tools/bin/m68k--netbsdelf-gcc   -o lint1 -nostdlib  /usr/lib/crt0.o
 /usr/lib/crtbegin.o cgram.o scan.o mem1.o mem.o err.o main1.o decl.o
 tree.o func.o init.o emit.o emit1.o inittyp.o -lm -ll -L/usr/lib  -lgcc
 -lc -lgcc /usr/lib/crtend.o
tree.o: In function `cvtcon':
tree.o(.text+0x2574): undefined reference to `__fixunsxfdi'
tree.o(.text+0x269c): undefined reference to `__floatdixf'
tree.o(.text+0x26bc): undefined reference to `__floatdixf'
tree.o: In function `constant':
tree.o(.text+0x4814): undefined reference to `__fixxfdi'
collect2: ld returned 1 exit status
*** Error code 1

Stop.
make: stopped in /s/src-current/usr.bin/xlint/lint1

What's more, it placed the objects in usr.bin/xlint/lint1, even though
"make obj" was only done in "tools". I'm going to clean everything out
and do a "make obj" before trying it again.

Frederick