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://reviews.llvm.org/D124227 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 libexecinfo (which doesn't work correctly) and GWP-ASan also gets into an infinite loop on musl.