llvm / llvm/llvm-project

llvm 20: NetBSD: lldb build failure

Open
#181,586 3 comments 1 reaction 0 assignees View on GitHub
build-problem lldb platform:netbsd
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

Trying to build lldb from the combined llvm-project-20.1.8.src tarball on NetBSD 11.99.5/x86_64 fails with:

```
FAILED: [code=1] source/Plugins/Process/NetBSD/CMakeFiles/lldbPluginProcessNetBSD.dir/NativeProcessNetBSD.cpp.o
/tmp/devel/lldb/work/.cwrapper/bin/c++ -DHAVE_ROUND -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/tmp/devel/lldb/work/llvm-project-20.1.8.src/lldb/cmake-pkgsrc-build/source/Plugins/Process/NetB
SD -I/tmp/devel/lldb/work/llvm-project-20.1.8.src/lldb/source/Plugins/Process/NetBSD -I/tmp/devel/lldb/work/llvm-project-20.1.8.src/lldb/include -I/tmp/devel/lldb/work/llvm-project-20.1.8.src/lldb/cmake-pkgsrc-build/incl
ude -I/tmp/devel/lldb/work/llvm-project-20.1.8.src/lldb/tools/clang/include -I/tmp/devel/lldb/work/llvm-project-20.1.8.src/lldb/cmake-pkgsrc-build/../clang/include -I/tmp/devel/lldb/work/llvm-project-20.1.8.src/lldb/sour
ce -I/tmp/devel/lldb/work/llvm-project-20.1.8.src/lldb/cmake-pkgsrc-build/source -O2 -g -fstack-clash-protection -I/usr/include -I/usr/include/readline -I/usr/pkg/include -I/usr/pkg/include/libxml2 -I/usr/pkg/include/lua
-5.3 -I/usr/pkg/include/python3.14 -I/usr/pkg/include/ncurses -g -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcas
t-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-
misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-unknown-pragmas -Wno-strict-aliasing -Wno-stringop-truncation -DNDEBUG -std=c++17 -fno-exceptions -funwind-tab
les -MD -MT source/Plugins/Process/NetBSD/CMakeFiles/lldbPluginProcessNetBSD.dir/NativeProcessNetBSD.cpp.o -MF source/Plugins/Process/NetBSD/CMakeFiles/lldbPluginProcessNetBSD.dir/NativeProcessNetBSD.cpp.o.d -o source/Pl
ugins/Process/NetBSD/CMakeFiles/lldbPluginProcessNetBSD.dir/NativeProcessNetBSD.cpp.o -c /tmp/devel/lldb/work/llvm-project-20.1.8.src/lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp
/tmp/devel/lldb/work/llvm-project-20.1.8.src/lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp: In member function 'void lldb_private::process_netbsd::NativeProcessNetBSD::MonitorSIGTRAP(lldb::__pid_t)':
/tmp/devel/lldb/work/llvm-project-20.1.8.src/lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp:306:65: error: 'lldb_private::Status::Status(llvm::Error)' is protected within this context
306 | static_cast(*GetCurrentThread()));
| ^
In file included from /tmp/devel/lldb/work/llvm-project-20.1.8.src/lldb/include/lldb/Host/common/NativeWatchpointList.h:12,
from /tmp/devel/lldb/work/llvm-project-20.1.8.src/lldb/include/lldb/Host/common/NativeProcessProtocol.h:14,
from /tmp/devel/lldb/work/llvm-project-20.1.8.src/lldb/source/Plugins/Process/POSIX/NativeProcessELF.h:13,
from /tmp/devel/lldb/work/llvm-project-20.1.8.src/lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.h:12,
from /tmp/devel/lldb/work/llvm-project-20.1.8.src/lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp:9:
/tmp/devel/lldb/work/llvm-project-20.1.8.src/lldb/include/lldb/Utility/Status.h:236:3: note: declared protected here
236 | Status(llvm::Error error) : m_error(std::move(error)) {}
| ^~~~~~
/tmp/devel/lldb/work/llvm-project-20.1.8.src/lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp: In member function 'virtual lldb_private::Status lldb_private::process_netbsd::NativeProcessNetBSD::Resume(const ll
db_private::ResumeActionList&)':
/tmp/devel/lldb/work/llvm-project-20.1.8.src/lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp:493:38: error: 'lldb_private::Status::Status(llvm::Error)' is protected within this context
493 | return Status(siginfo.takeError());
| ^
/tmp/devel/lldb/work/llvm-project-20.1.8.src/lldb/include/lldb/Utility/Status.h:236:3: note: declared protected here
236 | Status(llvm::Error error) : m_error(std::move(error)) {}
| ^~~~~~
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the LLVM 20.1.8 LLDB build on NetBSD, then inspect lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp at lines 306 and 493 and the Status constructor at lldb/include/lldb/Utility/Status.h:236. Compare the failing error handling with nearby code and confirm that the NetBSD LLDB build completes without these errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp
Domain
devtools, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.