Subject: Re: gnu/usr.bin/gcc3/backend needs a cc and more ...
To: Jeremy C. Reed <reed@reedmedia.net>
From: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
List: tech-toolchain
Date: 02/11/2005 05:07:36
On Thu, Feb 10, 2005 at 16:11:03 -0600, James Chacon wrote:

> On Thu, Feb 10, 2005 at 01:25:38PM -0800, Jeremy C. Reed wrote:
> 
> > 4) tools/groff needs C++. So I set
> > HOST_CXX=/home/reed/netbsd/hp700/tools/bin/hppa--netbsd-c++ (since I had
> > done similar with cpp above). But that still failed with:
> > 
> > /home/reed/netbsd/hp700/tools/lib/gcc-lib/hppa--netbsd/3.3.3/../../../../hppa--n
> > etbsd/bin/ld: crt0.o: No such file: No such file or directory
> > 
> > So I used HOST_CXX=/usr/gcc3/bin/c++ and that worked.
> 
> I beleive this is documented also (that you need a C++ compiler). If it's
> not fully documented about HOST_CXX file a PR for that.
> 
> > 
> > (I guess native c++ should not be used for making tools.)
> 
> Yes

Eh, wait a minute.  We are building crosstools so we indeed need a
*native* compiler to compile them.  Obviously, you want the tools to
run on your host machine.

We are not building target's groff, we are building nbgroff to format
man pages during the crossbuild.

SY, Uwe
-- 
uwe@ptc.spbu.ru                         |       Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/            |       Ist zu Grunde gehen