Subject: Re: Build failure - lib csu (under ELF)
To: hp300 NetBSD list <hp300@mrynet.com>
From: Simon Burge <simonb@wasabisystems.com>
List: port-hp300
Date: 01/08/2001 15:19:36
hp300 NetBSD list wrote:

> Whups, posted this to the wrong list... The perils of being multi-platform.
> 
> > On Sat, Jan 06, 2001 at 11:21:59PM -0600, NetBSD list wrote:
> > > I'm getting the following after updating my hp300 to ELF (Don't know
> > > if it happens on a non-ELF system):
> >
> >Err, looks as if your .mk files didn't get updated -- it's trying
> >to build ld.aout_so, which it shouldn't do.
> >
> >-- 
> >        -- Jason R. Thorpe <thorpej@zembu.com>
> 
> To which .mk files would you be referring?   In case you meant them, I've just 
> reinstalled the /usr/share/mk files (via cd /usr/src/share/mk;make install) 
> and verified they match the source tree.  I've cleaned the source tree again, 
> re-supped and I'm still getting the following on a build:

Just to check - you've installed the hp300 ELF snapshot, and that's ok?
If so, you should be able to see the following before rebuilding from
source:

hp433:~ 7> grep -1 hp300 /usr/share/mk/bsd.own.mk
    ${MACHINE} == "mvme68k" || \
    ${MACHINE} == "hp300"
OBJECT_FMT?=ELF
hp433:~ 8> head -1 /usr/share/mk/bsd.own.mk
#       $NetBSD: bsd.own.mk,v 1.152 2001/01/05 00:25:59 itojun Exp $

(Anything from rev 1.147 onwards is ok).

If you're system is currently a.out and you're trying to build ELF
support, then you need to play games with the BOOTSTRAP_ELF environment
variable.  If this is the case, then I strongly suggest you use the
snapshot - the pain isn't worth the effort...

Simon.
--
Simon Burge                            <simonb@wasabisystems.com>
NetBSD CDs, Support and Service:    http://www.wasabisystems.com/