[GRASS-dev] Re: [GRASS GIS] #1125: wingrass7 - ctypes - compiling
error
GRASS GIS
trac at osgeo.org
Thu Aug 5 13:04:04 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:9 glynn]:
> > if I don't unset manually large file support in platform make, I get
similar error message like Martin.
>
> > but the problem seems to be the same:
> >
> > => [...]grass\datetime.h:28:30: grass/P_datetime.h: No such file or
directory
>
> Except, Martin isn't getting this error.
when I set up
{{{
#Large File Support (LFS)
USE_LARGEFILES =
}}}
in {{{include/Make/Platform.make}}}
I am getting the same error
{{{
make[1]: Entering directory
`/osgeo4w/usr/src/grass_trunk/lib/python/ctypes'
GISRC=/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/demolocation/.grassrc70
GISBASE=c:/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32
PATH="/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="/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/bin:/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/lib:/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/lib:.:/usr/local/bin:/mingw/bin:/bin:/osgeo4w/bin:/osgeo4w/bin:/c/Subversion:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Program
Files (x86)/Dell/SysMgt/idrac:/c/Program Files
(x86)/Dell/SysMgt/oma/bin:/c/Program Files (x86)/Microsoft SQL
Server/100/Tools/Binn/:/c/Program Files (x86)/Microsoft SQL
Server/100/DTS/Binn/:/bin:/bin:/c/Subversion:/bin:/bin:/c/Subversion"
LC_ALL=C ./ctypesgen.py --cpp "gcc -E
-I/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/include
-I/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/include"
-lgrass_datetime.7.0.svn -lintl /osgeo4w/usr/src/grass_trunk/dist.i686
-pc-mingw32/include/grass/datetime.h
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/include/grass/P_datetime.h -o date.py
Status: Preprocessing c:\users\landa\appdata\local\temp\5\tmpm-gc1i.h
Status: gcc -E -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\5\tmpm-
gc1i.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
make[1]: Leaving directory
`/osgeo4w/usr/src/grass_trunk/lib/python/ctypes'
make: *** [default] Error 2
}}}
Martin
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1125#comment:10>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list