[GRASS-dev] Re: [GRASS GIS] #1125: wingrass7 - ctypes - compiling error

GRASS GIS trac at osgeo.org
Wed Aug 4 13:57:50 EDT 2010


#1125: wingrass7 - ctypes - compiling error
------------------------------+---------------------------------------------
 Reporter:  hellik            |       Owner:  grass-dev@…              
     Type:  defect            |      Status:  new                      
 Priority:  normal            |   Milestone:  7.0.0                    
Component:  Compiling         |     Version:  svn-trunk                
 Keywords:  wingrass, ctypes  |    Platform:  MSWindows Vista          
      Cpu:  x86-32            |  
------------------------------+---------------------------------------------

Comment(by martinl):

 Replying to [comment:2 hellik]:
 > Replying to [comment:1 glynn]:
 > > Replying to [ticket:1125 hellik]:
 > > > trying to compile grass7 (r42983) in the osgeo4w-stack, there is
 following error
 > > >
 > > {{{
 > > Error: gcc -E -I/c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
 mingw32/include -I/c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
 mingw32/include: c:\osgeo4w\usr\src\grass_trunk\dist.i686-pc-
 mingw32\include\grass\datetime.h:28:30: grass/P_datetime.h: No such file
 or directory
 > > }}}
 > > >
 > >
 > > Does that file exist?
 >
 > yes, datetime.h and P_datetime.h exist in
 >
 > C:\OSGeo4W\usr\src\grass_trunk\dist.i686-pc-mingw32\include\grass
 >
 > and
 >
 > C:\OSGeo4W\usr\src\grass_trunk\include

 strangely I am getting different error

 {{{
 Status: gcc -E -D_FILE_OFFSET_BITS=64
 -I/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/include
 -I/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/include -U __GNUC__
 -dD "-Dinline=" "-D__inline__=" "-D__extension__=" "-D_Bool=uint8_t"
 "-D__const=const" "-D__asm__(x)=" "-D__asm(x)=" "-DCTYPESGEN=1"
 c:\users\landa\appdata\local\temp\3\tmpu2so-q.h
 Traceback (most recent call last):
   File "./ctypesgen.py", line 134, in <module>
     descriptions=ctypesgencore.parser.parse(options.headers,options)
   File
 "c:\osgeo4w\usr\src\grass_trunk\lib\python\ctypes\ctypesgencore\parser\__init__.py",
 line 21, in parse
     parser.parse()
   File
 "c:\osgeo4w\usr\src\grass_trunk\lib\python\ctypes\ctypesgencore\parser\datacollectingparser.py",
 line 69, in parse
     ctypesparser.CtypesParser.parse(self,fname,None)
   File
 "c:\osgeo4w\usr\src\grass_trunk\lib\python\ctypes\ctypesgencore\parser\cparser.py",
 line 113, in parse
     self.preprocessor_parser.parse(filename)
   File
 "c:\osgeo4w\usr\src\grass_trunk\lib\python\ctypes\ctypesgencore\parser\preprocessor.py",
 line 196, in parse
     token = self.lexer.token()
   File
 "c:\osgeo4w\usr\src\grass_trunk\lib\python\ctypes\ctypesgencore\parser\preprocessor.py",
 line 51, in token
     result = lex.Lexer.token(self)
   File
 "c:\osgeo4w\usr\src\grass_trunk\lib\python\ctypes\ctypesgencore\parser\lex.py",
 line 343, in token
     raise LexError, ("Scanning error. Illegal character '%s'" %
 (lexdata[lexpos]), lexdata[lexpos:])
 ctypesgencore.parser.lex.LexError: Scanning error. Illegal character '#'
 make[1]: *** [date.py] Error 1
 }}}

 Martin

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1125#comment:4>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list