Boost logo

Boost :

Subject: Re: [boost] Clang Darwin trunk Cray 8.0 and max_digits10 support - problem in config?
From: Lars Viklund (zao_at_[hidden])
Date: 2012-07-09 10:39:21


On Mon, Jul 09, 2012 at 03:18:46PM +0100, Paul A. Bristow wrote:
> I note that the test of ztest_max_digits10 and zztest_max_digits10 in
>
> http://www.boost.org/development/tests/trunk/developer/math.html
>
> both fail for these platforms.
>
> ztest_max_digits10 tests of native std::numeric_limits<>::max_digits10 is supported.
> zztest_max_digits10 test if BOOST_NO_NUMERIC_LIMITS_LOWEST is a proxy to signal support.
>
> where using std::numeric_limits<>::max_digits10 should be possible using
> BOOST_NO_NUMERIC_LIMITS_LOWEST as a proxy
>
> for Clang the messages are
>
> In file included from ../libs/math/test/zztest_max_digits10.cpp:27:
> In file included from ../boost/config.hpp:40:
> ../boost/config/select_stdlib_config.hpp:18:12: fatal error: 'cstddef' file not found
> # include <cstddef>
>
> In file included from ../libs/math/test/ztest_max_digits10.cpp:27:
> In file included from ../boost/config.hpp:40:
> ../boost/config/select_stdlib_config.hpp:18:12: fatal error: 'cstddef' file not found
>
> or for Cray CC-1353 crayc++: INTERNAL File = /opt/gcc/4.4.4/snos/include/g++/bits/move.h, Line = 34
> CIF Error
>
> #include <cstddef>
> ^
> This appears to be a problem in the config - a missing include.

A user complained on the IRC the other day about <cstddef> being missing
on his FreeBSD system when using libc++.

It turned out that he had forgotten to set WITH_LIBCPLUSPLUS=yes for his
system, as advised in [1].

<cstddef> has been in the standard since at least C++03, so if your
toolchain is missing it, there's something properly wrong with it.

I see now that the clang in the test link is on darwin, but it still
smells of mis-deployment.

[1] http://lists.freebsd.org/pipermail/freebsd-stable/2012-May/067645.html

-- 
Lars Viklund | zao_at_[hidden]

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk