I have compiled PSRCHIVE on macOS Big Sur using GNU gcc installed by Homebrew (version 10.2.0). I am able to compile everything successfully. However running a command, e.g. psredit -V example.ar I get the following output:
Pulsar::Archive::load with 12 Agents
Pulsar::Archive::load testing Timer
Timer::load convert endian
Timer::load not a timer header
Timer::is_timer invalid MJD=544109933
Pulsar::TimerArchive::Agent::advocate fail Timer::fload
Pulsar::Archive::load testing Baseband
Timer::load convert endian
Timer::load not a timer header
Timer::is_timer invalid MJD=544109933
Pulsar::Archive::load testing EPN
Pulsar::Archive::load testing ASP
IntegrationManager null constructor
Pulsar::Archive ctor this=0x7ffee7a7e110 instances=1
Pulsar::Archive::init
Pulsar::Archive::add_extension appending Receiver
Pulsar::Archive::add_extension appending Backend
Abort trap: 6
If I get it right Abort trap 6 is the error/message about memory reservation issue. I am a bit stuck with it (being macOS newbie). Any help/suggestion is much appreciated!
Diff:
This may be related to
https://stackoverflow.com/questions/65323946/sigabrt-on-throwing-and-catching-exceptions-with-gcc-on-mac-os-x
I think we can safely close this one. It turned out to be related to gcc bug (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98805). Currently the latest version of gcc (10.0.2_4) installed using Homebrew does not produce result in problems upon compiling the code.
Last edit: Maciej Serylak 2021-03-07