Cross compiler related issues

May 11, 20251 min. read

The cross compiler packages (gcc-aarch64, g++-aarch64 etc.) in postmarketOS edge were upgraded and had two known regressions:

Patches were merged to fix it and packages are currently being rebuilt by BPO (see status at build.postmarketos.org).

If you see the following errors:

(4/5) Installing gcc-aarch64 (14.2.0-r6)
ERROR: gcc-aarch64-14.2.0-r6: BAD signature
(5/5) Installing g++-aarch64 (14.2.0-r6)
ERROR: g++-aarch64-14.2.0-r6: BAD signature

Then please delete the old packages from your package cache and try again:

$ cd $(pmbootstrap config work)
$ rm -vf cache_apk_*/gcc-* cache-apk_*/g++-*

We are currently building the cross GCC packages with the same pkgver and pkgrel as Alpine packages and so they were replaced without bumping the pkgrel, which leads to these BAD signature errors.

The workflows for creating cross compiler packages in postmarketOS is currently too error prone, we are looking into fixing this long-term to avoid such types of errors. With that being said, the cross compiler packages should soon work as expected again, if not check #3705.