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

GRASS GIS trac at osgeo.org
Sun Aug 15 02:46:06 EDT 2010


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

Comment(by hellik):

 Replying to [comment:19 glynn]:
 > Replying to [comment:18 martinl]:
 >
 > > > there is no difference to my initial post.
 > >
 > > the same here, when I try to print lex data
 ([source:grass/trunk/lib/python/ctypes/ctypesgencore/parser/lex.py]) I am
 getting
 >
 > Ugh; that much text should ideally be an attachment rather than inline.
 >
 > Anyhow: the parser is getting confused by CRLFs; the regexps for
 preprocessor directives match the entire line as a single token, and they
 don't allow for a CR.
 >
 > Try r43118.

 I've tried r43118 in osgeo4w-stack in WinVista32:

 {{{
 GRASS GIS compilation log
 -------------------------
 Started compilation: Sun Aug 15 05:28:47 GMT 2010
 --
 Errors in:
 /c/osgeo4w/usr/src/grass_trunk/lib/vector/diglib
 /c/osgeo4w/usr/src/grass_trunk/lib/python/ctypes
 }}}

 I get  now a different error message than the first report

 {{{
 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.py stats.py dbmi.py g3d.py arraystats.py cluster.py trans.py
 vedit.py ogsf.py nviz.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/lib/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/grass/lib/gmath.py
 /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
 mingw32/etc/python/grass/lib/proj.py
 /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
 mingw32/etc/python/grass/lib/imagery.py
 /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
 mingw32/etc/python/grass/lib/vector.py
 /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
 mingw32/etc/python/grass/lib/display.py
 /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
 mingw32/etc/python/grass/lib/stats.py
 /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
 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.i686-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_trunk/dist.i686-pc-
 mingw32/etc/python/grass/lib/trans.py
 /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
 mingw32/etc/python/grass/lib/vedit.py
 /c/osgeo4w/usr/src/grass_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/src/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/ctypes_loader.py
 /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
 mingw32/etc/python/grass/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/python/grass/lib/raster.pyc
 /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
 mingw32/etc/python/grass/lib/gmath.pyc
 /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
 mingw32/etc/python/grass/lib/proj.pyc
 /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
 mingw32/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_trunk/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/grass_trunk/dist.i686-pc-
 mingw32/etc/python/grass/lib/g3d.pyc
 /c/osgeo4w/usr/src/grass_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/osgeo4w/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.pyc
 /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
 mingw32/etc/python/grass/lib/ogsf.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/lib/__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-
 mingw32/etc/python/grass/lib/ctypes_loader.pyc
 make[1]: Entering directory
 `/c/osgeo4w/usr/src/grass_trunk/lib/python/ctypes'
 make[1]: `date.py' is up to date.
 GISRC=/c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
 mingw32/demolocation/.grassrc70
 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/dist.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/bin:/c/Program Files/Common Files/Roxio
 Shared/DLLShared/:/c/Program Files/Common Files/Roxio
 Shared/10.0/DLLShared/:/c/windows/System32/WindowsPowerShell/v1.0/:/c/Program
 Files/TortoiseSVN/bin:/c/Program Files/QuickTime/QTSystem/:/bin" LC_ALL=C
 ./ctypesgen.py --cpp "gcc -E -D_FILE_OFFSET_BITS=64
 -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_gis.7.0.svn -lintl  -lintl
 /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/include/grass/gis.h
 /c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
 mingw32/include/grass/gisdefs.h -o grass.py
 Status: Preprocessing c:\users\syringia\appdata\local\temp\tmpfflpih.h
 Status: gcc -E -D_FILE_OFFSET_BITS=64
 -I/c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/include
 -I/c/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/syringia/appdata/local/temp/tmpfflpih.h
 Error: gcc -E -D_FILE_OFFSET_BITS=64
 -I/c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/include
 -I/c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/include: In file
 included from c:/users/syringia/appdata/local/temp/tmpfflpih.h:1:
 Error: gcc -E -D_FILE_OFFSET_BITS=64
 -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\gis.h:28:26: grass/config.h: No such file or
 directory
 Error: gcc -E -D_FILE_OFFSET_BITS=64
 -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\gis.h:29:28: grass/datetime.h: No such file or
 directory
 Error: gcc -E -D_FILE_OFFSET_BITS=64
 -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\gis.h:387:27: grass/gisdefs.h: No such file or
 directory
 Status: Parsing c:\users\syringia\appdata\local\temp\tmpfflpih.h
 Error: c:\\osgeo4w\\usr\\src\\grass_trunk\\dist.i686-pc-
 mingw32\\include\\grass\\gis.h:370: Syntax error at 'DateTime'
 Error: c:\\osgeo4w\\usr\\src\\grass_trunk\\dist.i686-pc-
 mingw32\\include\\grass\\gis.h:370: Syntax error at ';'
 Error: c:\\osgeo4w\\usr\\src\\grass_trunk\\dist.i686-pc-
 mingw32\\include\\grass\\gis.h:372: Syntax error at '}'
 Error: c:\\osgeo4w\\usr\\src\\grass_trunk\\dist.i686-pc-
 mingw32\\include\\grass\\gisdefs.h:478: Syntax error at 'STRUCT_STAT'
 Error: c:\\osgeo4w\\usr\\src\\grass_trunk\\dist.i686-pc-
 mingw32\\include\\grass\\gisdefs.h:479: Syntax error at 'STRUCT_STAT'
 Status: Processing description list.
 Warning: Could not load library "intl". Okay, I'll try to load it at
 runtime instead.
 Warning: Could not load library "intl". Okay, I'll try to load it at
 runtime instead.
 Warning: Member "def" of Struct "Option" has been renamed to "_def"
 because it has the same name as a Python keyword.
 Warning: Could not parse macro "#define serialize_int32_le(buf,x) do { (
 buf ) [ i0 ] = ( ( x ) >> i0 ) & i255 ; ( buf ) [ i1 ] = ( ( x ) >> i8 ) &
 i255 ; ( buf ) [ i2 ] = ( ( x ) >> i16 ) & i255 ; ( buf ) [ i3 ] = ( ( x )
 >> i24 ) & i255 ; } while ( i0 )"
 Warning: Could not parse macro "#define serialize_int32_be(buf,x) do { (
 buf ) [ i0 ] = ( ( x ) >> i24 ) & i255 ; ( buf ) [ i1 ] = ( ( x ) >> i16 )
 & i255 ; ( buf ) [ i2 ] = ( ( x ) >> i8 ) & i255 ; ( buf ) [ i3 ] = ( ( x
 ) >> i0 ) & i255 ; } while ( i0 )"
 Status: Writing to grass.py.
 Traceback (most recent call last):
   File "./ctypesgen.py", line 140, in <module>
 ctypesgencore.printer.WrapperPrinter(options.output,options,descriptions)
   File
 "c:\osgeo4w\usr\src\grass_trunk\lib\python\ctypes\ctypesgencore\printer\printer.py",
 line 51, in __init__
     method_table[kind](desc)
   File
 "c:\osgeo4w\usr\src\grass_trunk\lib\python\ctypes\ctypesgencore\printer\printer.py",
 line 156, in print_constant
     (constant.name,constant.value.py_string(False)),
   File
 "c:\osgeo4w\usr\src\grass_trunk\lib\python\ctypes\ctypesgencore\expressions.py",
 line 72, in py_string
     if self.value == float('inf'):
 ValueError: invalid literal for float(): inf
 make[1]: *** [grass.py] Error 1
 make[1]: Leaving directory
 `/c/osgeo4w/usr/src/grass_trunk/lib/python/ctypes'
 make: *** [default] Error 2
 }}}


 r43118 includes also the fixes from Markus M for the large file support-
 windows issue and lfs is enabled.

 Helmut

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



More information about the grass-dev mailing list