Sun CC compiler problem with Boost
Hi,
I have install Boost 1.32.0 on Sun SPARC machines.
But while compiling my code with Sun Stdio11 CC compiler i got some error:
/1.32.0/include/boost/iterator/iterator_facade.hpp", line 837: Error: Could not find a match for boost::iterator_core_access::equal<boost::iterator_core_access::Facade1, boost::iterator_core_access::Facade2>(const boost::filesystem::directory_iterator, const boost::filesystem::directory_iterator, boost::is_convertible<boost::filesystem::directory_iterator, boost::filesystem::directory_iterator>) needed in boost::operator!=<boost::filesystem::directory_iterator, boost::filesystem::path, boost::single_pass_traversal_tag, boost::filesystem::path&, int, boost::filesystem::directory_iterator, boost::filesystem::path, boost::single_pass_traversal_tag, boost::filesystem::path&, int>(const boost::iterator_facade<boost::filesystem::directory_iterator, boost::filesystem::path, boost::single_pass_traversal_tag, boost::filesystem::path&, int>&, const boost::iterator_facade<boost::filesystem::directory_iterator, boost::filesystem::path, boost::single_pass_traversal_tag, boost::filesystem::path&, int>&).
1 Error(s) detected.
Can any body please help me to find the solution.
--Shrinivas
[1315 byte] By [
dudhanissa] at [2007-11-27 6:21:24]

# 1
> Hi,
> I have install Boost 1.32.0 on Sun SPARC machines.
> But while compiling my code with Sun Stdio11 CC
> compiler i got some error:
Hi
Can you try Sun Studio 12? (Out today, 2007-06-04)
I've had reasonable success with Boost 1.34 RCx, perhaps it'd be worth trying that - certainly I had to do far less patching than I had to with prior Boost versions.
Lastly, did you follow the steps outlined here http://blogs.sun.com/sga/category/Boost?
Paul
# 5
this is command line options;
/opt/studio11/SUNWspro/bin/CC -g -library=stlport4 -library=stlport4 -features=tmplife -Qoption ccfe -Dsunos5 -DXP_UNIX -DSYSV -Dsolaris -Dsolaris8 -D__SUNOS10__ -D__SOLARIS10__ -DPTHREADS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_THREAD -DUNIX -c -I./ -I/usr/include/ -I/usr/include/nspr4/ -I/akhoje/mozilla/mozilla/nsprpub/pr/include -I/akhoje/Boost_1_34/boost-RC_1_34_0-07-06-04-1409 -I/ImageMagick-6.3.4/include -I/usr/sfw/include -KPIC -mt -xildoff -instances=static -o BUILD/debug/pagecache.o cache/pagecache.cpp
>> Signal 11:
while processing cache/pagecache.cpp at line 323.
Now even if i comment the line number 323, it is giving same error.
--
shrinivas
# 7
Result of 'CC -V' looks strange. Sun C++ 5.7 is Studio 10. Anyway 'Signal 11' points to bug in the compiler. You can:
1. Use Sun Studio 12 or
2. Setup latest patch on Sun Studio 11 (my CC -V shows CC: Sun C++ 5.8 Patch 121017-10 2007/02/21) or
3. If none of above do not help try to make reduced test case and file a bug at http://bugs.sun.com/services/bugreport/index.jsp. If you have a service contract you can escalate this bug trough your support engineer.