Package Details: musl-aarch64 1.2.3-1

Git Clone URL: (read-only, click to copy)
Package Base: musl
Description: Lightweight implementation of C standard library
Upstream URL:
Licenses: MIT
Submitter: felixsinger
Maintainer: felixsinger
Last Packager: felixsinger
Votes: 1
Popularity: 0.188977
First Submitted: 2022-12-30 11:47 (UTC)
Last Updated: 2022-12-30 11:47 (UTC)

Latest Comments

felixsinger commented on 2023-01-21 01:52 (UTC) (edited on 2023-01-21 01:55 (UTC) by felixsinger)


Using makepkg or devtools (extra-x86_64-build) is the same

Sorry for replying late. I'm using one PKGBUILD to build and package for multiple architectures. The steps are mostly the same for all.

Looking at your build log, the x86_64 build runs fine, but it fails at aarch64. I assume you don't have the cross toolchain installed. Depending on what you need, you can remove the other architectures from the variable "_targets" in the PKGBUILD file.

btw what is the purpose of musl-x86_64 which is already in the official repo?

They are similar, yes. I needed other architectures (ARM64 and RISC-V) and so I thought I can just add x86_64 as well. Doesn't hurt. It's just one PKGBUILD file anyway. Also, the package from the official repo puts all files (like scripts and libraries) in the usual directories as everything else. I don't like that, since this is a different libc and it's not related in any way with an usual Arch installation. So I want it to be separated from the Arch installation and that's why I put it in /usr/<arch>-linux-musl, as it's usual for cross compilation targets. This way both libc environments, glibc and musl-libc, can be differentiated.

FabioLolix commented on 2022-12-30 14:18 (UTC)

Using makepkg or devtools (extra-x86_64-build) is the same

btw what is the purpose of musl-x86_64 which is already in the official repo?

felixsinger commented on 2022-12-30 13:01 (UTC)

@FabioLolix: Please provide a full log, including the command which was used for the build. I tested building the package with a fresh Docker container and it worked there.

FabioLolix commented on 2022-12-30 12:24 (UTC)

Fails to build

x86_64-pc-linux-gnu-gcc-ranlib lib/libc.a
checking for C compiler... 
../configure: cannot find a C compiler
==> ERROR: A failure occurred in build().

I have base-devel installed

$ which gcc
$ LANG=C pacman -Qo /usr/sbin/gcc
/usr/bin/gcc is owned by gcc 12.2.0-1