|
Hello,
I disagree that libstd++ is the problem, as the error is an error during the compilation and only in a very new code. For old 2.5 code, it works fine. Also it works if I delete/comment the affected lines. And it is possible to use clang C+11 with libstd+.
Anyway, I am trying to compile mongo using this command:
scons --full install --64=FORCE64 -j 16 --prefix /opt/mongo-new/ --use-system-boost --extrapath=/opt/boost-clang-libc+/ --cc=clang --cxx=clang+ --c+11 --allocator=system --libc+ --osx-version-min=10.7
and I am getting a lot of errors with boost:
(Apropos, the boost was compiled with clang and libc++)
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:353:49: error: constexpr function never produces a constant expression
static BOOST_CHRONO_LIB_CONSTEXPR float lowest() BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW
^
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:355:21: note: non-constexpr function 'max' cannot be used in a constant expression
return -(std::numeric_limits<float>::max) ();
^
/usr/bin/../lib/c++/v1/limits:443:43: note: declared here
_LIBCPP_INLINE_VISIBILITY static type max() _NOEXCEPT
{return __base::max();}
^
In file included from src/mongo/db/index/btree_based_builder.cpp:17:
In file included from src/mongo/db/index/btree_based_builder.h:21:
In file included from src/mongo/db/jsobj.h:31:
In file included from src/mongo/pch.h:78:
In file included from src/mongo/util/goodies.h:22:
In file included from /opt/boost-clang-libc++/include/boost/thread/condition_variable.hpp:16:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/condition_variable.hpp:9:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/timespec.hpp:20:
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:361:50: error: constexpr function never produces a constant expression
static BOOST_CHRONO_LIB_CONSTEXPR double lowest() BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW
^
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:363:21: note: non-constexpr function 'max' cannot be used in a constant expression
return -(std::numeric_limits<double>::max) ();
^
/usr/bin/../lib/c++/v1/limits:443:43: note: declared here
_LIBCPP_INLINE_VISIBILITY static type max() _NOEXCEPT
{return __base::max();}
^
In file included from src/mongo/db/index/btree_based_builder.cpp:17:
In file included from src/mongo/db/index/btree_based_builder.h:21:
In file included from src/mongo/db/jsobj.h:31:
In file included from src/mongo/pch.h:78:
In file included from src/mongo/util/goodies.h:22:
In file included from /opt/boost-clang-libc++/include/boost/thread/condition_variable.hpp:16:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/condition_variable.hpp:9:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/timespec.hpp:20:
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:369:55: error: constexpr function never produces a constant expression
static BOOST_CHRONO_LIB_CONSTEXPR long double lowest() BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW
^
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:371:21: note: non-constexpr function 'max' cannot be used in a constant expression
return -(std::numeric_limits<long double>::max)();
^
/usr/bin/../lib/c++/v1/limits:443:43: note: declared here
_LIBCPP_INLINE_VISIBILITY static type max() _NOEXCEPT
{return __base::max();}
^
In file included from src/mongo/db/repl/oplogreader.cpp:17:
In file included from src/mongo/db/repl/oplogreader.h:23:
In file included from src/mongo/client/dbclientcursor.h:20:
In file included from src/mongo/pch.h:78:
In file included from src/mongo/util/goodies.h:22:
In file included from /opt/boost-clang-libc++/include/boost/thread/condition_variable.hpp:16:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/condition_variable.hpp:9:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/timespec.hpp:20:
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:353:49: error: constexpr function never produces a constant expression
static BOOST_CHRONO_LIB_CONSTEXPR float lowest() BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW
^
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:355:21: note: non-constexpr function 'max' cannot be used in a constant expression
return -(std::numeric_limits<float>::max) ();
^
/usr/bin/../lib/c++/v1/limits:443:43: note: declared here
_LIBCPP_INLINE_VISIBILITY static type max() _NOEXCEPT
{return __base::max();}
^
In file included from src/mongo/db/repl/oplogreader.cpp:17:
In file included from src/mongo/db/repl/oplogreader.h:23:
In file included from src/mongo/client/dbclientcursor.h:20:
In file included from src/mongo/pch.h:78:
In file included from src/mongo/util/goodies.h:22:
In file included from /opt/boost-clang-libc++/include/boost/thread/condition_variable.hpp:16:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/condition_variable.hpp:9:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/timespec.hpp:20:
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:361:50: error: constexpr function never produces a constant expression
static BOOST_CHRONO_LIB_CONSTEXPR double lowest() BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW
^
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:363:21: note: non-constexpr function 'max' cannot be used in a constant expression
return -(std::numeric_limits<double>::max) ();
^
/usr/bin/../lib/c++/v1/limits:443:43: note: declared here
_LIBCPP_INLINE_VISIBILITY static type max() _NOEXCEPT
{return __base::max();}
^
In file included from src/mongo/db/repl/oplogreader.cpp:17:
In file included from src/mongo/db/repl/oplogreader.h:23:
In file included from src/mongo/client/dbclientcursor.h:20:
In file included from src/mongo/pch.h:78:
In file included from src/mongo/util/goodies.h:22:
In file included from /opt/boost-clang-libc++/include/boost/thread/condition_variable.hpp:16:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/condition_variable.hpp:9:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/timespec.hpp:20:
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:369:55: error: constexpr function never produces a constant expression
static BOOST_CHRONO_LIB_CONSTEXPR long double lowest() BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW
^
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:371:21: note: non-constexpr function 'max' cannot be used in a constant expression
return -(std::numeric_limits<long double>::max)();
^
/usr/bin/../lib/c++/v1/limits:443:43: note: declared here
_LIBCPP_INLINE_VISIBILITY static type max() _NOEXCEPT
{return __base::max();}
^
In file included from src/mongo/db/introspect.cpp:19:
In file included from src/mongo/pch.h:78:
In file included from src/mongo/util/goodies.h:22:
In file included from /opt/boost-clang-libc++/include/boost/thread/condition_variable.hpp:16:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/condition_variable.hpp:9:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/timespec.hpp:20:
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:353:49: error: constexpr function never produces a constant expression
static BOOST_CHRONO_LIB_CONSTEXPR float lowest() BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW
^
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:355:21: note: non-constexpr function 'max' cannot be used in a constant expression
return -(std::numeric_limits<float>::max) ();
^
/usr/bin/../lib/c++/v1/limits:443:43: note: declared here
_LIBCPP_INLINE_VISIBILITY static type max() _NOEXCEPT
{return __base::max();}
^
In file included from src/mongo/db/introspect.cpp:19:
In file included from src/mongo/pch.h:78:
In file included from src/mongo/util/goodies.h:22:
In file included from /opt/boost-clang-libc++/include/boost/thread/condition_variable.hpp:16:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/condition_variable.hpp:9:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/timespec.hpp:20:
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:361:50: error: constexpr function never produces a constant expression
static BOOST_CHRONO_LIB_CONSTEXPR double lowest() BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW
^
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:363:21: note: non-constexpr function 'max' cannot be used in a constant expression
return -(std::numeric_limits<double>::max) ();
^
/usr/bin/../lib/c++/v1/limits:443:43: note: declared here
_LIBCPP_INLINE_VISIBILITY static type max() _NOEXCEPT
{return __base::max();}
^
In file included from src/mongo/db/introspect.cpp:19:
In file included from src/mongo/pch.h:78:
In file included from src/mongo/util/goodies.h:22:
In file included from /opt/boost-clang-libc++/include/boost/thread/condition_variable.hpp:16:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/condition_variable.hpp:9:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/timespec.hpp:20:
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:369:55: error: constexpr function never produces a constant expression
static BOOST_CHRONO_LIB_CONSTEXPR long double lowest() BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW
^
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:371:21: note: non-constexpr function 'max' cannot be used in a constant expression
return -(std::numeric_limits<long double>::max)();
^
/usr/bin/../lib/c++/v1/limits:443:43: note: declared here
_LIBCPP_INLINE_VISIBILITY static type max() _NOEXCEPT
{return __base::max();}
^
In file included from src/mongo/db/compact.cpp:21:
In file included from src/mongo/pch.h:78:
In file included from src/mongo/util/goodies.h:22:
In file included from /opt/boost-clang-libc++/include/boost/thread/condition_variable.hpp:16:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/condition_variable.hpp:9:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/timespec.hpp:20:
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:353:49: error: constexpr function never produces a constant expression
static BOOST_CHRONO_LIB_CONSTEXPR float lowest() BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW
^
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:355:21: note: non-constexpr function 'max' cannot be used in a constant expression
return -(std::numeric_limits<float>::max) ();
^
/usr/bin/../lib/c++/v1/limits:443:43: note: declared here
_LIBCPP_INLINE_VISIBILITY static type max() _NOEXCEPT
{return __base::max();}
^
In file included from src/mongo/db/compact.cpp:21:
In file included from src/mongo/pch.h:78:
In file included from src/mongo/util/goodies.h:22:
In file included from /opt/boost-clang-libc++/include/boost/thread/condition_variable.hpp:16:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/condition_variable.hpp:9:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/timespec.hpp:20:
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:361:50: error: constexpr function never produces a constant expression
static BOOST_CHRONO_LIB_CONSTEXPR double lowest() BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW
^
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:363:21: note: non-constexpr function 'max' cannot be used in a constant expression
return -(std::numeric_limits<double>::max) ();
^
/usr/bin/../lib/c++/v1/limits:443:43: note: declared here
_LIBCPP_INLINE_VISIBILITY static type max() _NOEXCEPT
{return __base::max();}
^
In file included from src/mongo/db/compact.cpp:21:
In file included from src/mongo/pch.h:78:
In file included from src/mongo/util/goodies.h:22:
In file included from /opt/boost-clang-libc++/include/boost/thread/condition_variable.hpp:16:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/condition_variable.hpp:9:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/timespec.hpp:20:
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:369:55: error: constexpr function never produces a constant expression
static BOOST_CHRONO_LIB_CONSTEXPR long double lowest() BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW
^
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:371:21: note: non-constexpr function 'max' cannot be used in a constant expression
return -(std::numeric_limits<long double>::max)();
^
/usr/bin/../lib/c++/v1/limits:443:43: note: declared here
_LIBCPP_INLINE_VISIBILITY static type max() _NOEXCEPT
{return __base::max();}
^
In file included from src/mongo/db/stats/top.cpp:19:
In file included from src/mongo/pch.h:78:
In file included from src/mongo/util/goodies.h:22:
In file included from /opt/boost-clang-libc++/include/boost/thread/condition_variable.hpp:16:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/condition_variable.hpp:9:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/timespec.hpp:20:
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:353:49: error: constexpr function never produces a constant expression
static BOOST_CHRONO_LIB_CONSTEXPR float lowest() BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW
^
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:355:21: note: non-constexpr function 'max' cannot be used in a constant expression
return -(std::numeric_limits<float>::max) ();
^
/usr/bin/../lib/c++/v1/limits:443:43: note: declared here
_LIBCPP_INLINE_VISIBILITY static type max() _NOEXCEPT
{return __base::max();}
^
In file included from src/mongo/db/stats/top.cpp:19:
In file included from src/mongo/pch.h:78:
In file included from src/mongo/util/goodies.h:22:
In file included from /opt/boost-clang-libc++/include/boost/thread/condition_variable.hpp:16:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/condition_variable.hpp:9:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/timespec.hpp:20:
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:361:50: error: constexpr function never produces a constant expression
static BOOST_CHRONO_LIB_CONSTEXPR double lowest() BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW
^
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:363:21: note: non-constexpr function 'max' cannot be used in a constant expression
return -(std::numeric_limits<double>::max) ();
^
/usr/bin/../lib/c++/v1/limits:443:43: note: declared here
_LIBCPP_INLINE_VISIBILITY static type max() _NOEXCEPT
{return __base::max();}
^
In file included from src/mongo/db/stats/top.cpp:19:
In file included from src/mongo/pch.h:78:
In file included from src/mongo/util/goodies.h:22:
In file included from /opt/boost-clang-libc++/include/boost/thread/condition_variable.hpp:16:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/condition_variable.hpp:9:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/timespec.hpp:20:
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:369:55: error: constexpr function never produces a constant expression
static BOOST_CHRONO_LIB_CONSTEXPR long double lowest() BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW
^
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:371:21: note: non-constexpr function 'max' cannot be used in a constant expression
return -(std::numeric_limits<long double>::max)();
^
/usr/bin/../lib/c++/v1/limits:443:43: note: declared here
_LIBCPP_INLINE_VISIBILITY static type max() _NOEXCEPT
{return __base::max();}
^
In file included from src/mongo/db/repl/replset_commands.cpp:17:
In file included from src/mongo/pch.h:78:
In file included from src/mongo/util/goodies.h:22:
In file included from /opt/boost-clang-libc++/include/boost/thread/condition_variable.hpp:16:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/condition_variable.hpp:9:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/timespec.hpp:20:
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:353:49: error: constexpr function never produces a constant expression
static BOOST_CHRONO_LIB_CONSTEXPR float lowest() BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW
^
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:355:21: note: non-constexpr function 'max' cannot be used in a constant expression
return -(std::numeric_limits<float>::max) ();
^
/usr/bin/../lib/c++/v1/limits:443:43: note: declared here
_LIBCPP_INLINE_VISIBILITY static type max() _NOEXCEPT
{return __base::max();}
^
In file included from src/mongo/db/repl/replset_commands.cpp:17:
In file included from src/mongo/pch.h:78:
In file included from src/mongo/util/goodies.h:22:
In file included from /opt/boost-clang-libc++/include/boost/thread/condition_variable.hpp:16:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/condition_variable.hpp:9:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/timespec.hpp:20:
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:361:50: error: constexpr function never produces a constant expression
static BOOST_CHRONO_LIB_CONSTEXPR double lowest() BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW
^
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:363:21: note: non-constexpr function 'max' cannot be used in a constant expression
return -(std::numeric_limits<double>::max) ();
^
/usr/bin/../lib/c++/v1/limits:443:43: note: declared here
_LIBCPP_INLINE_VISIBILITY static type max() _NOEXCEPT
{return __base::max();}
^
In file included from src/mongo/db/repl/replset_commands.cpp:17:
In file included from src/mongo/pch.h:78:
In file included from src/mongo/util/goodies.h:22:
In file included from /opt/boost-clang-libc++/include/boost/thread/condition_variable.hpp:16:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/condition_variable.hpp:9:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/timespec.hpp:20:
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:369:55: error: constexpr function never produces a constant expression
static BOOST_CHRONO_LIB_CONSTEXPR long double lowest() BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW
^
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:371:21: note: non-constexpr function 'max' cannot be used in a constant expression
return -(std::numeric_limits<long double>::max)();
^
/usr/bin/../lib/c++/v1/limits:443:43: note: declared here
_LIBCPP_INLINE_VISIBILITY static type max() _NOEXCEPT
{return __base::max();}
^
In file included from src/mongo/db/commands/find_and_modify.cpp:19:
In file included from src/mongo/pch.h:78:
In file included from src/mongo/util/goodies.h:22:
In file included from /opt/boost-clang-libc++/include/boost/thread/condition_variable.hpp:16:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/condition_variable.hpp:9:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/timespec.hpp:20:
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:353:49: error: constexpr function never produces a constant expression
static BOOST_CHRONO_LIB_CONSTEXPR float lowest() BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW
^
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:355:21: note: non-constexpr function 'max' cannot be used in a constant expression
return -(std::numeric_limits<float>::max) ();
^
/usr/bin/../lib/c++/v1/limits:443:43: note: declared here
_LIBCPP_INLINE_VISIBILITY static type max() _NOEXCEPT
{return __base::max();}
^
In file included from src/mongo/db/commands/find_and_modify.cpp:19:
In file included from src/mongo/pch.h:78:
In file included from src/mongo/util/goodies.h:22:
In file included from /opt/boost-clang-libc++/include/boost/thread/condition_variable.hpp:16:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/condition_variable.hpp:9:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/timespec.hpp:20:
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:361:50: error: constexpr function never produces a constant expression
static BOOST_CHRONO_LIB_CONSTEXPR double lowest() BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW
^
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:363:21: note: non-constexpr function 'max' cannot be used in a constant expression
return -(std::numeric_limits<double>::max) ();
^
/usr/bin/../lib/c++/v1/limits:443:43: note: declared here
_LIBCPP_INLINE_VISIBILITY static type max() _NOEXCEPT
{return __base::max();}
^
In file included from src/mongo/db/commands/find_and_modify.cpp:19:
In file included from src/mongo/pch.h:78:
In file included from src/mongo/util/goodies.h:22:
In file included from /opt/boost-clang-libc++/include/boost/thread/condition_variable.hpp:16:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/condition_variable.hpp:9:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/timespec.hpp:20:
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:369:55: error: constexpr function never produces a constant expression
static BOOST_CHRONO_LIB_CONSTEXPR long double lowest() BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW
^
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:371:21: note: non-constexpr function 'max' cannot be used in a constant expression
return -(std::numeric_limits<long double>::max)();
^
/usr/bin/../lib/c++/v1/limits:443:43: note: declared here
_LIBCPP_INLINE_VISIBILITY static type max() _NOEXCEPT
{return __base::max();}
^
In file included from src/mongo/db/commands.cpp:20:
In file included from src/mongo/pch.h:78:
In file included from src/mongo/util/goodies.h:22:
In file included from /opt/boost-clang-libc++/include/boost/thread/condition_variable.hpp:16:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/condition_variable.hpp:9:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/timespec.hpp:20:
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:353:49: error: constexpr function never produces a constant expression
static BOOST_CHRONO_LIB_CONSTEXPR float lowest() BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW
^
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:355:21: note: non-constexpr function 'max' cannot be used in a constant expression
return -(std::numeric_limits<float>::max) ();
^
/usr/bin/../lib/c++/v1/limits:443:43: note: declared here
_LIBCPP_INLINE_VISIBILITY static type max() _NOEXCEPT
{return __base::max();}
^
In file included from src/mongo/db/commands.cpp:20:
In file included from src/mongo/pch.h:78:
In file included from src/mongo/util/goodies.h:22:
In file included from /opt/boost-clang-libc++/include/boost/thread/condition_variable.hpp:16:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/condition_variable.hpp:9:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/timespec.hpp:20:
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:361:50: error: constexpr function never produces a constant expression
static BOOST_CHRONO_LIB_CONSTEXPR double lowest() BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW
^
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:363:21: note: non-constexpr function 'max' cannot be used in a constant expression
return -(std::numeric_limits<double>::max) ();
^
/usr/bin/../lib/c++/v1/limits:443:43: note: declared here
_LIBCPP_INLINE_VISIBILITY static type max() _NOEXCEPT
{return __base::max();}
^
In file included from src/mongo/db/commands.cpp:20:
In file included from src/mongo/pch.h:78:
In file included from src/mongo/util/goodies.h:22:
In file included from /opt/boost-clang-libc++/include/boost/thread/condition_variable.hpp:16:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/condition_variable.hpp:9:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/timespec.hpp:20:
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:369:55: error: constexpr function never produces a constant expression
static BOOST_CHRONO_LIB_CONSTEXPR long double lowest() BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW
^
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:371:21: note: non-constexpr function 'max' cannot be used in a constant expression
return -(std::numeric_limits<long double>::max)();
^
/usr/bin/../lib/c++/v1/limits:443:43: note: declared here
_LIBCPP_INLINE_VISIBILITY static type max() _NOEXCEPT
{return __base::max();}
^
In file included from src/mongo/db/commands/server_status.cpp:19:
In file included from src/mongo/pch.h:78:
In file included from src/mongo/util/goodies.h:22:
In file included from /opt/boost-clang-libc++/include/boost/thread/condition_variable.hpp:16:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/condition_variable.hpp:9:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/timespec.hpp:20:
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:353:49: error: constexpr function never produces a constant expression
static BOOST_CHRONO_LIB_CONSTEXPR float lowest() BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW
^
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:355:21: note: non-constexpr function 'max' cannot be used in a constant expression
return -(std::numeric_limits<float>::max) ();
^
/usr/bin/../lib/c++/v1/limits:443:43: note: declared here
_LIBCPP_INLINE_VISIBILITY static type max() _NOEXCEPT
{return __base::max();}
^
In file included from src/mongo/db/commands/server_status.cpp:19:
In file included from src/mongo/pch.h:78:
In file included from src/mongo/util/goodies.h:22:
In file included from /opt/boost-clang-libc++/include/boost/thread/condition_variable.hpp:16:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/condition_variable.hpp:9:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/timespec.hpp:20:
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:361:50: error: constexpr function never produces a constant expression
static BOOST_CHRONO_LIB_CONSTEXPR double lowest() BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW
^
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:363:21: note: non-constexpr function 'max' cannot be used in a constant expression
return -(std::numeric_limits<double>::max) ();
^
/usr/bin/../lib/c++/v1/limits:443:43: note: declared here
_LIBCPP_INLINE_VISIBILITY static type max() _NOEXCEPT
{return __base::max();}
^
In file included from src/mongo/db/commands/server_status.cpp:19:
In file included from src/mongo/pch.h:78:
In file included from src/mongo/util/goodies.h:22:
In file included from /opt/boost-clang-libc++/include/boost/thread/condition_variable.hpp:16:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/condition_variable.hpp:9:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/timespec.hpp:20:
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:369:55: error: constexpr function never produces a constant expression
static BOOST_CHRONO_LIB_CONSTEXPR long double lowest() BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW
^
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:371:21: note: non-constexpr function 'max' cannot be used in a constant expression
return -(std::numeric_limits<long double>::max)();
^
/usr/bin/../lib/c++/v1/limits:443:43: note: declared here
_LIBCPP_INLINE_VISIBILITY static type max() _NOEXCEPT
{return __base::max();}
^
In file included from src/mongo/db/auth/action_set.cpp:16:
In file included from src/mongo/pch.h:78:
In file included from src/mongo/util/goodies.h:22:
In file included from /opt/boost-clang-libc++/include/boost/thread/condition_variable.hpp:16:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/condition_variable.hpp:9:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/timespec.hpp:20:
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:353:49: error: constexpr function never produces a constant expression
static BOOST_CHRONO_LIB_CONSTEXPR float lowest() BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW
^
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:355:21: note: non-constexpr function 'max' cannot be used in a constant expression
return -(std::numeric_limits<float>::max) ();
^
/usr/bin/../lib/c++/v1/limits:443:43: note: declared here
_LIBCPP_INLINE_VISIBILITY static type max() _NOEXCEPT
{return __base::max();}
^
In file included from src/mongo/db/auth/action_set.cpp:16:
In file included from src/mongo/pch.h:78:
In file included from src/mongo/util/goodies.h:22:
In file included from /opt/boost-clang-libc++/include/boost/thread/condition_variable.hpp:16:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/condition_variable.hpp:9:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/timespec.hpp:20:
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:361:50: error: constexpr function never produces a constant expression
static BOOST_CHRONO_LIB_CONSTEXPR double lowest() BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW
^
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:363:21: note: non-constexpr function 'max' cannot be used in a constant expression
return -(std::numeric_limits<double>::max) ();
^
/usr/bin/../lib/c++/v1/limits:443:43: note: declared here
_LIBCPP_INLINE_VISIBILITY static type max() _NOEXCEPT
{return __base::max();}
^
In file included from src/mongo/db/auth/action_set.cpp:16:
In file included from src/mongo/pch.h:78:
In file included from src/mongo/util/goodies.h:22:
In file included from /opt/boost-clang-libc++/include/boost/thread/condition_variable.hpp:16:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/condition_variable.hpp:9:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/timespec.hpp:20:
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:369:55: error: constexpr function never produces a constant expression
static BOOST_CHRONO_LIB_CONSTEXPR long double lowest() BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW
^
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:371:21: note: non-constexpr function 'max' cannot be used in a constant expression
return -(std::numeric_limits<long double>::max)();
^
/usr/bin/../lib/c++/v1/limits:443:43: note: declared here
_LIBCPP_INLINE_VISIBILITY static type max() _NOEXCEPT
{return __base::max();}
^
In file included from src/mongo/db/d_concurrency.cpp:19:
In file included from src/mongo/pch.h:78:
In file included from src/mongo/util/goodies.h:22:
In file included from /opt/boost-clang-libc++/include/boost/thread/condition_variable.hpp:16:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/condition_variable.hpp:9:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/timespec.hpp:20:
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:353:49: error: constexpr function never produces a constant expression
static BOOST_CHRONO_LIB_CONSTEXPR float lowest() BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW
^
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:355:21: note: non-constexpr function 'max' cannot be used in a constant expression
return -(std::numeric_limits<float>::max) ();
^
/usr/bin/../lib/c++/v1/limits:443:43: note: declared here
_LIBCPP_INLINE_VISIBILITY static type max() _NOEXCEPT
{return __base::max();}
^
In file included from src/mongo/db/d_concurrency.cpp:19:
In file included from src/mongo/pch.h:78:
In file included from src/mongo/util/goodies.h:22:
In file included from /opt/boost-clang-libc++/include/boost/thread/condition_variable.hpp:16:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/condition_variable.hpp:9:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/timespec.hpp:20:
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:361:50: error: constexpr function never produces a constant expression
static BOOST_CHRONO_LIB_CONSTEXPR double lowest() BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW
^
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:363:21: note: non-constexpr function 'max' cannot be used in a constant expression
return -(std::numeric_limits<double>::max) ();
^
/usr/bin/../lib/c++/v1/limits:443:43: note: declared here
_LIBCPP_INLINE_VISIBILITY static type max() _NOEXCEPT
{return __base::max();}
^
In file included from src/mongo/db/d_concurrency.cpp:19:
In file included from src/mongo/pch.h:78:
In file included from src/mongo/util/goodies.h:22:
In file included from /opt/boost-clang-libc++/include/boost/thread/condition_variable.hpp:16:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/condition_variable.hpp:9:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/timespec.hpp:20:
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:369:55: error: constexpr function never produces a constant expression
static BOOST_CHRONO_LIB_CONSTEXPR long double lowest() BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW
^
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:371:21: note: non-constexpr function 'max' cannot be used in a constant expression
return -(std::numeric_limits<long double>::max)();
^
/usr/bin/../lib/c++/v1/limits:443:43: note: declared here
_LIBCPP_INLINE_VISIBILITY static type max() _NOEXCEPT
{return __base::max();}
^
3 errors generated.
scons: *** [build/darwin/64/allocator_system/c++11/cc_clang/cxx_clang++/extrapath__opt_boost-clang-libc++_/libc++/use-system-boost/mongo/db/auth/authz_session_external_state.o] Error 1
In file included from src/mongo/db/commands/fail_point_cmd.cpp:23:
In file included from src/mongo/db/commands.h:24:
In file included from src/mongo/db/auth/authorization_manager.h:25:
In file included from src/mongo/db/auth/authz_manager_external_state.h:24:
In file included from src/mongo/db/jsobj.h:31:
In file included from src/mongo/pch.h:78:
In file included from src/mongo/util/goodies.h:22:
In file included from /opt/boost-clang-libc++/include/boost/thread/condition_variable.hpp:16:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/condition_variable.hpp:9:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/timespec.hpp:20:
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:353:49: error: constexpr function never produces a constant expression
static BOOST_CHRONO_LIB_CONSTEXPR float lowest() BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW
^
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:355:21: note: non-constexpr function 'max' cannot be used in a constant expression
return -(std::numeric_limits<float>::max) ();
^
/usr/bin/../lib/c++/v1/limits:443:43: note: declared here
_LIBCPP_INLINE_VISIBILITY static type max() _NOEXCEPT
{return __base::max();}
^
In file included from src/mongo/db/commands/fail_point_cmd.cpp:23:
In file included from src/mongo/db/commands.h:24:
In file included from src/mongo/db/auth/authorization_manager.h:25:
In file included from src/mongo/db/auth/authz_manager_external_state.h:24:
In file included from src/mongo/db/jsobj.h:31:
In file included from src/mongo/pch.h:78:
In file included from src/mongo/util/goodies.h:22:
In file included from /opt/boost-clang-libc++/include/boost/thread/condition_variable.hpp:16:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/condition_variable.hpp:9:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/timespec.hpp:20:
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:361:50: error: constexpr function never produces a constant expression
static BOOST_CHRONO_LIB_CONSTEXPR double lowest() BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW
^
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:363:21: note: non-constexpr function 'max' cannot be used in a constant expression
return -(std::numeric_limits<double>::max) ();
^
/usr/bin/../lib/c++/v1/limits:443:43: note: declared here
_LIBCPP_INLINE_VISIBILITY static type max() _NOEXCEPT
{return __base::max();}
^
In file included from src/mongo/db/commands/fail_point_cmd.cpp:23:
In file included from src/mongo/db/commands.h:24:
In file included from src/mongo/db/auth/authorization_manager.h:25:
In file included from src/mongo/db/auth/authz_manager_external_state.h:24:
In file included from src/mongo/db/jsobj.h:31:
In file included from src/mongo/pch.h:78:
In file included from src/mongo/util/goodies.h:22:
In file included from /opt/boost-clang-libc++/include/boost/thread/condition_variable.hpp:16:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/condition_variable.hpp:9:
In file included from /opt/boost-clang-libc++/include/boost/thread/pthread/timespec.hpp:20:
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:369:55: error: constexpr function never produces a constant expression
static BOOST_CHRONO_LIB_CONSTEXPR long double lowest() BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW
^
/opt/boost-clang-libc++/include/boost/chrono/duration.hpp:371:21: note: non-constexpr function 'max' cannot be used in a constant expression
return -(std::numeric_limits<long double>::max)();
^
/usr/bin/../lib/c++/v1/limits:443:43: note: declared here
_LIBCPP_INLINE_VISIBILITY static type max() _NOEXCEPT
{return __base::max();}
^
3 errors generated.
scons: *** [build/darwin/64/allocator_system/c++11/cc_clang/cxx_clang++/extrapath__opt_boost-clang-libc++_/libc++/use-system-boost/mongo/db/auth/action_set.o] Error 1
3 errors generated.
scons: *** [build/darwin/64/allocator_system/c++11/cc_clang/cxx_clang++/extrapath__opt_boost-clang-libc++_/libc++/use-system-boost/mongo/db/stats/top.o] Error 1
3 errors generated.
scons: *** [build/darwin/64/allocator_system/c++11/cc_clang/cxx_clang++/extrapath__opt_boost-clang-libc++_/libc++/use-system-boost/mongo/db/commands.o] Error 1
3 errors generated.
scons: *** [build/darwin/64/allocator_system/c++11/cc_clang/cxx_clang++/extrapath__opt_boost-clang-libc++_/libc++/use-system-boost/mongo/db/commands/fail_point_cmd.o] Error 1
3 errors generated.
scons: *** [build/darwin/64/allocator_system/c++11/cc_clang/cxx_clang++/extrapath__opt_boost-clang-libc++_/libc++/use-system-boost/mongo/db/compact.o] Error 1
3 errors generated.
scons: *** [build/darwin/64/allocator_system/c++11/cc_clang/cxx_clang++/extrapath__opt_boost-clang-libc++_/libc++/use-system-boost/mongo/db/introspect.o] Error 1
3 errors generated.
scons: *** [build/darwin/64/allocator_system/c++11/cc_clang/cxx_clang++/extrapath__opt_boost-clang-libc++_/libc++/use-system-boost/mongo/db/d_concurrency.o] Error 1
3 errors generated.
scons: *** [build/darwin/64/allocator_system/c++11/cc_clang/cxx_clang++/extrapath__opt_boost-clang-libc++_/libc++/use-system-boost/mongo/db/commands/server_status.o] Error 1
3 errors generated.
scons: *** [build/darwin/64/allocator_system/c++11/cc_clang/cxx_clang++/extrapath__opt_boost-clang-libc++_/libc++/use-system-boost/mongo/db/repl/oplogreader.o] Error 1
3 errors generated.
scons: *** [build/darwin/64/allocator_system/c++11/cc_clang/cxx_clang++/extrapath__opt_boost-clang-libc++_/libc++/use-system-boost/mongo/db/repl/oplog.o] Error 1
3 errors generated.
scons: *** [build/darwin/64/allocator_system/c++11/cc_clang/cxx_clang++/extrapath__opt_boost-clang-libc++_/libc++/use-system-boost/mongo/db/commands/find_and_modify.o] Error 1
3 errors generated.
scons: *** [build/darwin/64/allocator_system/c++11/cc_clang/cxx_clang++/extrapath__opt_boost-clang-libc++_/libc++/use-system-boost/mongo/db/index/btree_based_builder.o] Error 1
3 errors generated.
scons: *** [build/darwin/64/allocator_system/c++11/cc_clang/cxx_clang++/extrapath__opt_boost-clang-libc++_/libc++/use-system-boost/mongo/db/repl/replset_commands.o] Error 1
3 errors generated.
scons: *** [build/darwin/64/allocator_system/c++11/cc_clang/cxx_clang++/extrapath__opt_boost-clang-libc++_/libc++/use-system-boost/mongo/db/commands/mr.o] Error 1
scons: building terminated because of errors.
|