[haiku-development] Re: Cross-compiling Haiku on Haiku host

  • From: Rob Judd <judd@xxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 7 Jun 2015 09:13:11 +0000 (UTC)

Jessica Hamilton <jessica.l.hamilton@...> writes:


Is it possible to cross-compile Haiku on a Haiku host?

I'm running gcc2h, and want to build an x86_64 version of Haiku for my
UEFI hacking with QEMU.

However, doing something like ./configure --build-cross-tools x86_64
../buildtools ... followed by jam -q -j4 <at> minimum-anyboot results in
an image that doesn't boot. I used setarch x86 before running any of
this... in case that matters.

I get "Version mismatch between boot loader and kernel!" when I try to
boot this image with my UEFI loader.

I found an older image I had built whilst was still running Ubuntu,
and this image boots fine with the UEFI loader, so I'm suspecting
something in our build system is assuming too much about the host
environment. Unfortunately, it all compiles fine! >_<



Yep, I've done it here.

../haiku/configure --build-cross-tools x86_64 ../buildtools --use-gcc-pipe -j2

../haiku/configure --cross-tools-prefix
./cross-tools-x86_64/bin/x86_64-unknown-haiku- \
--use-gcc-pipe -j2

#We be jammin' mon!
jam -q -j2 @nightly-anyboot

Maybe the minimum-anyboot target is broken.

Rob




Other related posts: