[1.45][Serialization] fails to cross-compile using arm-linux-uclibc toolchain

Building boost 1.45 on Debian using arm-linux-uclibc toolchain fails to compile serialization lib, due to static assertions in basic_binary_?archive.hpp's at: BOOST_STATIC_ASSERT(sizeof(tracking_type) == sizeof(bool)); BOOST_STATIC_ASSERT(sizeof(class_id_type) == sizeof(int_least16_t)); BOOST_STATIC_ASSERT(sizeof(class_id_reference_type) == sizeof(int_least16_t)); It appears to be some uclibc issue, since it builds fine using glibc toolchains. Is it safe to simply comment out these assertions? Thanks in advance, Alex

Alex Potapenko wrote:
Building boost 1.45 on Debian using arm-linux-uclibc toolchain fails to compile serialization lib, due to static assertions in basic_binary_?archive.hpp's at:
BOOST_STATIC_ASSERT(sizeof(tracking_type) == sizeof(bool));
The above has been removed from the trunk version
BOOST_STATIC_ASSERT(sizeof(class_id_type) == sizeof(int_least16_t)); BOOST_STATIC_ASSERT(sizeof(class_id_reference_type) == sizeof(int_least16_t));
These should be investigated. before commenting out. It could be detecting something unexpected in a pre-requisite library. Robert Ramey
participants (2)
-
Alex Potapenko
-
Robert Ramey