id summary reporter owner description type status milestone component version severity resolution keywords cc 13625 Boost.test fail to compile with -Werror=missing-declarations on some architectures Martin Quinson Raffi Enficiaud "Hello, here is the error code we get: {{{ 18:07:49 In file included from /opt/boost/include/boost/test/unit_test.hpp:19:0, 18:07:49 from /builds/workspace/SimGrid-Multi/build_mode/ModelChecker/node/simgrid-centos7-x64/build/SimGrid-3.20.90/src/mc/sosp/PageStore_test.cpp:8: 18:07:49 /opt/boost/include/boost/test/unit_test_suite.hpp: In function 'bool init_unit_test()': 18:07:49 /opt/boost/include/boost/test/unit_test_suite.hpp:375:6: error: no previous declaration for 'bool init_unit_test()' [-Werror=missing-declarations] 18:07:49 bool init_unit_test() { 18:07:49 ^~~~~~~~~~~~~~ 18:07:49 cc1plus: all warnings being treated as errors }}} * System:: Centos7 with Boost 1.67 compiled from sources in /opt. * Full logs:: https://ci.inria.fr/simgrid/job/SimGrid-Multi/build_mode=ModelChecker,node=simgrid-centos7-x64/5662/consoleFull * Workaround:: simply add `bool init_unit_test();` before including boost/test/unit_test.hpp The weird thing is that the exact same code is compiling like a charm on many other platforms that we test. We saw another instance of this bug back in May 2017, on NetBSD systems where we compiled Boost.test from the sources. At that time, we simply added the workaround described above without too much thinking. Thanks for this great libraries, Mt" Bugs closed Boost 1.69 test Boost 1.67.0 Problem fixed mquinson@…