AArch64 native build failure (sony-suzu)
Describe your issue
Trying to build sony-suzu (or whatever other device pulling in gcc6-aarch64 and similar) on a AArch64 machine natively will fail due to these dependencies, built from source, having arch="x86_64", but that's just the tip of the iceberg...
What's the expected behaviour?
Probably these dependencies should be arch="all", but that doesn't solve the issue anyway...
What's the current behaviour?
[00:33:09] (rootfs_sony-suzu) install alpine-base [00:33:11] NOTE: You can edit the 'arch=' line inside the APKBUILD [00:33:11] ERROR: Can't build 'binutils-aarch64' for architecture aarch64 [00:33:11] See also: https://postmarketos.org/troubleshooting
How to reproduce your issue?
Try to build PostmarketOS for sony-suzu on an ARM64 machine natively...
What device are you using?
sony-suzu
On what postmarketOS version did you encounter the issue?
-
edge ( master
branch) -
v21.03
-
v20.05
Additional information
We are trying to build PostmarketOS on our buildserver, an AArch64 machine. Changing the APKBUILD info for binutils-aarch64 and gcc6-aarch64 brings it further... builds binutils, but then...
(1/17) Installing binutils-aarch64 (2.35.2-r2)
ERROR: binutils-aarch64-2.35.2-r2: trying to overwrite usr/aarch64-alpine-linux-musl/bin/ar owned by binutils-2.35.2-r2.
ERROR: binutils-aarch64-2.35.2-r2: trying to overwrite usr/aarch64-alpine-linux-musl/bin/as owned by binutils-2.35.2-r2.
ERROR: binutils-aarch64-2.35.2-r2: trying to overwrite usr/aarch64-alpine-linux-musl/bin/ld owned by binutils-2.35.2-r2.
ERROR: binutils-aarch64-2.35.2-r2: usr/aarch64-alpine-linux-musl/bin/ld.bfd: no hard link target (usr/aarch64-alpine-linux-musl/bin/ld) in archive
(I will spare you the other very similar 9848932 billion lines....)
I have no idea about how to proceed here, if you have any suggestion... we're totally open.
Thank You!
- SoMainline