Modify

Opened 4 months ago

Last modified 4 months ago

#13178 new Bugs

Compilation error on mac with 1.65.0

Reported by: aditya.marella@… Owned by:
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.

Attachments (0)

Change History (1)

comment:1 in reply to:  description Changed 4 months ago by Mikhail Pavlov <pavlovmu@…>

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.