pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: lang/clang fails to build (NetBSD 9/aarch64)
On Thu, 20 Oct 2022 16:48:35 +0000 (UTC)
Benny Siegert <bsiegert%gmail.com@localhost> wrote:
> /usr/pkgsrc/lang/clang/work/clang-14.0.6.src/lib/Interpreter/IncrementalParser.cpp:56:28:
> error: 'state_not_recoverable' is not a member of 'std::errc'
> std::errc::state_not_recoverable,
>
> Any ideas? I assume this is compiled with the system gcc (7.5.0), is that
> too old now to build clang?
I guess std::errc::state_not_recoverable is missing because
ENOTRECOVERABLE is missing from errno.h. So NetBSD-9 itself is too old
and a newer GCC is unlikely to fix it. But this code has not been
touched by upstream for some time so I wonder why it is suddenly
failing? Probably a pkgsrc patch like this would fix it:
+++ lib/Interpreter/IncrementalParser.cpp
@@ -53,7 +53,11 @@ public:
switch (CI.getFrontendOpts().ProgramAction) {
default:
Err = llvm::createStringError(
+#if defined(ENOTRECOVERABLE)
std::errc::state_not_recoverable,
+#else
+ std::errc::not_supported,
+#endif
Home |
Main Index |
Thread Index |
Old Index