Subject: Re: Problem trying to XCompile a mac68k kernel on an i386
To: None <cgd@CS.cmu.edu>
From: Scott Ellis <scotte@warped.com>
List: current-users
Date: 02/03/1997 19:35:41
In "Re: Problem trying to XCompile a mac68k kernel on an i386", "Chris G.
Demetriou" <cgd@CS.cmu.edu> wrote: 
> > After conquering many irritating problems, I've run into a small problem
> > which I don't see how to solve. lorder isn't happy with gnu's nm. 
> >
> > [ ... ]
> >
> > The problem is that the lorder script (which is the same as the -current
> > lorder script) relies on getting the file name followed by just a ":".
> > 
> > Is there an easy way to get gnu-nm to do this? I looked at its man page,
> > and couldn't tell.
> 
> So, i don't know how to get it to do that, if you can.
> 
> _however_, there's a workaround.  8-)
> 
> You'll note that there exists /usr/src/usr.bin/lorder/lorder.sh.gnm,
> which is installed rather than the normal lorder.sh on certain
> platforms (in particular, those where ${MACHINE_ARCH} == "alpha" ||
> ${MACHINE_ARCH} == "mips").
> 
> It should _probably_ be safe to use the lorder.sh.gnm script with the
> NetBSD native nm, but i'm not 100% sure.  If it is indeed safe, then
> lorder.sh.gnm could replace lorder.sh.

It (lorder.sh.gnm) works for me doing a compile for Sun3 and Amiga on i386 (-current all around).  The only 'problem' with the cross-compile so far
is that the binutils-2.7's "strip" is broken.  Ezra Story has made up
patches to the current "strip" so that it works fine for m68k stuff
on i386 arch.  Let me know if either of you want it, and I'll tar it up.

I've been quite successful at doing Amiga and Sun3 cross-compiles on
i386 as of late, and hope to have a nice environment to build -current
snapshots weekly, or bi-weekly RSN.  Just waiting on some hardware at
the moment. ;-)


-- 
   //////////////////////////////////////////////////////////////////////
  //    Scott Ellis     //   scotte@warped.com   //   sellis@gi.com   //
 //////////////////////////////////////////////////////////////////////
// WARNING: This signature warps  time and space in its vicinity    //