Opened 5 years ago

Closed 4 years ago

Last modified 4 years ago

#13178 closed Bugs (obsolete)

Compilation error on mac with 1.65.0

Reported by: aditya.marella@… Owned by: Joel de Guzman
Milestone: To Be Determined Component: None
Version: Boost 1.65.0 Severity: Showstopper
Keywords: Cc:

Description

Component: stacktrace

Cannot compile the following code on mac

/* test.cpp */
#include <signal.h>     // ::signal, ::raise
#include <boost/stacktrace.hpp>

void my_signal_handler(int signum) {
    ::signal(signum, SIG_DFL);
    boost::stacktrace::safe_dump_to("./backtrace.dump");
    ::raise(SIGABRT);
}

int main (void) {
    ::signal(SIGABRT, &my_signal_handler);
    raise(SIGABRT);
}

Error:

g++ -o test test.cpp 
In file included from test.cpp:2:
In file included from /usr/local/include/boost/stacktrace.hpp:15:
In file included from /usr/local/include/boost/stacktrace/frame.hpp:20:
/usr/local/include/boost/stacktrace/safe_dump_to.hpp:15:10: fatal error: 'boost/stacktrace/detail/push_options.pp' file not found
#include <boost/stacktrace/detail/push_options.pp>
         ^
1 error generated.

Change History (3)

in reply to:  description comment:1 by Mikhail Pavlov <pavlovmu@…>, 5 years ago

I have the same problem on linux. boost/stacktrace/detail/push_options.pp and pop_options.pp files have not been installed by b2.

comment:2 by John Maddock, 4 years ago

Component: Nonespirit
Owner: set to Joel de Guzman
Resolution: obsolete
Status: newclosed

comment:3 by Kohei Takahashi, 4 years ago

Component: spiritNone
Note: See TracTickets for help on using tickets.