This is thrown when I try to run the binary. CMake and ninja builds just fine.
Exact error message:
<code>Assertion failed: (m_record != __null), function get_record, file /usr/local/include/boost/log/sources/record_ostream.hpp, line 161.
</code>
<code>Assertion failed: (m_record != __null), function get_record, file /usr/local/include/boost/log/sources/record_ostream.hpp, line 161.
</code>
Assertion failed: (m_record != __null), function get_record, file /usr/local/include/boost/log/sources/record_ostream.hpp, line 161.
Line causing the error:
<code>BOOST_LOG_TRIVIAL(info) << "Started TCP server";
</code>
<code>BOOST_LOG_TRIVIAL(info) << "Started TCP server";
</code>
BOOST_LOG_TRIVIAL(info) << "Started TCP server";
Current environment:
Architecture: ARM (MacBookPro M3)
OS: MacOS
Compiler used: g++-11 (from Homebrew)
Boost version: 1.74
It is working fine on linux environment:
Architecture: Both ARM (running UTM on MacOS to virtualize) and x86-64 (running on AWS EC2 instance)
OS: Debian 12
Compiler used: g++-11
Boost version: 1.74
Using this combination of g++ and boost versions as there is some bug on Debian 12 where you can’t compile Boost 1.74 with g++-12.