New comment by oreo639 on void-packages repository https://github.com/void-linux/void-packages/pull/40821#issuecomment-1358644729 Comment: Here is a patch to fix building on musl: https://gist.github.com/oreo639/a43b23916774fe58910bffce6a848190 It includes a patch that partially reverts: https://github.com/llvm/llvm-project/commit/67b0b02ec9f2bbc57bf8f0550828d97f460ac11f That is necessary to fix usage of abi_tag() on an extern "C" declaration which is explicitly not allowed in gcc: https://github.com/gcc-mirror/gcc/blob/master/gcc/cp/tree.cc#L5350-L5355 This also disables GWP-ASan/`-fsanitize=scudo` since it depends on the broken libexecinfo and GWP-ASan also gets into an infinite loop on musl.