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

  • From: Jessica Hamilton <jessica.l.hamilton@xxxxxxxxx>
  • To: "haiku-development@xxxxxxxxxxxxx" <haiku-development@xxxxxxxxxxxxx>
  • Date: Tue, 7 Apr 2015 08:10:47 +0000

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 @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! >_<

Other related posts: