The BOOST_STACKTRACE_HAS_BACKTRACE check doesn't seem to work with clang
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- cmake, cpp
- Domain
- build-system
Research direction
Start at the CMake logic for the BOOST_STACKTRACE_HAS_BACKTRACE check and review how it locates backtrace.h when configuring with clang. Reproduce the failed check on Ubuntu 24.04 with clang and the GCC libbacktrace installation, then confirm configuration succeeds without explicitly defining BOOST_STACKTRACE_BACKTRACE_INCLUDE_FILE.
Written by the indexing model from the issue text.
Description
When configuring cmake on ubuntu 24.04 with clang, the check for libbacktrace doesn't seem to work, even when libbacktrace is installed in the default location.
For reference, gcc puts libbacktrace here:
/usr/lib/gcc/x86_64-linux-gnu/13/include/backtrace.h
Configuring with clang, we see:
[build] -- Performing Test BOOST_STACKTRACE_HAS_BACKTRACE
[build] -- Performing Test BOOST_STACKTRACE_HAS_BACKTRACE - Failed
This can be corrected by explicitly telling the library where the header resides (the extra escapes are to pass the literal quotes all the way in to the header file as a define):
-DCMAKE_CXX_FLAGS="-DBOOST_STACKTRACE_BACKTRACE_INCLUDE_FILE=\\\"/usr/lib/gcc/x86_64-linux-gnu/13/include/backtrace.h\\\""
Can the cmake check of BOOST_STACKTRACE_HAS_BACKTRACE be modified to look at the gcc install location?
- Dominant language
- C++
- Stars
- 497
- Forks
- 86
- Avg merge
- 8d 20h
- Merged PRs (30d)
- 3
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from boostorg/stacktrace
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
boostorg/stacktrace#233 ·
-
Ошибка в Inscape Open
Difficulty 5/5 Over a week Newbie friendliness 15/100
boostorg/stacktrace#211 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
boostorg/stacktrace#208 · 6 comments ·
-
enhancement help wanted
Difficulty 5/5 Over a week Newbie friendliness 25/100
boostorg/stacktrace#176 · 1 comment ·
-
enhancement help wanted
Difficulty 4/5 3-5 days Newbie friendliness 35/100
boostorg/stacktrace#163 · 7 comments ·
All issues in boostorg/stacktrace
Similar issues
-
AuTest Bug Tests
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
apache/trafficserver#13714 ·
-
bug build
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
facebookincubator/velox#19143 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
tenstorrent/tt-metal#57393 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
objectionary/eo-graphs#74 ·