Subject: Re: Unable to build toolchain for 1.6-RC3
To: Daniel Eggert <danieleggert@mac.com>
From: Frederick Bruckman <fredb@immanent.net>
List: netbsd-help
Date: 09/08/2002 10:51:10
On Sun, 8 Sep 2002, Daniel Eggert wrote:

> I've just downloaded (by cvs) the source for 1.6-RC3.
>
> Next thing, I tried to build the toolchain, so I run
> 	# cd /usr/src
> 	# ./build.sh -t
>
> After screenfulls of output build.sh stops with;
> 	Illegal instruction - core dumped
> 	cc -DHAVE_CONFIG_H -I. "" -I. -D_GNU_SOURCE -I.
                               ^^
                               ||
                                -- This, here, looks like a filename
to "gcc".

> -I/usr/src/tools/toolchain/../../gnu/dist/	toolchain/bfd
> -I/usr/src/tools/toolchain/../../gnu/dist/toolchain/bfd/../include
> -I/usr/src/tools/toolchain/../../gnu/dist/toolchain/bfd/../intl
> -I../intl -W -Wall -O -c
> /usr/src/tools/toolchain/../../gnu/dist/toolchain/bfd/bfd.c -o bfd.o
> 	cc: cannot specify -o with -c or -S and multiple compilations
> 	*** Error code 1
>
> 	Stop.
> 	nbmake: stopped in /usr/obj/tools/toolchain/build/bfd
> 	*** Error code 1
>
> I'm running NetBSD-1.6D macppc.
>
> What do I do wrong?

Do you something like $HOST_CFLAGS set to "" in your environment?

Frederick