Building Boost 4.6 with Intel C++ compiler 12.1
Hallo! I'm getting build errors with ICC 12.1.0 that appear to be related to BOOST_STATIC_ASSERT. This is with boost 1.46.1.1 as available in Debian. Before I got this far I had to disable rvalue references in config/compiler/intel.hpp. /usr/include/boost/type_traits/type_with_alignment.hpp(206): error: member "boost::detail::type_with_alignment_imp<Align>::found" is not a type name BOOST_STATIC_ASSERT(found >= Align); ^ /usr/include/boost/type_traits/common_type.hpp(91): error: expected a type specifier BOOST_COMMON_TYPE_STATIC_ASSERT(sizeof(T) > 0, BOOST_COMMON_TYPE_MUST_BE_A_COMPLE_TYPE, (T)); ^ Folloed by several more problems in BOOST_STATIC_ASSERT. Has anyone seen similar problems? Thanks, Frank
I'm getting build errors with ICC 12.1.0 that appear to be related to BOOST_STATIC_ASSERT. This is with boost 1.46.1.1 as available in Debian.
These are related to C++0x feature detection, they're fixed in this change: https://svn.boost.org/trac/boost/changeset/74573 HTH, John.
On 03/10/11 16:39, John Maddock wrote:
I'm getting build errors with ICC 12.1.0 that appear to be related to BOOST_STATIC_ASSERT. This is with boost 1.46.1.1 as available in Debian.
These are related to C++0x feature detection, they're fixed in this change: https://svn.boost.org/trac/boost/changeset/74573
Thanks. I also applied 74639 but now get errors on boost::declval: /usr/include/boost/type_traits/common_type.hpp(112): error: function template "boost::declval" is not a type name typedef decltype(declval<bool>() ? declval<T>() : declval<U>()) type; ^ /usr/include/boost/type_traits/common_type.hpp(112): error: expected a ")" typedef decltype(declval<bool>() ? declval<T>() : declval<U>()) type; ^ /usr/include/boost/type_traits/common_type.hpp(112): error: expected a ";" typedef decltype(declval<bool>() ? declval<T>() : declval<U>()) type; ^ Frank
On 04/10/11 09:42, Frank Kingswood wrote:
On 03/10/11 16:39, John Maddock wrote:
I'm getting build errors with ICC 12.1.0 that appear to be related to BOOST_STATIC_ASSERT. This is with boost 1.46.1.1 as available in Debian.
These are related to C++0x feature detection, they're fixed in this change: https://svn.boost.org/trac/boost/changeset/74573
Thanks. I also applied 74639 but now get errors on boost::declval:
/usr/include/boost/type_traits/common_type.hpp(112): error: function template "boost::declval" is not a type name typedef decltype(declval<bool>() ? declval<T>() : declval<U>()) type;
Partially answering my own question: it works with current SVN top of tree (revision 74685, it calls itself 1.48.0 in Jamroot). Frank
participants (2)
-
Frank Kingswood
-
John Maddock