MantisBT - CMake
View Issue Details
0015318CMakeCMakepublic2014-12-18 11:142015-05-04 09:05
Fritz H 
Brad King 
normalmajoralways
closedfixed 
Solaris10
CMake 3.1 
CMake 3.1.1CMake 3.1.1 
0015318: cmComputeLinkDepends.cxx fils to compile
os: solaris 10, compiler: sunstudio 12.1

file Source/cmComputeLinkDepends.cxx fails to compile, error:

line 270: Error: Cannot use std::reverse_iterator<int*, std::random_access_iterator_tag, int, int&, int*, int> to initialize std::reverse_iterator<const int*, std::random_access_iterator_tag, int, const int&, const int*, int>.
line 271: Error: Cannot use std::reverse_iterator<int*, std::random_access_iterator_tag, int, int&, int*, int> to initialize std::reverse_iterator<const int*, std::random_access_iterator_tag, int, const int&, const int*, int>.

i am not an expert in c++, but the following change at least satisfied the compiler:

--- cmake-3.1.0_orig/Source/cmComputeLinkDepends.cxx Mon Dec 15 21:07:43 2014
+++ cmake-3.1.0/Source/cmComputeLinkDepends.cxx Thu Dec 18 16:17:00 2014
@@ -266,7 +266,7 @@
   // Iterate in reverse order so we can keep only the last occurrence
   // of a shared library.
   std::set<int> emmitted;
- for(std::vector<int>::const_reverse_iterator
+ for(std::vector<int>::reverse_iterator
         li = this->FinalLinkOrder.rbegin(),
         le = this->FinalLinkOrder.rend();
       li != le; ++li)
No tags attached.
related to 0015317closed Brad King cmake-3.1.0: failing bootstrap on solaris 10 
patch 0001-Fix-compilation-with-the-Oracle-Sun-compiler-15318.patch (1,247) 2014-12-18 11:26
https://public.kitware.com/Bug/file/5328/0001-Fix-compilation-with-the-Oracle-Sun-compiler-15318.patch
Issue History
2014-12-18 11:14Fritz HNew Issue
2014-12-18 11:21Brad KingNote Added: 0037487
2014-12-18 11:26Brad KingFile Added: 0001-Fix-compilation-with-the-Oracle-Sun-compiler-15318.patch
2014-12-18 11:26Brad KingNote Added: 0037488
2014-12-18 11:26Brad KingStatusnew => acknowledged
2014-12-18 11:26Brad KingTarget Version => CMake 3.1.1
2014-12-18 11:39Brad KingRelationship addedrelated to 0015317
2014-12-22 14:27Brad KingNote Added: 0037510
2014-12-22 14:27Brad KingAssigned To => Brad King
2014-12-22 14:27Brad KingStatusacknowledged => resolved
2014-12-22 14:27Brad KingResolutionopen => fixed
2014-12-22 14:27Brad KingFixed in Version => CMake 3.1.1
2015-05-04 09:05Robert MaynardNote Added: 0038706
2015-05-04 09:05Robert MaynardStatusresolved => closed

Notes
(0037487)
Brad King   
2014-12-18 11:21   
I think this has been fixed in post-3.1 development here:

 Misc. fixes for the Oracle / Sun compiler.
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=97b65f81 [^]

Without nightly testing we really can't offer support for a platform.
(0037488)
Brad King   
2014-12-18 11:26   
Please test "0001-Fix-compilation-with-the-Oracle-Sun-compiler-15318.patch".
(0037510)
Brad King   
2014-12-22 14:27   
Re 0015318:0037488: Patch applied here:

 Fix compilation with the Oracle / Sun compiler
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=107dcac3 [^]
(0038706)
Robert Maynard   
2015-05-04 09:05   
Closing resolved issues that have not been updated in more than 4 months.