Use -fexperimental-library cxxflag, change -std=c++23 to -std=c++2b.
undefined reference to {get,set,swap}contextMusl doesn't implement these functions because they are considered to be deprecated in POSIX standards. However this is still being used, for example, in libxcrypt.
To address this problem, install libucontext and add -lucontext to compile parameters.
fatal: library not found: cThe linker tries to link to musl static libs but failed. You can install musl-static, but the better way is to figure out if linking against static libc can be avoided.
fatal error: 'sys/{queue,cdefs,tree}.h' file not foundInstall bsd-compat-headers. Remember also set sys-{queue,cdefs,tree}.h (the one that not found) as depends if you are making a package.
fatal error: 'fts.h' file not foundInstall musl-fts. Remember also set musl-fts as makedepends if you are making a package. You may also add -lfts to LDFLAGS if you see undefined symbol: fts_{open,close,read}
fatal error: 'crypt.h' file not foundInstall libxcrypt. Remember also set libxcrypt as makedepends.
utmps not working for programsmusl provides dummy implementations.The old PKGBUILD does only removes the headers(utmp.h) but the dummy functions are included in the library. They are weak symbols so it causes no problem unless the application using utmp is NOT linked with -lutmps. Considering combining utmps and musl.
SIGSEGV when running rust programsMake sure (Patch applied)RUSTFLAGS='-C target-feature=-crt-static' is added.