Run pmbootstrap on non-x86 64 arches

While most people are running pmbootstrap on, it is also possible to run it on other architectures supported by postmarketOS. As of writing, some of the package/image building related tools are only built for  in the official binary packages repository (blocked by ). This article covers related errors, and how to work around them. If your problem is not listed here, ask in the chat or issues for help and consider adding the solution to your problem.

Building a PinePhone image on stable channel
The PinePhone depends on the  package, which is being cross compiled from the native arch to the   architecture. When trying to build an image for the PinePhone on the stable channel, pmbootstrap will currently display the following error:

If you are fine with running  as well, simply switch to the   channel in    and try again. Only if you want to build for the  channel, use the following workaround.

Enter the pmaports dir, then change  to   in the following files: temp/binutils-cross-embedded/APKBUILD temp/gcc-cross-embedded-stage1/APKBUILD temp/gcc-cross-embedded/APKBUILD temp/newlib-stage1/APKBUILD

Make sure that you have answered  in   with yes. Then try the  command again, and pmbootstrap will build the missing dependencies for your host architecture (it may take some time, on the PinePhone two hours or so). Then it will proceed with building the image.