There's a closed pull request on the void-packages repository [WIP] ocaml: fix build on aarch64-musl https://github.com/void-linux/void-packages/pull/36268 Description: Earlier fix for *-musl platforms has been "nopie=yes", which disables PIE by modifying CFLAGS/LDFLAGS/... during build. This results in OCaml's runtime shared library linking fail. Later OCaml releases incorporated a fix for *-musl platforms that properly disables PIE only where required. Set nopie_files instead, which respects OCaml's build system choice of CFLAGS/LDFLAGS/... and fixes aarch64-build. I am not entirely sure whether `nopie=yes` in every package is a good idea. It seems to only be required on *-musl except x86_64-musl(?). #### Testing the changes - I tested the changes in this PR: **YES** #### Local build testing - I built this PR locally for my native architecture, (aarch64-musl) [ci skip]