(This is filed as PR toolchain/28065 in the NetBSD gnats database) When crosscompiling a NetBSD/hppa kernel on a NetBSD/sparc64 host, the compiler fails in various files. On example of the error message is:
/usr/src/src/sys/netinet6/nd6.c: In function `nd6_setmtu0': /usr/src/src/sys/netinet6/nd6.c:230: error: unrecognizable insn: (insn 34 33 35 6 0x40cc94a0 (set (reg:DI 97) (plus:DI (reg:DI 103) (const_int -5056 [0xffffffffffffec40]))) -1 (nil) (expr_list:REG_DEAD (reg:DI 103) (nil))) /usr/src/src/sys/netinet6/nd6.c:230: internal compiler error: in extract_insn, at recog.c:2175 The compiler configuration is: Reading specs from /usr/src/cross/hp700/lib/gcc-lib/hppa--netbsd/3.3.3/specs Configured with: /usr/src/src/tools/gcc/../../gnu/dist/gcc/configure --target=hppa--netbsd --disable-nls --enable-long-long --disable-multilib --enable-threads --program-transform-name=s,^,hppa--netbsd-, --enable-languages=c c++ objc f77 --prefix=/usr/src/cross/hp700 Thread model: posix gcc version 3.3.3 (NetBSD nb3 20040520) The command line is: /usr/src/cross/hp700/bin/hppa--netbsd-gcc -ffreestanding -mpa-risc-1-1 -msoft-float -mdisable-fpregs -mno-space-regs -mfast-indirect-calls -mportable-runtime -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-sign-compare -fno-zero-initialized-in-bss -Dhppa -Dhp700 -I. -I/usr/src/src/sys/arch -I/usr/src/src/sys -nostdinc -DFPEMUL -DLKM -DGSCVERBOSE -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I/usr/src/src/sys/dist/ipf -c /usr/src/src/sys/netinet6/nd6.c -- Summary: unrecognizable insn compiling various sources Product: gcc Version: 3.3.3 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: martin at netbsd dot org CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: sparc64--netbsd GCC host triplet: sparc64--netbsd GCC target triplet: hppa--netbsd http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18473