Subject: problems cross-building libgcc (alpha->mipsel)
To: None <>
From: Simon Burge <>
List: tech-toolchain
Date: 03/14/2002 01:39:37

I'm having problems building libgcc on my alpha host for a mipsel
target.  Here's the command that's failing:

/NetBSD/tools/bin/mipsel--netbsd-c++ -g -O2   -Werror -nostdinc++ -isystem /NetBSD/malta-snapshot/destdir/usr/include/g++  -I/NetBSD/src-clean/gnu/lib/libgcc/../../usr.bin/gcc/arch/mipsel -DIN_GCC -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I/NetBSD/src-clean/gnu/lib/libgcc/../../dist/toolchain/gcc -I/NetBSD/src-clean/gnu/lib/libgcc/../../dist/toolchain/gcc/config -I/NetBSD/src-clean/gnu/lib/libgcc/../../dist/toolchain/gcc/../include  -I/NetBSD/src-clean/gnu/lib/libgcc/../../dist/toolchain/gcc/cp -nostdinc -isystem /NetBSD/malta-snapshot/destdir/usr/include  -c /NetBSD/src-clean/gnu/lib/libgcc/../../dist/toolchain/gcc/cp/
/NetBSD/src-clean/gnu/lib/libgcc/../../dist/toolchain/gcc/cp/ typeinfo: No such file or directory
/NetBSD/src-clean/gnu/lib/libgcc/../../dist/toolchain/gcc/cp/ exception: No such file or directory

exception and typeinfo live in .../dist/toolchain/gcc/cp/inc, which
isn't listed in the -I's above.  If I add "-I${DIST}/gcc/cp/inc" to
CPPFLAGS in libgcc's Makefile, then it works as expected.

Now, the bit I don't get is that a native i386 build of libgcc does work
with pretty much the same set of -I's.

Can anyone shed any light on this?

Simon Burge                            <>
NetBSD CDs, Support and Service: