Merged
Conversation
PR danmar#7773 broke the build on OpenBSD.
|
Collaborator
|
Please provide the actual build failure. A bit surprising though since according to https://man.openbsd.org/backtrace it should be available. |
Contributor
Author
|
On Thu, Sep 25, 2025 at 07:12:37AM -0700, Oliver Stöneberg wrote:
firewave left a comment (danmar/cppcheck#7855)
Please provide the actual build failure.
A bit surprising though since according to https://man.openbsd.org/backtrace it should be available.
Error during linking, you probably need to link against lexecinfo.
ld: error: undefined symbol: backtrace
>> referenced by stacktrace.cpp:37 (/home/anton/canvas/static-analysis/src/cppcheck/cli/stacktrace.cpp:37)
>> CMakeFiles/cli_objs.dir/stacktrace.cpp.o:(print_stacktrace(__sFILE*, int, bool, int, bool))
ld: error: undefined symbol: backtrace_symbols
>> referenced by stacktrace.cpp:52 (/home/anton/canvas/static-analysis/src/cppcheck/cli/stacktrace.cpp:52)
>> CMakeFiles/cli_objs.dir/stacktrace.cpp.o:(print_stacktrace(__sFILE*, int, bool, int, bool))
c++: error: linker command failed with exit code 1 (use -v to see invocation)
|
Collaborator
|
Thanks.
Should be easy in CMake and we should use https://cmake.org/cmake/help/latest/module/CheckLibraryExists.html for that (I also have some WIP code to detect the include in CMake). But needs some trickery in the regular make. So let's go with the hotfix for now and do that at a later date. I filed https://trac.cppcheck.net/ticket/14159 about it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



PR #7773 broke the build on OpenBSD.