-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests/stacktrace_test.cc fails #160
Comments
Hi @qzmfranklin, Sorry you're having some issues here. You can find information about different configurations for boost stacktrace and their dependencies here: https://www.boost.org/doc/libs/1_71_0/doc/html/stacktrace/configuration_and_build.html On linux-x86_64, this repo's
Let me see if I can reproduce and investigate any possible solutions... Is a working boost stacktrace relevant to your use of rules_boost in this project, or is this more of an inquiry into the broken test suite under some situations? |
I can confirm that |
Wow, thanks for the nicely formatted and informative reply. Re
The latter (a broken test suite). The motivating situation for me was to introduce boost into our build system for building a few other libraries that depend on boost. We do not actively use boost directly yet. But I view supporting building boost from source as an important milestone for our team as lots of high impact libraries depend on it. I appreciate your help here. |
Was there any solution to this problem? |
Not every OS provides the required library by default. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66570 Should be fixable by installing the package on your system. Or if rules_boost included https://github.com/ianlancetaylor/libbacktrace |
I'm building libbacktrace in bazel at the moment. I'd be happy to send a PR to this repo |
I managed to get this to work with a hermetic cc toolchain in this commit by building libbstacktrace hermetically. |
I am having same issue. I am trying to use Maybe `:stacktrace_addr2line" , so I can use that insead of backtrace.cpp (which is default on Linux). I only use the stacktrace at top level of main when exiting abnormally, so performance is not horribly important. Also I am trying to make static executable so less library depdendencies the better. |
commit: 2020/01/16 master 9eff867
repro:
My repo already build zlib, lzma, bzip2, etc.. So I just reused my existing builds of those repositories. I also modified the workspace names of zlib and lzma to match rules_boost.
Essentially:
I searched the
boost-1.71.0
repository usingfind . -name 'backtrace.h'
. But it did not return me anything.I also briefly Google 'backtrace.h boost'. The first few pages relate to the 0boost stacktrace module but does not mention anything super useful yet.
I'm not familiar with boost. Running out of ideas to try here.
Any pointers or keywords would be appreciated.
Thanks.
The text was updated successfully, but these errors were encountered: