Subject: Re: Possible Makefile or build script bug
To: None <mmondor@linuxguru.net>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: netbsd-bugs
Date: 11/04/2001 01:38:28
In article <20011028051032.A3159@gobot.xisop>
mmondor@linuxguru.net wrote:

> > > I could find it at this location:
> > > /home/src/lib/libcom_err/compile_et/parse.h
> > 
> > This is auto-generated file at compile time.
> > You are using OBJDIR so it should not be there but
> > under compile_et/obj.i386. I guess you made it
> > before "make obj".
> 
> i586-make obj   was done first and it created a bunch if obj.i386 directories

What does the timestamp of parse.h say?

> The compile host runs NetBSD 1.5 which was compiled from source for i586,
> my attempt was to compile NetBSD 1.5.2 source to have an i586 optimized
> binary NetBSD 1.5.2 distribution just like I previously done for this 1.5
> system...

Then you don't have to use "cross" script.
Just setting optimization options for COPTS (or DBG)
in /etc/mk.conf is enough.

"Cross-script" should be used when the target system
requires different toolchains from the host's ones
to build binaries.

> do you think that eventually i586 would have an official distribution?

No. The default binaries should work on all supported machines.
Pentium and later CPUs still can run i386 binaries but
the converse is not.

> Of
> course compiling it myself wouldn't be too much problems usually, except
> this time where I just stumble on that error

Can you reproduce the same error everytime (even after removing parse.h)?
---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp