State of Haiku PPC?

still waiting for ./configure --cross-tools-source ../buildtools --build-cross-tools ppcto finish, i am expecting it to error when i run jam -q haiku-boot-cd

Alright, here are the errors.

A lot of errors like (.text+0xb0): undefined reference to `_restgpr_31_x'.

Either I also need to re-git buildtools, or PowerPC just fails to compile normally.

Also the start of the log looks like this, it seems to also try bundling/compiling HyperV.

The errors may be related to buildtools,so yes,better re-clone them from Haikus servers to be on the safe side.
I never worked with PowerPC,but the x86_64 build throws similar errors when the buildtools for the 32bit BIOS bootloader aren’t there.
For the other log,I think the bigger issue is that you’re trying to use binary packages for your build and it tells you that they don’t exist.
Since there is no package repository for PowerPC yet,you’ll have to do a bootstrap build instead where all required packages are built from source.
To do that,run jam -q @bootstrap-raw haiku-boot-cd
See here for more information:

1 Like

Alright, recompiling everything to see if this helps.

Got way fewer errors.

You can’t just run bootstrap this way. It also needs specific arguments to the configure script and extra source repositories (haikuporter, haikuports and haikuports.cross).

The instructions for bootstrap builds are here:

The non-bootstrap build seems currently broken due to some package updates that were not kept in sync. We’ll have a look at fixing that.

3 Likes

I see, so i need to get haikuports and compile that too?

The build instructions are a bit weird to me compared to other OSes, also it’s late; so I don’t fully understand.

To build the ppc port you need to do a bootstrap build, this is a bit more involved than a normal build (but I don’t know the specifics either, maybe you can find it with this keyword)

ill wait for a solid answer, I don’t want to bash my head against a wall, since I think having someone who knows how to do a from-scratch compiled build could lead me better; especially since something as simple as me git cloning the haiku repository and such from github instead of haiku’s servers alone caused issues.

The documentation I linked should provide the information you need.

A normal build of Haiku uses pre-compiled packages for several dependencies.

A “bootstrap” build does everything from sources. It will compile ICU, freetype, and everything needed to build a minimal bootable system.

The steps to achieve this are:

  • Clone all the needed repositories: buildtools, haiku, haikuporter, haikuports, haikuports.cross
  • Follow the instructions from the documentation. You need the extra arguments in the page I linked in addition to the ones specific to your architecture (PPC in this case), both for configure and jam
  • Since this builds everything from source, the process will take a long time (probably a few hours the first time, depending on your build hardware)
  • This is not as extensively tested as the normal build, and not all variants of Linux, BSD, etc may be usable for this

After you run jam the process should be automated, and it will build everything for you using haikuporter and the haikuports repositories, which provide information on how to build each package.

I’m a dumbass, how do i compile those for PPC?

digispace@lukewarren-linuxmint:/mnt/31da3f6d-4c92-4273-bcbf-5c5f9ea98af9/haiku$ ./configure --bootstrap ../haikuporter/haikuporter ../haikuports.cross ../haikuports --cross-tools-source ../buildtools --build-cross-tools ppc
ppc crosstools already exist in /mnt/31da3f6d-4c92-4273-bcbf-5c5f9ea98af9/haiku/generated/cross-tools-ppc; skipping build
Configured successfully!
digispace@lukewarren-linuxmint:/mnt/31da3f6d-4c92-4273-bcbf-5c5f9ea98af9/haiku$ ./configure --bootstrap ../haikuporter/haikuporter ../haikuports.cross ../haikuports --cross-tools-prefix cross-tools/bin/ppc-unknown-haiku-
./configure: 1: cross-tools/bin/ppc-unknown-haiku-gcc: not found
dirname: missing operand
Try ‘dirname --help’ for more information.
./configure: 1: cross-tools/bin/ppc-unknown-haiku-gcc: not found
./configure: 1: cross-tools/bin/ppc-unknown-haiku-gcc: not found
Unsupported gcc target machine:
digispace@lukewarren-linuxmint:/mnt/31da3f6d-4c92-4273-bcbf-5c5f9ea98af9/haiku$ ./configure --bootstrap ../haikuporter/haikuporter ../haikuports.cross ../haikuports --build-cross-tools ppc
Please specify the build tools to use or build (via --cross-tools-prefix or --build-cross-tools).
For more info, invoke ./configure --help

I don’t know how to use PPC specifically for those LOL

Til recently, the bootloader failed to boot the kernel at all without a changed up linker script (created binaries only had one phdr which had both the code and data segement, with the data segment having an executable flag (which is necessary for non-secure-plt binaries). powerpc should build now, however, it would not make sense to publish images that fail to initialize virtual memory.

There is independant documentation of the PPC memory management, which I’m currently taking a look at. AFAIK, the memory management also worked at some point. Doing this “deai-ing” seems like a source of pain and I’d prefer just not doing it that way.

Yes, it does. You’ll first have to do a bootstrap build. You can either use that, or unbootstrap it to do a normal build. Tough instead of an iso, you’d probably prefer a netboot. Its honestly quite convenient to not have to burn a CD/copy images around, everytime you want to test something

I do NOT have the setup to netboot right now, I’ve tried, and I cannot netboot with my current splitter setup; I’d need to do a CD on a USB, which typically works either way.

Also I still cant figure out the whole bootstrap build thing.

do you have a valid ppc compiler toolset? the error messages you show dont seem like you have one. i do not know where to find one, so try asking on the linux mint forum

If you git clone the build tools over for cross-platform hosts build:

--build-cross-tools ppc
–cross-tools-source /path/to/buildtools
–bootstrap …

Walk each mentioned line in the docs. Ask devs on IRC and/or forum and document any errors along the way to completion.