[CMake] Solaris (SPARC) build failure with WSC 6

Matthew Woehlke mw_triad at users.sourceforge.net
Tue Mar 6 19:02:13 EST 2007


Since Kent was so helpful with my AIX problem, I'll try here again 
before going straight to the bug report...

I get this using CC: "CC: Sun WorkShop 6 update 2 C++ 5.3 2001/05/15" 
(the Solaris version - 2.7 - isn't really relevant since this is the 
same compiler we use on all Solaris SPARC machines).

CC -I/home/install/gnu/src/foo/sun4_solaris/cmake-2.4.6/Source 
-I/home/install/gnu/src/foo/sun4_solaris/cmake-2.4.6/Bootstrap.cmk -c 
/home/install/gnu/src/foo/sun4_solaris/cmake-2.4.6/Source/cmake.cxx -o 
cmake.o
"/home/install/gnu/src/foo/sun4_solaris/cmake-2.4.6/Bootstrap.cmk/cmsys/String.hxx", 
line 30: Error: string is not defined.
"/home/install/gnu/src/foo/sun4_solaris/cmake-2.4.6/Bootstrap.cmk/cmsys/String.hxx", 
line 33: Error: "," expected instead of "stl_string".
"/home/install/gnu/src/foo/sun4_solaris/cmake-2.4.6/Bootstrap.cmk/cmsys/String.hxx", 
line 35: Error: Use ";" to terminate declarations.
"/home/install/gnu/src/foo/sun4_solaris/cmake-2.4.6/Bootstrap.cmk/cmsys/String.hxx", 
line 38: Error: stl_string is not defined.
"/home/install/gnu/src/foo/sun4_solaris/cmake-2.4.6/Bootstrap.cmk/cmsys/String.hxx", 
line 38: Error: value_type is not defined.
"/home/install/gnu/src/foo/sun4_solaris/cmake-2.4.6/Bootstrap.cmk/cmsys/String.hxx", 
line 39: Error: stl_string is not defined.
"/home/install/gnu/src/foo/sun4_solaris/cmake-2.4.6/Bootstrap.cmk/cmsys/String.hxx", 
line 39: Error: pointer is not defined.
"/home/install/gnu/src/foo/sun4_solaris/cmake-2.4.6/Bootstrap.cmk/cmsys/String.hxx", 
line 40: Error: stl_string is not defined.
"/home/install/gnu/src/foo/sun4_solaris/cmake-2.4.6/Bootstrap.cmk/cmsys/String.hxx", 
line 40: Error: reference is not defined.
"/home/install/gnu/src/foo/sun4_solaris/cmake-2.4.6/Bootstrap.cmk/cmsys/String.hxx", 
line 41: Error: stl_string is not defined.
"/home/install/gnu/src/foo/sun4_solaris/cmake-2.4.6/Bootstrap.cmk/cmsys/String.hxx", 
line 41: Error: const_reference is not defined.
"/home/install/gnu/src/foo/sun4_solaris/cmake-2.4.6/Bootstrap.cmk/cmsys/String.hxx", 
line 42: Error: stl_string is not defined.
"/home/install/gnu/src/foo/sun4_solaris/cmake-2.4.6/Bootstrap.cmk/cmsys/String.hxx", 
line 42: Error: size_type is not defined.
"/home/install/gnu/src/foo/sun4_solaris/cmake-2.4.6/Bootstrap.cmk/cmsys/String.hxx", 
line 43: Error: stl_string is not defined.
"/home/install/gnu/src/foo/sun4_solaris/cmake-2.4.6/Bootstrap.cmk/cmsys/String.hxx", 
line 43: Error: difference_type is not defined.
"/home/install/gnu/src/foo/sun4_solaris/cmake-2.4.6/Bootstrap.cmk/cmsys/String.hxx", 
line 44: Error: stl_string is not defined.
"/home/install/gnu/src/foo/sun4_solaris/cmake-2.4.6/Bootstrap.cmk/cmsys/String.hxx", 
line 44: Error: iterator is not defined.
"/home/install/gnu/src/foo/sun4_solaris/cmake-2.4.6/Bootstrap.cmk/cmsys/String.hxx", 
line 45: Error: stl_string is not defined.
"/home/install/gnu/src/foo/sun4_solaris/cmake-2.4.6/Bootstrap.cmk/cmsys/String.hxx", 
line 45: Error: const_iterator is not defined.
"/home/install/gnu/src/foo/sun4_solaris/cmake-2.4.6/Bootstrap.cmk/cmsys/String.hxx", 
line 46: Error: stl_string is not defined.
"/home/install/gnu/src/foo/sun4_solaris/cmake-2.4.6/Bootstrap.cmk/cmsys/String.hxx", 
line 46: Error: reverse_iterator is not defined.
"/home/install/gnu/src/foo/sun4_solaris/cmake-2.4.6/Bootstrap.cmk/cmsys/String.hxx", 
line 47: Error: stl_string is not defined.
"/home/install/gnu/src/foo/sun4_solaris/cmake-2.4.6/Bootstrap.cmk/cmsys/String.hxx", 
line 47: Error: const_reverse_iterator is not defined.
"/home/install/gnu/src/foo/sun4_solaris/cmake-2.4.6/Bootstrap.cmk/cmsys/String.hxx", 
line 53: Error: ")" expected instead of "&".
"/home/install/gnu/src/foo/sun4_solaris/cmake-2.4.6/Source/cmStandardIncludes.h", 
line 278: Error: file level is not a direct base class of cmOStringStream.
Compilation aborted, too many Error messages.
gmake: *** [cmake.o] Error 1
---------------------------------------------
Error when bootstrapping CMake:
Problem while running gmake

It looks like <string> is not being included, or is preprocessing itself 
into nothing. I tried forcing the issue by replacing '#include <string>' 
in Bootstrap.cmk/cmsys/stl/string (and since I couldn't figure out where 
this is coming from, I had to add a sleep to the bootstrap script so I 
could make the change between the file being generated, and being used) 
with no effect. So far I haven't figured out a way around this.

Suggestions?

-- 
Matthew
"Do you do windows as well?"
"Only when I'm forced to deal with Microsoft..."
   -- from a story by Feech



More information about the CMake mailing list