Subject: Re: USE_NEW_TOOLCHAIN explosion in gnu/lib/libgcc
To: Bill Sommerfeld <sommerfeld@netbsd.org>
From: Chris Gilbert <chris@paradox.demon.co.uk>
List: tech-toolchain
Date: 09/23/2001 01:53:36
On Sunday 23 September 2001  1:31 am, Bill Sommerfeld wrote:
> /usr/tool/bin/i386--netbsdelf-gcc -O2  -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_NOT_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\ /usr/include -c -o exception.o
> /usr/src/gnu/lib/libgcc/../../dist/toolchain/gcc\ /cp/exception.cc
> /usr/src/gnu/lib/libgcc/../../dist/gcc/cp/exception.cc i386--netbsdelf-gcc:
> cannot specify -o with -c or -S and multiple compilations *** Error code 1
>
> exceptions.cc turns up in both SRCS in that directory and in the "this
> file is automatically generated, do not edit" i386.mk file.
>
> Deleting exceptions.cc from the SRCS+= .. in gnu/lib/libgcc fixed it
> for me.

I noted this on current-users.  You need to physically delete the old .depend 
file for libgcc, appears it's not caught by cleandir.

Chris