Cray C++ compiler errors
Hi all, has anyone succeeded in compiling Boost with the Cray C++ compiler? I'm using Boost 1.47.0 and get error messages of the type ====================== *snip* ====================== CC-439 crayc++: ERROR File = /usr/common/usg/boost/1.47.0/include/boost/type_traits/is_rvalue_reference.hpp, Line = 21 A greater-than character (">") is expected. BOOST_TT_AUX_BOOL_TRAIT_PARTIAL_SPEC1_1(typename T,is_rvalue_reference,T&&,true) ^ ====================== *snap* ====================== and ====================== *snip* ====================== CC-40 crayc++: ERROR File = /usr/common/usg/boost/1.47.0/include/boost/type_traits/add_rvalue_reference.hpp, Line = 46 An identifier is expected. typedef T&& type; ^ ====================== *snap* ====================== All hints appreciated. Cheers, Nico
On Sat, Apr 7, 2012 at 6:43 AM, Nico Schlömer
Hi all,
has anyone succeeded in compiling Boost with the Cray C++ compiler? I'm using Boost 1.47.0 and get error messages of the type
====================== *snip* ====================== CC-439 crayc++: ERROR File =
/usr/common/usg/boost/1.47.0/include/boost/type_traits/is_rvalue_reference.hpp, Line = 21 A greater-than character (">") is expected.
BOOST_TT_AUX_BOOL_TRAIT_PARTIAL_SPEC1_1(typename T,is_rvalue_reference,T&&,true) ^ ====================== *snap* ======================
and
====================== *snip* ====================== CC-40 crayc++: ERROR File =
/usr/common/usg/boost/1.47.0/include/boost/type_traits/add_rvalue_reference.hpp, Line = 46 An identifier is expected.
typedef T&& type; ^ ====================== *snap* ======================
All hints appreciated.
Looks like rvalue references may not be supported but this fact is not advertised by boost/config.hpp. Can you check this (compiling some dummy program with a "typedef int&& type;" declaration should suffice) and/or give more context to the above errors? - Jeff
AMDG On 04/07/2012 06:43 AM, Nico Schlömer wrote:
Hi all,
has anyone succeeded in compiling Boost with the Cray C++ compiler? I'm using Boost 1.47.0 and get error messages of the type
#define BOOST_NO_RVALUE_REFERENCES should fix the problem. The easiest place to add it is boost/config/user.hpp This appears to be fixed in the trunk.
====================== *snip* ====================== CC-439 crayc++: ERROR File = /usr/common/usg/boost/1.47.0/include/boost/type_traits/is_rvalue_reference.hpp, Line = 21 A greater-than character (">") is expected.
BOOST_TT_AUX_BOOL_TRAIT_PARTIAL_SPEC1_1(typename T,is_rvalue_reference,T&&,true) ^ ====================== *snap* ======================
In Christ, Steven Watanabe
#define BOOST_NO_RVALUE_REFERENCES should fix the problem. The easiest place to add it is boost/config/user.hpp.
Is there a second-easiest place? I don't have root access at this machine.
Is there a released version available with said fix?
--Nico
On Sat, Apr 7, 2012 at 4:54 PM, Steven Watanabe
AMDG
On 04/07/2012 06:43 AM, Nico Schlömer wrote:
Hi all,
has anyone succeeded in compiling Boost with the Cray C++ compiler? I'm using Boost 1.47.0 and get error messages of the type
#define BOOST_NO_RVALUE_REFERENCES should fix the problem. The easiest place to add it is boost/config/user.hpp This appears to be fixed in the trunk.
====================== *snip* ====================== CC-439 crayc++: ERROR File = /usr/common/usg/boost/1.47.0/include/boost/type_traits/is_rvalue_reference.hpp, Line = 21 A greater-than character (">") is expected.
BOOST_TT_AUX_BOOL_TRAIT_PARTIAL_SPEC1_1(typename T,is_rvalue_reference,T&&,true) ^ ====================== *snap* ======================
In Christ, Steven Watanabe _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
I just saw that Boost 1.48.0 is the first release to contain a
boost/config/compiler/cray.hpp
I'll ask the maintainers to upgrade and report if the problem persists.
Cheers,
Nico
On Sat, Apr 7, 2012 at 5:22 PM, Nico Schlömer
#define BOOST_NO_RVALUE_REFERENCES should fix the problem. The easiest place to add it is boost/config/user.hpp.
Is there a second-easiest place? I don't have root access at this machine. Is there a released version available with said fix?
--Nico
On Sat, Apr 7, 2012 at 4:54 PM, Steven Watanabe
wrote: AMDG
On 04/07/2012 06:43 AM, Nico Schlömer wrote:
Hi all,
has anyone succeeded in compiling Boost with the Cray C++ compiler? I'm using Boost 1.47.0 and get error messages of the type
#define BOOST_NO_RVALUE_REFERENCES should fix the problem. The easiest place to add it is boost/config/user.hpp This appears to be fixed in the trunk.
====================== *snip* ====================== CC-439 crayc++: ERROR File = /usr/common/usg/boost/1.47.0/include/boost/type_traits/is_rvalue_reference.hpp, Line = 21 A greater-than character (">") is expected.
BOOST_TT_AUX_BOOL_TRAIT_PARTIAL_SPEC1_1(typename T,is_rvalue_reference,T&&,true) ^ ====================== *snap* ======================
In Christ, Steven Watanabe _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (3)
-
Jeffrey Lee Hellrung, Jr.
-
Nico Schlömer
-
Steven Watanabe