Subject: i386, libgcc2 and USE_NEW_TOOLCHAIN
To: None <current-users@netbsd.org>
From: Ron Roskens <roskens@elfin.net>
List: current-users
Date: 08/16/2001 22:27:25
I'm trying out the new build process, and am seeing an error in
building libgcc2. I'm thinking its because the build is using
the native compiler rather than TOOLDIR/bin/i386--netbsdelf-gcc.
I added CFLAGS+=-v into mk.conf and got the following output
when the build failed. (This is after the tools have been built,
during the do-gnu-lib stage.)
cc -O2 -v -Werror -I/usr/src/gnu/lib/libgcc/../../usr.bin/gcc/arch/i386 -I/usr/src/gnu/lib/libgcc/../../dist/toolchain/gcc/cp/inc -DIN_GCC -DIN_LIBGCC2 -D__GCC_FLOAT_N
OT_NEEDED -I/usr/src/gnu/lib/libgcc/../../dist/toolchain/gcc -I/usr/src/gnu/lib/libgcc/../../dist/toolchain/gcc/config -I/usr/src/gnu/lib/libgcc/../../dist/toolchain/gcc
/../include -nostdinc -idirafter /d/d02/NetBSD/root/usr/include -c -fexceptions -DL_eh -o _eh.o /usr/src/gnu/lib/libgcc/../../dist/toolchain/gcc/libgcc2.c
Using builtin specs.
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
/usr/libexec/cpp -lang-c -nostdinc -v -I/usr/src/gnu/lib/libgcc/../../usr.bin/gcc/arch/i386 -I/usr/src/gnu/lib/libgcc/../../dist/toolchain/gcc/cp/inc -I/usr/src/gnu/lib/
libgcc/../../dist/toolchain/gcc -I/usr/src/gnu/lib/libgcc/../../dist/toolchain/gcc/config -I/usr/src/gnu/lib/libgcc/../../dist/toolchain/gcc/../include -undef -D__GNUC__=
2 -D__GNUC_MINOR__=91 -Di386 -D__NetBSD__ -D__ELF__ -D__KPRINTF_ATTRIBUTE__ -D__i386__ -D__NetBSD__ -D__ELF__ -D__KPRINTF_ATTRIBUTE__ -D__i386 -Asystem(unix) -Asystem(Net
BSD) -Acpu(i386) -Amachine(i386) -D__OPTIMIZE__ -Werror -DIN_GCC -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -DL_eh -idirafter /d/d02/NetBSD/root/usr/include /usr/src/gnu/lib/l
ibgcc/../../dist/toolchain/gcc/libgcc2.c /tmp/ccVMLHNf.i
GNU CPP version egcs-2.91.66 19990314 (egcs-1.1.2 release) (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
/usr/src/gnu/lib/libgcc/../../usr.bin/gcc/arch/i386
/usr/src/gnu/lib/libgcc/../../dist/toolchain/gcc/cp/inc
/usr/src/gnu/lib/libgcc/../../dist/toolchain/gcc
/usr/src/gnu/lib/libgcc/../../dist/toolchain/gcc/config
/usr/src/gnu/lib/libgcc/../../dist/toolchain/gcc/../include
/d/d02/NetBSD/root/usr/include
End of search list.
/usr/libexec/cc1 /tmp/ccVMLHNf.i -quiet -dumpbase libgcc2.c -O2 -Werror -version -fexceptions -o /tmp/cc4Ds1os.s
GNU C version egcs-2.91.66 19990314 (egcs-1.1.2 release) (i386-netbsd) compiled by GNU C version egcs-2.91.66 19990314 (egcs-1.1.2 release).
cc1: warnings being treated as errors
/usr/src/gnu/lib/libgcc/../../dist/toolchain/gcc/libgcc2.c: In function `__throw':
/usr/src/gnu/lib/libgcc/../../dist/toolchain/gcc/libgcc2.c:3918: warning: assignment makes pointer from integer without a cast
/usr/src/gnu/lib/libgcc/../../dist/toolchain/gcc/libgcc2.c: In function `__rethrow':
/usr/src/gnu/lib/libgcc/../../dist/toolchain/gcc/libgcc2.c:3969: warning: assignment makes pointer from integer without a cast
*** Error code 1
Stop.
Somebody want a send-pr on this?
Ron