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 11:57:54
On Sun, 8 Sep 2002, Daniel Eggert wrote:
> On s=F8ndag, sep 8, 2002, at 17:51 Europe/Copenhagen, Frederick Bruckman
> wrote:
>
> > 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
> >> =09# cd /usr/src
> >> =09# ./build.sh -t
> >>
> >> After screenfulls of output build.sh stops with;
> >> =09Illegal instruction - core dumped
> >> =09cc -DHAVE_CONFIG_H -I. "" -I. -D_GNU_SOURCE -I.
> > ^^
> > ||
> > -- This, here, looks like a filename
> > to "gcc".
>
> I see. What does that tell me?
Well, on my 1.6 box, the argument in that position is set to
`-I/s/src-release/tools/toolchain/../../gnu/dist/toolchain/bfd, by
virtue of srcdir being set to
"/s/src-release/tools/toolchain/../../gnu/dist/toolchain/bsd" in
"/t/obj-i386/tools/toolchain.i386.NetBSD-1.6-i386/build/bfd/Makefile".
"$srcdir" is set by the configure script to its own containing
directory, so it's very unusual to see that wrong.
Could you please post or make available the full result of "make clean
&& make" in "/usr/src/tools/toolchain", especially the beginning,
where "configure" is run?
> >> -I/usr/src/tools/toolchain/../../gnu/dist/=09toolchain/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
> >> =09cc: cannot specify -o with -c or -S and multiple compilations
> >> =09*** Error code 1
> >>
> >> =09Stop.
> >> =09nbmake: stopped in /usr/obj/tools/toolchain/build/bfd
> >> =09*** 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?
>
> No. When i check with
> =09# setenv
> there is no environment variable called HOST_CFLAGS.
>
> Should there be? Should it be set to ""?
No. [Hmm..., you use "csh"?]
Frederick