x86_64-netbsd-none
- LLVM13's clang fails to build on NetBSD 9.0.
- The error was pinned down to NetBSD's libstdc++ not providing
std::errc::state_not_recoverable.- https://github.com/llvm/llvm-project/blob/f4f9ad0f5d8e8994c677c3712dff7585bf8bd963/clang/lib/Interpreter/IncrementalParser.cpp#L56
- NetBSD 10 will have the relevant enum value.
- However, NetBSD 9 will still be supported for a long time, which means a patch to LLVM.
In my opinion, LLVM is using the wrong error code here.
POSIX sez "ENOTRECOVERABLE - State not recoverable. The state protected by a robust mutex is not recoverable."
The LLVM code in question is completely unrelated to mutexes.
If I had to use an errno code here, I'd use ENOTSUP (std::errc::not_supported).
I had already filed a bug report about this upstream - please provide your suggestion there. That'll also show that more than one person is interested in this :) Thanks. https://bugs.llvm.org/show_bug.cgi?id=52587
Making sure we can reference the correct upstream issue after LLVM's Bugzilla migration: https://github.com/llvm/llvm-project/issues/51929