Project

General

Profile

Wt with boost-1.54 compile error

Added by Olexandr Anyshchenko almost 11 years ago

Hello. When I upgrated boost version to 1.54 i've got that compile error:

[ 83%] Building CXX object src/CMakeFiles/wt.dir/JQuery_js.o
In file included from /usr/local/include/boost/math/special_functions/detail/round_fwd.hpp:12:0,
                 from /usr/local/include/boost/math/special_functions/math_fwd.hpp:26,
                 from /usr/local/include/boost/math/special_functions/sign.hpp:17,
                 from /usr/local/include/boost/lexical_cast.hpp:172,
                 from /home/alex/tmp/wt-src/src/Wt/WLogger:11,
                 from /home/alex/tmp/wt-src/src/Wt/WJavaScript:14,
                 from /home/alex/tmp/wt-src/src/Wt/WWidget:15,
                 from /home/alex/tmp/wt-src/src/Wt/WWebWidget:14,
                 from /home/alex/tmp/wt-src/src/web/DomElement.h:14,
                 from /home/alex/tmp/wt-src/src/web/WebUtils.C:8:
/usr/local/include/boost/math/tools/promotion.hpp: In instantiation of 'boost::math::tools::promote_args<long double, float, float, float, float, float>':
/usr/local/include/boost/math/special_functions/sign.hpp:114:50:   instantiated from 'int boost::math::signbit(T) [with T = long double]'
/usr/local/include/boost/spirit/home/support/detail/sign.hpp:47:51:   instantiated from 'bool boost::spirit::detail::signbit(T) [with T = long double]'
/usr/local/include/boost/spirit/home/karma/numeric/detail/numeric_utils.hpp:130:47:   instantiated from here
/usr/local/include/boost/math/tools/promotion.hpp:141:1: error: invalid application of 'sizeof' to incomplete type 'boost::STATIC_ASSERTION_FAILURE<false>' 
*** [src/CMakeFiles/wt.dir/web/WebUtils.o] Error code 1

What's wrong ? Thanks.


Replies (4)

RE: Wt with boost-1.54 compile error - Added by Wim Dumon almost 11 years ago

What compiler version/OS?

BR,

Wim.

RE: Wt with boost-1.54 compile error - Added by Wim Dumon almost 11 years ago

If this is the complete error message, this looks more like an issue in boost or gcc 4.9 than Wt, but I can't tell for sure. Do you get the same errors with gcc 4.8?

From a quick look, gcc 4.9 doesn't seem to be a platform on which boost was tested?

BR,

Wim.

RE: Wt with boost-1.54 compile error - Added by Olexandr Anyshchenko almost 11 years ago

I downgraded boost to 1.53 and compiled with gcc 4.7.4. Everything is OK.

    (1-4/4)