zig-bootstrap icon indicating copy to clipboard operation
zig-bootstrap copied to clipboard

x86_64-netbsd-none

Open lun-4 opened this issue 4 years ago • 6 comments

  • 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.

lun-4 avatar Oct 08 '21 14:10 lun-4

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).

alarixnia avatar Oct 09 '21 09:10 alarixnia

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

0-wiz-0 avatar Nov 24 '21 20:11 0-wiz-0

Making sure we can reference the correct upstream issue after LLVM's Bugzilla migration: https://github.com/llvm/llvm-project/issues/51929

lun-4 avatar Apr 08 '22 17:04 lun-4