Subject: Re: Build failure - lib csu (under ELF)
To: Simon Burge <simonb@wasabisystems.com>
From: hp300 NetBSD list <hp300@mrynet.com>
List: port-hp300
Date: 01/07/2001 22:46:02
> Simon Burge list wrote:
> > > 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?

Yes, the ELF snapshot is running just fine:

mod200# uname -a
NetBSD mod200.mrynet.lv 1.5Q NetBSD 1.5Q (GENERIC) #0: Sat Jan  6 04:15:20 EST 2001 simonb@hp433:/z/netbsd/obj/NetBSD/src/sys/arch/hp300/compile/GENERIC hp300
mod200# file /sbin/init
/sbin/init: ELF 32-bit MSB executable, Motorola 68000, version 1, statically linked, stripped


> 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).
> 

Well, definate issue here:

mod200# head -1 /usr/share/mk/bsd.own.mk
#       $NetBSD: bsd.own.mk,v 1.136.4.5 2000/10/07 01:14:24 itojun Exp $
mod200# head -1 /usr/src/share/mk/bsd.own.mk
#       $NetBSD: bsd.own.mk,v 1.136.4.5 2000/10/07 01:14:24 itojun Exp $


I just re-supped the source, and still no change to the .mk files.
The sup file I'm using is:
current release=allsrc host=sup.netbsd.org hostbase=/ftp/pub \
base=/usr prefix=/usr backup use-rel-suffix compress

Obviously then, I am at the least not getting the current .mk files.
Either the latest files are not on the sup site, or I'm not requesting
them properly.  Any suggestions?

> 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/

FWIW, the upgrade instructions at
ftp://ftp.netbsd.org/pub/NetBSD/arch/hp300/snapshot/elf-upgrade/README.ELF-UPGRADE
worked flawlessly, with one exception: You must disable nfs_server in /etc/rc.conf.
mountd was causing a panic if you try to reboot to the ELF kernel with the a.out 
mountd version installed and enabled.

Thanks,
-s