Now Studio 11 is better than Studio 10

I have fixed regression in Studio 11 code and now Studio 11 is better than Studio 10.

  Studio 11 Studio 10
Pass 749 743
Warn 155 156
Fail 45 50

New patches for Studio 11 (121017-02/121018-02) and Studio 10 (117830-07/117831-07) are on the road. Unfortunately I fix regression after Studio 11 patch was started. But we plan to start new patches for Studio 11 (121017-03/121018-03) soon.

Also we get significant progress with Boost 1.33.1. I post more detailed info later.

Comments:

Really great job Simon. BTW we also worked on the Boost sources to adapth/correct them to the SunStudio 11 compiler. For sure when the compiler patch will be released will discarded our changes. But the question is : do you have any idea when your changes will be accessible ? We have no SUN assistance contract so if you can directly or indirectly help me .... Again it's very professional from SUN side to decide to promote this public domain library.

Posted by Yaakov Berkovitch on March 27, 2006 at 12:02 PM MSD #

We are using boost.interprocess, shared memory interfaces. Boost documentation says it can be used without compilation as its fully templatized.

I am able to compile and run on Windows, however on Solaris 10 with Studio 12 SunStudio12/12/SUNWspro/bin/CC" compiler I am not able to compile.

Below are the errors :
CC -mt -D_REENTRANT -DBOOST_DATE_TIME_NO_LIB -I../boost/boost_1_35_0 -I./include -c src/test_suit.cpp -o obj/test_suit.o
"../boost/boost_1_35_0/boost/interprocess/shared_memory_object.hpp", line 296: Error: The function "shm_open" must have a prototype.
"../boost/boost_1_35_0/boost/interprocess/shared_memory_object.hpp", line 319: Error: The function "shm_unlink" must have a prototype.
"../boost/boost_1_35_0/boost/interprocess/detail/algorithms.hpp", line 65: Error: Templates can only declare classes or functions.
"../boost/boost_1_35_0/boost/interprocess/detail/algorithms.hpp", line 67: Error: "," expected instead of "--".
"../boost/boost_1_35_0/boost/interprocess/detail/algorithms.hpp", line 67: Error: A declaration was expected instead of "++".
"../boost/boost_1_35_0/boost/interprocess/detail/algorithms.hpp", line 67: Error: Use ";" to terminate declarations.
"../boost/boost_1_35_0/boost/interprocess/detail/algorithms.hpp", line 67: Error: A declaration was expected instead of "++".
"../boost/boost_1_35_0/boost/interprocess/detail/algorithms.hpp", line 67: Error: "," expected instead of ")".
"../boost/boost_1_35_0/boost/interprocess/detail/algorithms.hpp", line 69: Error: A declaration was expected instead of "return".
"../boost/boost_1_35_0/boost/interprocess/detail/algorithms.hpp", line 69: Error: Multiple declaration for first.
"../boost/boost_1_35_0/boost/interprocess/detail/algorithms.hpp", line 74: Error: Templates can only declare classes or functions.
"../boost/boost_1_35_0/boost/interprocess/detail/algorithms.hpp", line 80: Error: FwdIt is not defined.
"../boost/boost_1_35_0/boost/interprocess/detail/algorithms.hpp", line 80: Error: dest is not defined.
"../boost/boost_1_35_0/boost/interprocess/detail/algorithms.hpp", line 81: Error: iterator_traits is not a member of std.
"../boost/boost_1_35_0/boost/interprocess/detail/algorithms.hpp", line 81: Error: A declaration does not specify a tag or an identifier.
<clipped>...
Compilation aborted, too many Error messages.

Am I missing something? I believe that boost 1.35 is supported on Studio 12 is that correct or not?

Posted by Sumit on May 20, 2008 at 05:28 AM MSD #

The error messages related to shm_open and shm_unlink caused by bug in the Solaris system headers. This bug has been fixed recently and is planned for Solaris 10 update 5. Before that you can use -D_XPG4_2 -D__EXTENSIONS__ to turn on declarations of shm_open and shm_unlink. As for the rest error messages it is hard to make any conclusion without test case to reproduce that.

Posted by Simon Atanasyan on May 28, 2008 at 05:59 AM MSD #

Post a Comment:
  • HTML Syntax: NOT allowed
About

atanasyan

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today