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

Matthew Woehlke mw_triad at users.sourceforge.net
Tue Mar 6 19:39:08 EST 2007


Matthew Woehlke wrote:
> 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).

Ok, something apparently breaks the build system, VERY VERY BADLY, if 
bootstrapping fails (or maybe it is if the file mentioned below is 
changed). Here is what I get from a first-run bootstrap on a clean 
unpacking of the tarball:

gmake: Warning: File `Makefile' has modification time 2.3e+02 s in the 
future
CC -I/path/to/cmake-2.4.6/Source   -I/path/to/cmake-2.4.6/Bootstrap.cmk 
-c /path/to/cmake-2.4.6/Source/cmake.cxx -o cmake.o
CC -I/path/to/cmake-2.4.6/Source   -I/path/to/cmake-2.4.6/Bootstrap.cmk 
-c /path/to/cmake-2.4.6/Source/cmakemain.cxx -o cmakemain.o
CC -I/path/to/cmake-2.4.6/Source   -I/path/to/cmake-2.4.6/Bootstrap.cmk 
-c /path/to/cmake-2.4.6/Source/cmakewizard.cxx -o cmakewizard.o
CC -I/path/to/cmake-2.4.6/Source   -I/path/to/cmake-2.4.6/Bootstrap.cmk 
-c /path/to/cmake-2.4.6/Source/cmCommandArgumentLexer.cxx -o 
cmCommandArgumentLexer.o
"cmCommandArgumentLexer.cxx", line 13: Warning (Anachronism): End of 
file while skipping text -- Check #if .. #endif pairing.
"cmCommandArgumentLexer.cxx", line 34: Warning (Anachronism): End of 
file while skipping text -- Check #if .. #endif pairing.
"cmCommandArgumentLexer.cxx", line 29: Warning (Anachronism): End of 
file while skipping text -- Check #if .. #endif pairing.
"cmCommandArgumentLexer.cxx", line 121: Warning (Anachronism): End of 
file while skipping text -- Check #if .. #endif pairing.
"cmCommandArgumentLexer.cxx", line 161: Warning (Anachronism): End of 
file while skipping text -- Check #if .. #endif pairing.
...

It seems to be a problem with the '#line' directive. I can't preprocess 
(i.e. 'CC -E') this:

====
#include "cmStandardIncludes.h"

#line 2 "cmCommandArgumentLexer.cxx"

#line 4 "cmCommandArgumentLexer.cxx"

#define  YY_INT_ALIGNED short int

/* A lexical scanner generated by flex */

#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5
#define YY_FLEX_SUBMINOR_VERSION 33
#if YY_FLEX_SUBMINOR_VERSION > 0
#define FLEX_BETA
#endif
====

...but it goes through OK if I comment out the '#line' lines.

-- 
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