[GRASS-dev] Re: [GRASS GIS] #1125: wingrass - ctypes - compiling
error
GRASS GIS
trac at osgeo.org
Fri Aug 20 05:18:20 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:29 glynn]:
> Replying to [comment:27 hellik]:
>
> > I can't find anything relating to lib/python/ctypes in the build
output, but maybe I've overlooked something. So I will provide the build
output.
>
> It looks as if you didn't manage to revert r43132. Try changing
lib/python/Makefile by hand.
you're right.
now the following error messages:
{{{
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'
make[1]: `date.py' is up to date.
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/apps/gdal-16/include -I/c/OSG eo4W/include
-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 -lintl3 /c/osgeo4w/usr/src/grass_trunk/dist.i686
-pc-mingw32/include/gras s/gis.h /c/osgeo4w/usr/src/grass_trunk/dist.i686
-pc-mingw32/include/grass/gisde fs.h -o grass.py
Status: Preprocessing c:\users\syringia\appdata\local\temp\tmpbttgat.h
Status: gcc -E -I/c/OSGeo4W/apps/gdal-16/include -I/c/OSGeo4W/include -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__inlin e__=" "-D__extension__=" "-D_Bool=uint8_t"
"-D__const=const" "-D__asm__(x)=" "- D__asm(x)=" "-DCTYPESGEN=1"
c:/users/syringia/appdata/local/temp/tmpbttgat.h
Status: Parsing c:\users\syringia\appdata\local\temp\tmpbttgat.h
Status: Processing description list.
Warning: Member "from" of Struct "DateTime" has been renamed to "_from"
because it has the same name as a Python keyword.
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 ; ( b uf ) [ i2 ] = ( ( x ) >> i16 ) & i255 ; ( buf ) [ i3 ] = ( (
x ) >> i24 ) & i25 5 ; } 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 ) & i25 5 ; } 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
}}}
Glynn:
{{{
r43120 should fix the 'grass/config.h: No such file or directory' (etc)
errors, while r43121 should fix the 'Could not load library "intl"'
warnings (which will result in errors at runtime).
}}}
this two issues are fixed, but there seems though some issues with
{{{
ValueError: invalid literal for float(): inf
}}}
Helmut
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1125#comment:30>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list