Subject: Progress on Alpha->hp300 cross.
To: None <current-users@netbsd.org>
From: Jarkko Teppo <jarkko.teppo@er-grp.com>
List: current-users
Date: 11/12/2001 11:55:06
Some progress on Alpha->hp300 cross compiling using build.sh.
It got farther than previously until:

/home/jarkko/NetBSD/m68k_tooldir/bin/m68k--netbsdelf-gcc -O2  -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized
-Werror   -D_MULTI_LIBM -D_POSIX_MODE -DLIBM_SCCS   -nostdinc -idirafter
/home/jarkko/NetBSD/hp300_destdir/usr/include -c -fPIC -DPIC
/home/jarkko/NetBSD/src/lib/libm/src/e_asinf.c -o e_asinf.so
/home/jarkko/NetBSD/m68k_tooldir/bin/m68k--netbsdelf-gcc -O2  -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized
-Werror   -D_MULTI_LIBM -D_POSIX_MODE -DLIBM_SCCS   -nostdinc -idirafter
/home/jarkko/NetBSD/hp300_destdir/usr/include -c
/home/jarkko/NetBSD/src/lib/libm/src/e_atan2.c
m68k--netbsdelf-gcc: Internal compiler error: program as got fatal signal 11
*** Error code 1

Stop.
nbmake: stopped in /home/jarkko/NetBSD/src/lib/libm
*** Error code 1

Stop.
nbmake: stopped in /home/jarkko/NetBSD/src/lib/libm
*** Error code 1

bash-2.05# gdb /home/jarkko/NetBSD/m68k_tooldir/m68k--netbsdelf/bin/as as.core
GNU gdb 4.17
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "alpha--netbsd"...
Core was generated by `as'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/libexec/ld.elf_so...done.
Reading symbols from /usr/lib/libc.so.12...done.
#0  0x1602d3510 in memset ()
(gdb) bt
#0  0x1602d3510 in memset ()
warning: Hit heuristic-fence-post without finding
warning: enclosing function for address 0x1fffff6e0
(gdb)

This is a 1.5.2 AS500 known to be a good, solid machine :)

Any debugging ideas ?
-- 
jht