[GRASS-dev] Re: [GRASS GIS] #1125: wingrass7 - ctypes - compiling
error
GRASS GIS
trac at osgeo.org
Wed Aug 4 18:40:38 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 hellik):
Replying to [comment:5 hellik]:
>
> some time ago I had problems with compiling wingrass7 in WinVista32 and
large file support, because large file support is set automatically by the
configure step via
> ./mswindows/osgeo4w/package.sh.
>
> so I unset large file support manually in platform.make.
>
> {{{
> #Large File Support (LFS)
> USE_LARGEFILES =
> }}}
>
> so maybe this makes the difference in the two error messages?
>
if I don't unset manually large file support in platform make, I get
similar error message like Martin.
{{{
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'
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_datetime.7.0.svn -lintl /c/osgeo4w/usr/src/grass_trunk/dist.i686
-pc-mingw32/include/grass/datetime.h
/c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/include/grass/P_datetime.h -o date.py
Status: Preprocessing c:\users\syringia\appdata\local\temp\tmpjarvxp.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\tmpjarvxp.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\tmpjarvxp.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\datetime.h:28:30: grass/P_datetime.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\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
make[1]: Leaving directory
`/c/osgeo4w/usr/src/grass_trunk/lib/python/ctypes'
make: *** [default] Error 2
}}}
but the problem seems to be the same:
=> [...]grass\datetime.h:28:30: grass/P_datetime.h: No such file or
directory
Helmut
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1125#comment:7>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list