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

GRASS GIS trac at osgeo.org
Tue Aug 3 18:43:01 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            |  
------------------------------+---------------------------------------------
 trying to compile grass7 (r42983) in the osgeo4w-stack, there is following
 error (see for additional information also thread "WinGrass65 + import
 gui_modules.nviz_tools as nviz_tools: ImportError" in june-grass-dev-ml:
 i.e. http://lists.osgeo.org/pipermail/grass-dev/2010-June/050965.html)

 {{{
 -------------------------
 Started compilation: Tue Aug  3 17:47:06 GMT 2010
 --
 Errors in:
 /c/osgeo4w/usr/src/grass_trunk/lib/python/ctypes
 --
 }}}

 and trying make in /c/osgeo4w/usr/src/grass_trunk/lib/python/ctypes

 {{{
 syringia at NADA /c/osgeo4w/usr/src/grass_trunk/lib/python/ctypes
 $ make
 make /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
 mingw32/etc/python/grass/lib
 make[1]: Entering directory
 `/c/osgeo4w/usr/src/grass_trunk/lib/python/ctypes'
 make[1]: `/c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
 mingw32/etc/python/grass/ lib' is up to date.
 make[1]: Leaving directory
 `/c/osgeo4w/usr/src/grass_trunk/lib/python/ctypes'
 make date.py grass.py raster.py gmath.py proj.py imagery.py vector.py
 display.p y stats.py dbmi.py g3d.py arraystats.py cluster.py trans.py
 vedit.py ogsf.py nv iz.py /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
 mingw32/etc/python/grass/lib/ date.py
 /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/li
 b/grass.py /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
 mingw32/etc/python/grass /lib/raster.py
 /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/g
 rass/lib/gmath.py /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
 mingw32/etc/pytho n/grass/lib/proj.py
 /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/pyt
 hon/grass/lib/imagery.py /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
 mingw32/et c/python/grass/lib/vector.py
 /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw3
 2/etc/python/grass/lib/display.py
 /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-m
 ingw32/etc/python/grass/lib/stats.py
 /c/osgeo4w/usr/src/grass_trunk/dist.i686-p
 c-mingw32/etc/python/grass/lib/dbmi.py
 /c/osgeo4w/usr/src/grass_trunk/dist.i686 -pc-
 mingw32/etc/python/grass/lib/g3d.py
 /c/osgeo4w/usr/src/grass_trunk/dist.i68 6-pc-
 mingw32/etc/python/grass/lib/arraystats.py /c/osgeo4w/usr/src/grass_trunk/
 dist.i686-pc-mingw32/etc/python/grass/lib/cluster.py
 /c/osgeo4w/usr/src/grass_t runk/dist.i686-pc-
 mingw32/etc/python/grass/lib/trans.py /c/osgeo4w/usr/src/gras
 s_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/vedit.py
 /c/osgeo4w/usr/src/g rass_trunk/dist.i686-pc-
 mingw32/etc/python/grass/lib/ogsf.py /c/osgeo4w/usr/src
 /grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/nviz.py
 /c/osgeo4w/usr/s rc/grass_trunk/dist.i686-pc-
 mingw32/etc/python/grass/lib/__init__.py /c/osgeo4w
 /usr/src/grass_trunk/dist.i686-pc-
 mingw32/etc/python/grass/lib/ctypes_preamble. py
 /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
 mingw32/etc/python/grass/lib/cty pes_loader.py
 /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/gr
 ass/lib/date.pyc /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
 mingw32/etc/python /grass/lib/grass.pyc
 /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/py
 thon/grass/lib/raster.pyc /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
 mingw32/e tc/python/grass/lib/gmath.pyc
 /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw
 32/etc/python/grass/lib/proj.pyc /c/osgeo4w/usr/src/grass_trunk/dist.i686
 -pc-mi ngw32/etc/python/grass/lib/imagery.pyc
 /c/osgeo4w/usr/src/grass_trunk/dist.i686 -pc-
 mingw32/etc/python/grass/lib/vector.pyc
 /c/osgeo4w/usr/src/grass_trunk/dist .i686-pc-
 mingw32/etc/python/grass/lib/display.pyc /c/osgeo4w/usr/src/grass_trun
 k/dist.i686-pc-mingw32/etc/python/grass/lib/stats.pyc
 /c/osgeo4w/usr/src/grass_ trunk/dist.i686-pc-
 mingw32/etc/python/grass/lib/dbmi.pyc /c/osgeo4w/usr/src/gra
 ss_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/g3d.pyc
 /c/osgeo4w/usr/src/g rass_trunk/dist.i686-pc-
 mingw32/etc/python/grass/lib/arraystats.pyc /c/osgeo4w/
 usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/cluster.pyc
 /c/os geo4w/usr/src/grass_trunk/dist.i686-pc-
 mingw32/etc/python/grass/lib/trans.pyc /
 c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
 mingw32/etc/python/grass/lib/vedit.p yc
 /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
 mingw32/etc/python/grass/lib/ogs f.pyc
 /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib/
 nviz.pyc /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
 mingw32/etc/python/grass/l ib/__init__.pyc
 /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/
 grass/lib/ctypes_preamble.pyc /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
 mingw 32/etc/python/grass/lib/ctypes_loader.pyc
 make[1]: Entering directory
 `/c/osgeo4w/usr/src/grass_trunk/lib/python/ctypes'
 GISRC=/c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
 mingw32/demolocation/.grassrc 70
 GISBASE=c:/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32
 PATH="/c/osgeo4w /usr/src/grass_trunk/dist.i686-pc-mingw32/bin:$PATH"
 PYTHONPATH="c:/osgeo4w/usr /src/grass_trunk/dist.i686-pc-
 mingw32/etc/python;$PYTHONPATH" PATH="/c/osgeo4w/
 usr/src/grass_trunk/dist.i686-pc-
 mingw32/bin:/c/osgeo4w/usr/src/grass_trunk/dis t.i686-pc-
 mingw32/lib:/c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/lib:.
 :/usr/local/bin:/mingw/bin:/bin:/osgeo4w/bin:/c/windows/system32:/c/windows:/c/
 windows/System32/Wbem:/c/Program Files/ATI Technologies/ATI.ACE/Core-
 Static:/c/ Program Files/ActivIdentity/ActivClient/:/c/Program Files
 /Hewlett-Packard/IAM/b in:/c/Program Files/Common Files/Roxio
 Shared/DLLShared/:/c/Program Files/Commo n Files/Roxio
 Shared/10.0/DLLShared/:/c/windows/System32/WindowsPowerShell/v1.0
 /:/c/Program Files/TortoiseSVN/bin:/c/Program
 Files/QuickTime/QTSystem/:/bin" L C_ALL=C ./ctypesgen.py --cpp "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"
 -lgrass_datetime.7.0.svn -lintl /c/osgeo4w/usr/src/grass_trunk/dist.i 686
 -pc-mingw32/include/grass/datetime.h
 /c/osgeo4w/usr/src/grass_trunk/dist.i68 6-pc-
 mingw32/include/grass/P_datetime.h -o date.py
 Status: Preprocessing c:\users\syringia\appdata\local\temp\tmppdrcss.h
 Status: gcc -E -I/c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/inclu
 de -I/c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/include -U
 __GNUC__ -d D "-Dinline=" "-D__inline__=" "-D__extension__="
 "-D_Bool=uint8_t" "-D__const=c onst" "-D__asm__(x)=" "-D__asm(x)="
 "-DCTYPESGEN=1" c:\users\syringia\appdata\l ocal\temp\tmppdrcss.h
 Error: gcc -E -I/c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/includ
 e -I/c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/include: In file
 includ ed from c:\users\syringia\appdata\local\temp\tmppdrcss.h:1:
 Error: gcc -E -I/c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/includ
 e -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_d atetime.h: No such file
 or directory
 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\d
 atacollectingparser.py", line 69, in parse
  ctypesparser.CtypesParser.parse(self,fname,None)
  File
 "c:\osgeo4w\usr\src\grass_trunk\lib\python\ctypes\ctypesgencore\parser\c
 parser.py", line 113, in parse
  self.preprocessor_parser.parse(filename)
  File
 "c:\osgeo4w\usr\src\grass_trunk\lib\python\ctypes\ctypesgencore\parser\p
 reprocessor.py", line 196, in parse
  token = self.lexer.token()
  File
 "c:\osgeo4w\usr\src\grass_trunk\lib\python\ctypes\ctypesgencore\parser\p
 reprocessor.py", line 51, in token
  result = lex.Lexer.token(self)
  File
 "c:\osgeo4w\usr\src\grass_trunk\lib\python\ctypes\ctypesgencore\parser\l
 ex.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
 make[1]: Leaving directory
 `/c/osgeo4w/usr/src/grass_trunk/lib/python/ctypes'
 make: *** [default] Error 2
 }}}

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



More information about the grass-dev mailing list