Subject: (hpcmips) cross-build fails
To: None <current-users@netbsd.org>
From: Fujio Nobori <toh@po.ntts.co.jp>
List: current-users
Date: 08/06/2001 17:44:41
Hi all,

I am trying to cross-build userland for hpcmips on my i386
box with today's -current.

And wondering why I am getting this:

=================================================================

toh@myhost:/usr/src/regress/lib/csu> sudo hpcmips-make dependall
+ exec make dependall
dependall ===> initfini
mkdep -a  -nostdinc -idirafter /altroot/usr/include -traditional-cpp /mnt/src/regress/lib/csu/initfini/arch/mips/initfini_asm.S
mkdep -a  -nostdinc -idirafter /altroot/usr/include /mnt/src/regress/lib/csu/initfini/initfini.c
/usr/pkg/cross/bin/mipsel-netbsd-gcc -O2  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Werror   -nostdinc -idirafter /altroot/usr/include -c /mnt/src/regress/lib/csu/initfini/initfini.c
/usr/pkg/cross/bin/mipsel-netbsd-gcc   -nostdinc -idirafter /altroot/usr/include -c -traditional-cpp /mnt/src/regress/lib/csu/initfini/arch/mips/initfini_asm.S
/usr/pkg/cross/bin/mipsel-netbsd-gcc   -o initfini -nostdlib -Wl,-rpath-link,/altroot/usr/lib /altroot/usr/lib/crt0.o /altroot/usr/lib/crtbegin.o initfini.o initfini_asm.o  -L/altroot/usr/lib -lgcc -lc -lgcc /altroot/usr/lib/crtend.o
/usr/pkg/cross/mipsel-netbsd/bin/ld: Warning: type of symbol `_gp_disp' changed from 1 to 3 in /altroot/usr/lib/libc.so
/usr/pkg/cross/mipsel-netbsd/bin/ld: initfini_asm.o: linking PIC files with non-PIC files
Bad value: failed to merge target specific data of file initfini_asm.o
collect2: ld returned 1 exit status
*** Error code 1

Stop.
make: stopped in /mnt/src/regress/lib/csu/initfini
*** Error code 1

Stop.
make: stopped in /mnt/src/regress/lib/csu/initfini
*** Error code 1

Stop.
make: stopped in /mnt/src/regress/lib/csu

=================================================================

How can I get on the right track again?

Any help will be appreciated.

Thank you very much in advance.

-------------------------------------------------------
FUJIO NOBORI (toh@po.ntts.co.jp)