You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Got errors like the ones shown below. On gcc version 12.2.0, boost 1.74.
Had to add -Wno-mismatched-new-delete flag. Happy to PR -- I don't know how safe it is to just add -Wno flags for everyone whenever things like this happen. Probably this is transient due to older boost / newer gcc.
In file included from /home/mhasse/code/public/anaconda3/envs/py38/include/boost/checked_delete.hpp:15,
from /home/mhasse/code/public/anaconda3/envs/py38/include/boost/smart_ptr/detail/sp_counted_impl.hpp:27,
from /home/mhasse/code/public/anaconda3/envs/py38/include/boost/smart_ptr/detail/shared_count.hpp:27,
from /home/mhasse/code/public/anaconda3/envs/py38/include/boost/smart_ptr/shared_ptr.hpp:17:
In function ‘void boost::checked_delete(T*) [with T = float]’,
inlined from ‘boost::detail::shared_count::shared_count(Y*) [with Y = float]’ at /home/mhasse/code/public/anaconda3/envs/py38/include/boost/smart_ptr/detail/shared_count.hpp:154:34,
inlined from ‘void boost::detail::sp_pointer_construct(boost::shared_ptr<X>*, Y*, shared_count&) [with T = float; Y = float]’ at /home/mhasse/code/public/anaconda3/envs/py38/include/boost/smart_ptr/shared_ptr.hpp:279:20,
inlined from ‘boost::shared_ptr<T>::shared_ptr(Y*) [with Y = float; T = float]’ at /home/mhasse/code/public/anaconda3/envs/py38/include/boost/smart_ptr/shared_ptr.hpp:373:44,
inlined from ‘static G3TimestreamPtr G3Timestream::G3TimestreamPythonHelpers::timestream_from_iterable(boost::python::api::object, G3Timestream::TimestreamUnits)’ at /home/mhasse/work/code/simonso/spt3g_software/core/src/G3Timestream.cxx:929:31:
/home/mhasse/code/public/anaconda3/envs/py38/include/boost/core/checked_delete.hpp:36:5: error: ‘void operator delete(void*, std::size_t)’ called on pointer returned from a mismatched allocation function [-Werror=mismatched-new-delete]
36 | delete x;
| ^~~~~~~~
The text was updated successfully, but these errors were encountered:
Got errors like the ones shown below. On gcc version 12.2.0, boost 1.74.
Had to add -Wno-mismatched-new-delete flag. Happy to PR -- I don't know how safe it is to just add -Wno flags for everyone whenever things like this happen. Probably this is transient due to older boost / newer gcc.
The text was updated successfully, but these errors were encountered: