Giter Club home page Giter Club logo

Comments (6)

apolukhin avatar apolukhin commented on July 18, 2024

Add -d+2 to the command line to get more information about the build.

For example:

boost/libs/stacktrace/build$ ../../../b2 'define=BOOST_STACKTRACE_BACKTRACE_INCLUDE_FILE=</usr/lib/gcc/x86_64-linux-gnu/11/include/backtrace.h>' boost_stacktrace_from_exception -d+2
Performing configuration checks

    - default address-model    : 64-bit (cached) [1]
    - default architecture     : x86 (cached) [1]
    - symlinks supported       : yes (cached)
    - cxx11_rvalue_references  : yes [2]
    - cxx11_rvalue_references  : yes [2]

[1] gcc-9
[2] gcc-9/debug/threadapi-pthread/visibility-hidden
gcc.compile.c++ ../../../bin.v2/libs/stacktrace/build/gcc-9/debug/visibility-hidden/from_exception.o

    "g++"   -fvisibility-inlines-hidden -fPIC -m64 -O0 -fno-inline -Wall -g -fvisibility=hidden  -DBOOST_ALL_NO_LIB=1 -DBOOST_STACKTRACE_BACKTRACE_INCLUDE_FILE=</usr/lib/gcc/x86_64-linux-gnu/11/include/backtrace.h>  -I"../../.."  -c -o "../../../bin.v2/libs/stacktrace/build/gcc-9/debug/visibility-hidden/from_exception.o" "../../../libs/stacktrace/build/../src/from_exception.cpp"

/bin/sh: 2: cannot open /usr/lib/gcc/x86_64-linux-gnu/11/include/backtrace.h: No such file

What is the output in your case?

from stacktrace.

bgemmill avatar bgemmill commented on July 18, 2024
$ ../../../b2 'define=BOOST_STACKTRACE_BACKTRACE_INCLUDE_FILE=</usr/lib/gcc/x86_64-linux-gnu/13/include/backtrace.h>' -d+2 boost_stacktrace_from_exception
Performing configuration checks

    - default address-model    : 64-bit (cached) [1]
    - default architecture     : x86 (cached) [1]
    - cxx11_rvalue_references  : yes (cached) [2]
    - cxx11_rvalue_references  : yes (cached) [2]
    - cxx11_rvalue_references  : yes (cached) [3]
    - cxx11_rvalue_references  : yes (cached) [3]
    - libbacktrace builds      : no  (cached) [2]
    - cxx11_rvalue_references  : yes (cached) [4]
    - libbacktrace builds      : no  (cached) [4]
    - addr2line builds         : yes (cached) [2]
    - addr2line builds         : yes (cached) [2]
    - WinDbg builds            : no  (cached) [2]
    - WinDbg builds            : no  (cached) [2]
    - WinDbg builds            : no  (cached) [4]
    - WinDbgCached builds      : no  (cached) [2]
    - WinDbgCached builds      : no  (cached) [4]

[1] clang-18
[2] clang-linux-18/debug/python-3.12/visibility-hidden
[3] clang-linux-18/debug/link-static/python-3.12/visibility-hidden
[4] clang-linux-18/debug/build-no/python-3.12/visibility-hidden

edit: copied the wrong output the first time.

Am I definining the location of backtrace correctly for b2 here?

from stacktrace.

apolukhin avatar apolukhin commented on July 18, 2024

LGTM

from stacktrace.

apolukhin avatar apolukhin commented on July 18, 2024

Add a -a along with -d+2 option, so that the cached values are recomputed. Attach the build log to this issue

from stacktrace.

bgemmill avatar bgemmill commented on July 18, 2024

Thanks for getting back to me. I see:

$ ../../../b2 -d+2 -a 'define=BOOST_STACKTRACE_BACKTRACE_INCLUDE_FILE=</usr/lib/gcc/x86_64-linux-gnu/13/include/backtrace.h>' boost_stacktrace_from_exception
Performing configuration checks

    - default address-model    : none [1]
    - default architecture     : none [1]
    - cxx11_rvalue_references  : yes [2]
    - cxx11_rvalue_references  : yes [3]
    - libbacktrace builds      : no [2]
    - cxx11_rvalue_references  : yes [4]
    - libbacktrace builds      : no [4]

[1] clang-18
[2] clang-linux-18/debug/python-3.12/visibility-hidden
[3] clang-linux-18/debug/link-static/python-3.12/visibility-hidden
[4] clang-linux-18/debug/build-no/python-3.12/visibility-hidden

This appears to output a 0 byte file called -DTEST_BOOST_NO_CXX11_RVALUE_REFERENCES.

Are there other build logs I should be looking for?

from stacktrace.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.