Subject: Re: Cross Compile Sparc64 binary at Alpha
To: None <port-sparc64@netbsd.org>
From: Jed Davis <jldavis+netbsdlist@cs.oberlin.edu>
List: port-sparc64
Date: 06/27/2002 18:14:44
Manuel Bouyer <bouyer@antioche.eu.org> writes:

> On Thu, Jun 27, 2002 at 01:40:40PM +0900, Sung-Won Chung wrote:
>> 
>> Is it possible to build Ultra 1 NetBSD kernel on NetBSD Alpha ?
>> 
>> If possible, is there cross compiler ? or should I make it ?
>
> It should be possible, modulo compiler bugs. I've compiled an alpha
> snapshot on a sparc64 machine.

And I've built a NetBSD/sparc64 snapshot on an Intel Linux machine
(although I did some light makefile editing to suppress the creation
of install media, since that part seemed to be broken and I didn't
need it anyway).  I didn't test the cross-built kernel, though, since
I'd already compiled one natively.

--Jed

Note: make sure the LD_RUN_PATH env var is not set when building the
NetBSD userland; the dynamic linker _really_ doesn't like having an
RPATH linked into it....

-- 
#!/usr/bin/perl -- ## "But life wasn't yes-no, on-off.  Life was shades of gray,
sub f{(($n,$d,@_)=@_)?(substr(## and rainbows not in the order of the spectrum."
" ExhortJavelinBus",$n&&$d/$n,1),$n?f($d##   -- L. E. Modesitt, Jr., _Adiamante_
%$n,$n,@_):&f):("\n")}print f 1461,10324,55001,444162,1208,1341,5660480,79715997