[haiku-bugs] Re: [Haiku] #12078: Cross-compiling for PPC fails

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Wed, 20 May 2015 06:33:23 -0000

#12078: Cross-compiling for PPC fails
----------------------------+----------------------------
Reporter: haiqu | Owner: bonefish
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: Build System | Version: R1/Development
Resolution: | Keywords: PPC
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
----------------------------+----------------------------

Comment (by pulkomandy):

The nightly-anyboot profile makes little sense for PPC, as you won't need
an MBR to boot there. Building the ISO or a raw image would be better.

The buildbots use {{{jam -q haiku.image}}} to build a raw image. However,
this will also fail for another reason: we need to bootstrap the build
first.

There is some information on bootstrapping here: https://dev.haiku-
os.org/wiki/PackageManagement/Bootstrapping

The process is a bit tricky and can't work as is as long as the port to a
new platform isn't far enough to boot a minimal system. For the ARM port
we hacked around this, by building the bootstrap packages then converting
them to non-bootstrap ones. It is done using this script after running the
bootstrap build to get the required packages: http://cgit.haiku-
os.org/haiku/tree/3rdparty/pulkomandy/unbootstrap.sh

Once this is done, and the packages are made available in the
repositories, it will be possible to do a normal build. However, it is a
good idea to start with a minimal one. On ARM we have a specific target
(haiku-mmc) that builds a bootable MMC image with only the kernel and
bootloader, on PPC I think the target to use is the haiku boot floppy
(don't know its exact name).

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

Other related posts: