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

Paul_Floyda at 2007-7-12 17:37:51 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2

Boost 1.34 has been released and works with Sun C++ quite well without modifications. If you have to use Boost 1.32 I recommend to read this HowTo http://blogs.sun.com/sga/entry/boost_mini_howto. You need to apply a patch to Boost source code. Anyway try to use Sun Studio 12 or at least apply latest patch to Sun Studio 11.

Atanasyana at 2007-7-12 17:37:51 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 3
thanks for advice......i have follow all the steps outlined at http://blogs.sun.com/sga/category/Boost?.That problem is solved. but now CC is giving "[b]Signal 11[/b] " Error..can u figure out this?--Shrinivas
dudhanissa at 2007-7-12 17:37:51 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 4
Could you provide command line shows this error and result of 'CC -V' so I will be able to reproduce it?
Atanasyana at 2007-7-12 17:37:51 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 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

dudhanissa at 2007-7-12 17:37:51 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 6
CC -V:CC: Sun C++ 5.7 2005/01/07
dudhanissa at 2007-7-12 17:37:51 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 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.

Atanasyana at 2007-7-12 17:37:51 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 8
Sorry path of CC was pointing to studio 10.. here is the studio 11 CC -V output:bash-3.00# /opt/studio11/SUNWspro/bin/CC -VCC: Sun C++ 5.8 2005/10/13Now, I am doing the installation of the patch that you have mentioned ..
dudhanissa at 2007-7-12 17:37:51 > top of Java-index,Development Tools,Solaris and Linux Development Tools...