[haiku-bugs] Re: [Haiku] #12000: Cross-building Haiku with Haiku host issues

  • From: "jessicah" <trac@xxxxxxxxxxxx>
  • Date: Fri, 24 Apr 2015 02:51:33 -0000

#12000: Cross-building Haiku with Haiku host issues
-------------------------+----------------------------
Reporter: jessicah | Owner: nobody
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: - General | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
-------------------------+----------------------------

Old description:

When trying to build an x86_64 Haiku image on a gcc2h Haiku host, I end
up with an image that can't be booted by the haiku_loader. The error
reported is "Version mismatch between boot loader and kernel!".
I'm failing to see anything obvious in the jam logs that would indicate a
problem with how the files are compiled.
In order to build on Haiku, I use setarch x86 and run all commands in the
gcc4 environment.
{{{
setarch x86
configure --build-cross-tools x86_64 ../buildtools --use-gcc-pipe -j4
jam -q -j4 @minimum-anyboot
}}}
I am also attaching a copy of the log generated by jam.

New description:

When trying to build an x86_64 Haiku image on a gcc2h Haiku host, I end up
with an image that can't be booted by the haiku_loader. The error reported
is "Version mismatch between boot loader and kernel!".
I'm failing to see anything obvious in the jam logs that would indicate a
problem with how the files are compiled.
In order to build on Haiku, I use setarch x86 and run all commands in the
gcc4 environment.
{{{
setarch x86
configure --build-cross-tools x86_64 ../buildtools --use-gcc-pipe -j4
jam -q -j4 @minimum-anyboot
}}}
I am also attaching a copy of the log generated by jam.

--

Comment (by jessicah):

I've found out the problem. The two trees I have (one for the OS image,
one for the UEFI bootloader) were slightly different. The arch_kernel_args
struct changed size!

And it seems that cross-building Haiku on Haiku works very well afterall
:D

I'm currently using NetSurf, and I can't close the ticket (forms are all
broken), so please close if I don't get to it first.

--
Ticket URL: <https://dev.haiku-os.org/ticket/12000#comment:3>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: