Attempting to build Boost 1.41 on Solaris 10, Sun Studio 11 getting compilation errors
I am attempting to compile Boost 1.41 on Solaris 10, Sun Studio 11 in 64bit. This is the error I am getting along with my build command. Any ideas? Thanks Joy ---------------------------- ./bin.solaris/bjam toolset=sun --build-dir="/mnt/scratch/jtutt/BOOST/boost_1_41_0/solaris10_64-ss11-debug" --layout=system variant=debug -q address-model=64 stdlib=sun-stlport threading=multi link=static install --without-python --without-mpi --without-graph --without-wave --without-math --libdir="/mnt/scratch/jtutt/BOOST/boost_1_41_0/solaris10_64-ss11-debug/lib" --includedir="/mnt/scratch/jtutt/BOOST/boost_1_41_0/solaris10_64-ss11-debug/include" warning: Graph library does not contain MPI-based parallel components. note: to enable them, add "using mpi ;" to your user-config.jam warning: Building Boost.Regex with the optional Unicode/ICU support disabled. note: Please refer to the Boost.Regex documentation for more information note: this is a strictly optional feature. ...patience... ...patience... ...found 16566 targets... ...updating 5532 targets... sun.compile.c++ /mnt/scratch/jtutt/BOOST/boost_1_41_0/solaris10_64-ss11-debug/boost/bin.v2/libs/serialization/build/sun/debug/address-model-64/link-static/stdlib-sun-stlport/threading-multi/basic_text_iprimitive.o CC: Warning: Option -m64 passed to ld, if ld is invoked, ignored otherwise "./boost/integer_fwd.hpp", line 70: Error: long_long_type is not a member of boost. "./boost/integer_fwd.hpp", line 70: Error: Template parameter boost::T requires a type argument. "./boost/integer_fwd.hpp", line 73: Error: ulong_long_type is not a member of boost. "./boost/integer_fwd.hpp", line 73: Error: Template parameter boost::T requires a type argument. 4 Error(s) detected. "CC" +d -library=stlport4 -g -mt -erroff=%none -m64 -DBOOST_ALL_NO_LIB=1 -I"." -c -o "/mnt/scratch/jtutt/BOOST/boost_1_41_0/solaris10_64-ss11-debug/boost/bin.v2/libs/serialization/build/sun/debug/address-model-64/link-static/stdlib-sun-stlport/threading-multi/basic_text_iprimitive.o" "libs/serialization/src/basic_text_iprimitive.cpp" ...failed sun.compile.c++ /mnt/scratch/jtutt/BOOST/boost_1_41_0/solaris10_64-ss11-debug/boost/bin.v2/libs/serialization/build/sun/debug/address-model-64/link-static/stdlib-sun-stlport/threading-multi/basic_text_iprimitive.o... ...failed updating 1 target... $
I am attempting to compile Boost 1.41 on Solaris 10, Sun Studio 11 in 64bit. This is the error I am getting along with my build command. Any ideas?
Looks like BOOST_HAS_LONG_LONG is not getting set even though limits.h has the long long macros - it should be set automatically by the config system for __SUNPRO_CC >= 0x590, is that the case here? The actual error is caused by a longstanding bug in Boost.Integer which will be fixed in the next release BTW. You could try adding BOOST_HAS_LONG_LONG to boost/config/user.hpp and see if that helps? HTH, John.
participants (2)
-
John Maddock
-
Joy Vincent