[GRASS-dev] Re: [GRASS GIS] #1125: wingrass - ctypes - compiling
error
GRASS GIS
trac at osgeo.org
Fri Aug 13 16:07:14 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 martinl):
Replying to [comment:12 hellik]:
> 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
{{{
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python/grass/lib
make[1]: Entering directory
`/osgeo4w/usr/src/grass_trunk/lib/python/ctypes'
make[1]: `/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib' is up to date.
make[1]: Leaving directory
`/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 /osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib/date.py
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib/grass.py
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib/raster.py
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib/gmath.py
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib/proj.py
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib/imagery.py
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib/vector.py
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib/display.py
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib/stats.py
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib/dbmi.py
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib/g3d.py /osgeo4w/usr/src/grass_trunk/dist.i686
-pc-mingw32/etc/python/grass/lib/arraystats.py
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib/cluster.py
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib/trans.py
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib/vedit.py
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib/ogsf.py
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib/nviz.py
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib/__init__.py
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib/ctypes_preamble.py
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib/ctypes_loader.py
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib/date.pyc
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib/grass.pyc
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib/raster.pyc
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib/gmath.pyc
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib/proj.pyc
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib/imagery.pyc
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib/vector.pyc
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib/display.pyc
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib/stats.pyc
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib/dbmi.pyc
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib/g3d.pyc
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib/arraystats.pyc
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib/cluster.pyc
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib/trans.pyc
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib/vedit.pyc
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib/ogsf.pyc
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib/nviz.pyc
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib/__init__.pyc
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib/ctypes_preamble.pyc
/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/python/grass/lib/ctypes_loader.pyc
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 -D_FILE_OFFSET_BITS=64
-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\2\tmp9xn3by.h
Status: gcc -E -D_FILE_OFFSET_BITS=64
-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\2\tmp9xn3by.h
# 1 "c:\\users\\landa\\appdata\\local\\temp\\2\\tmp9xn3by.h"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "c:\\users\\landa\\appdata\\local\\temp\\2\\tmp9xn3by.h"
# 1 "c:\\osgeo4w\\usr\\src\\grass_trunk\\dist.i686-pc-
mingw32\\include\\grass\\datetime.h" 1
typedef struct DateTime
{
int mode;
int from, to;
int fracsec;
int year, month, day;
int hour, minute;
double second;
int positive;
int tz;
} DateTime;
# 1 "/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/include/grass/P_datetime.h" 1
int datetime_is_between(int x, int a, int b);
int datetime_change_from_to(DateTime * dt, int from, int to, int round);
void datetime_copy(DateTime * src, const DateTime * dst);
int datetime_difference(const DateTime * a, const DateTime * b,
DateTime * result);
int datetime_error(int code, char *msg);
int datetime_error_code(void);
char *datetime_error_msg(void);
void datetime_clear_error(void);
int datetime_format(const DateTime * dt, char *buf);
int datetime_increment(DateTime * src, DateTime * incr);
int datetime_is_valid_increment(const DateTime * src, const DateTime *
incr);
int datetime_check_increment(const DateTime * src, const DateTime * incr);
int datetime_get_increment_type(const DateTime * dt, int *mode, int *from,
int *to, int *fracsec);
int datetime_set_increment_type(const DateTime * src, DateTime * incr);
int datetime_get_local_timezone(int *minutes);
void datetime_get_local_time(DateTime * dt);
int datetime_days_in_month(int year, int month, int ad);
int datetime_is_leap_year(int year, int ad);
int datetime_days_in_year(int year, int ad);
int datetime_is_same(const DateTime * src, const DateTime * dst);
int datetime_scan(DateTime * dt, const char *buf);
int datetime_is_positive(const DateTime * dt);
int datetime_is_negative(const DateTime * dt);
void datetime_set_positive(DateTime * dt);
void datetime_set_negative(DateTime * dt);
void datetime_invert_sign(DateTime * dt);
int datetime_set_type(DateTime * dt, int mode, int from, int to, int
fracsec);
int datetime_get_type(const DateTime * dt, int *mode, int *from, int *to,
int *fracsec);
int datetime_is_valid_type(const DateTime * dt);
int datetime_check_type(const DateTime * dt);
int datetime_in_interval_year_month(int x);
int datetime_in_interval_day_second(int x);
int datetime_is_absolute(const DateTime * dt);
int datetime_is_relative(const DateTime * dt);
int datetime_check_timezone(const DateTime * dt, int minutes);
int datetime_get_timezone(const DateTime * dt, int *minutes);
int datetime_set_timezone(DateTime * dt, int minutes);
int datetime_unset_timezone(DateTime * dt);
int datetime_is_valid_timezone(int minutes);
int datetime_change_timezone(DateTime * dt, int minutes);
int datetime_change_to_utc(DateTime * dt);
void datetime_decompose_timezone(int tz, int *hours, int *minutes);
int datetime_check_year(const DateTime * dt, int year);
int datetime_check_month(const DateTime * dt, int month);
int datetime_check_day(const DateTime * dt, int day);
int datetime_check_hour(const DateTime * dt, int hour);
int datetime_check_minute(const DateTime * dt, int minute);
int datetime_check_second(const DateTime * dt, double second);
int datetime_check_fracsec(const DateTime * dt, int fracsec);
int datetime_get_year(const DateTime * dt, int *year);
int datetime_set_year(DateTime * dt, int year);
int datetime_get_month(const DateTime * dt, int *month);
int datetime_set_month(DateTime * dt, int month);
int datetime_get_day(const DateTime * dt, int *day);
int datetime_set_day(DateTime * dt, int day);
int datetime_get_hour(const DateTime * dt, int *hour);
int datetime_set_hour(DateTime * dt, int hour);
int datetime_get_minute(const DateTime * dt, int *minute);
int datetime_set_minute(DateTime * dt, int minute);
int datetime_get_second(const DateTime * dt, double *second);
int datetime_set_second(DateTime * dt, double second);
int datetime_get_fracsec(const DateTime * dt, int *fracsec);
int datetime_set_fracsec(DateTime * dt, int fracsec);
# 29 "c:\\osgeo4w\\usr\\src\\grass_trunk\\dist.i686-pc-
mingw32\\include\\grass\\datetime.h" 2
# 2 "c:\\users\\landa\\appdata\\local\\temp\\2\\tmp9xn3by.h" 2
# 1 "c:\\osgeo4w\\usr\\src\\grass_trunk\\dist.i686-pc-
mingw32\\include\\grass\\P_datetime.h" 1
# 3 "c:\\users\\landa\\appdata\\local\\temp\\2\\tmp9xn3by.h" 2
# 1 "c:\\users\\landa\\appdata\\local\\temp\\2\\tmp9xn3by.h"
# 1 "<built-in>"
#define __STDC_HOSTED__ 1
#define __GNUC__ 3
#define __GNUC_MINOR__ 4
#define __GNUC_PATCHLEVEL__ 5
#define __SIZE_TYPE__ unsigned int
#define __PTRDIFF_TYPE__ int
#define __WCHAR_TYPE__ short unsigned int
#define __WINT_TYPE__ short unsigned int
#define __GXX_ABI_VERSION 1002
#define __USING_SJLJ_EXCEPTIONS__ 1
#define __SCHAR_MAX__ 127
#define __SHRT_MAX__ 32767
#define __INT_MAX__ 2147483647
#define __LONG_MAX__ 2147483647L
#define __LONG_LONG_MAX__ 9223372036854775807LL
#define __WCHAR_MAX__ 65535U
#define __CHAR_BIT__ 8
#define __FLT_EVAL_METHOD__ 2
#define __FLT_RADIX__ 2
#define __FLT_MANT_DIG__ 24
#define __FLT_DIG__ 6
#define __FLT_MIN_EXP__ (-125)
#define __FLT_MIN_10_EXP__ (-37)
#define __FLT_MAX_EXP__ 128
#define __FLT_MAX_10_EXP__ 38
#define __FLT_MAX__ 3.40282347e+38F
#define __FLT_MIN__ 1.17549435e-38F
#define __FLT_EPSILON__ 1.19209290e-7F
#define __FLT_DENORM_MIN__ 1.40129846e-45F
#define __FLT_HAS_INFINITY__ 1
#define __FLT_HAS_QUIET_NAN__ 1
#define __DBL_MANT_DIG__ 53
#define __DBL_DIG__ 15
#define __DBL_MIN_EXP__ (-1021)
#define __DBL_MIN_10_EXP__ (-307)
#define __DBL_MAX_EXP__ 1024
#define __DBL_MAX_10_EXP__ 308
#define __DBL_MAX__ 1.7976931348623157e+308
#define __DBL_MIN__ 2.2250738585072014e-308
#define __DBL_EPSILON__ 2.2204460492503131e-16
#define __DBL_DENORM_MIN__ 4.9406564584124654e-324
#define __DBL_HAS_INFINITY__ 1
#define __DBL_HAS_QUIET_NAN__ 1
#define __LDBL_MANT_DIG__ 64
#define __LDBL_DIG__ 18
#define __LDBL_MIN_EXP__ (-16381)
#define __LDBL_MIN_10_EXP__ (-4931)
#define __LDBL_MAX_EXP__ 16384
#define __LDBL_MAX_10_EXP__ 4932
#define __DECIMAL_DIG__ 21
#define __LDBL_MAX__ 1.18973149535723176502e+4932L
#define __LDBL_MIN__ 3.36210314311209350626e-4932L
#define __LDBL_EPSILON__ 1.08420217248550443401e-19L
#define __LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L
#define __LDBL_HAS_INFINITY__ 1
#define __LDBL_HAS_QUIET_NAN__ 1
#define __REGISTER_PREFIX__
#define __USER_LABEL_PREFIX__ _
#define __VERSION__ "3.4.5 (mingw-vista special r3)"
#define __NO_INLINE__ 1
#define __FINITE_MATH_ONLY__ 0
#define __i386 1
#define __i386__ 1
#define i386 1
#define __tune_i686__ 1
#define __tune_pentiumpro__ 1
#define _X86_ 1
#define __stdcall __attribute__((__stdcall__))
#define __fastcall __attribute__((__fastcall__))
#define __cdecl __attribute__((__cdecl__))
#define __declspec(x) __attribute__((x))
#define _stdcall __attribute__((__stdcall__))
#define _fastcall __attribute__((__fastcall__))
#define _cdecl __attribute__((__cdecl__))
#define __MSVCRT__ 1
#define __MINGW32__ 1
#define _WIN32 1
#define __WIN32 1
#define __WIN32__ 1
#define WIN32 1
#define __WINNT 1
#define __WINNT__ 1
#define WINNT 1
# 1 "<command line>"
#define _FILE_OFFSET_BITS 64
#define inline
#define __inline__
#define __extension__
#define _Bool uint8_t
#define __const const
#define __asm__(x)
#define __asm(x)
#define CTYPESGEN 1
# 1 "c:\\users\\landa\\appdata\\local\\temp\\2\\tmp9xn3by.h"
# 1 "c:\\osgeo4w\\usr\\src\\grass_trunk\\dist.i686-pc-
mingw32\\include\\grass\\datetime.h" 1
#define GRASS_DATETIME_H
#define DATETIME_ABSOLUTE 1
#define DATETIME_RELATIVE 2
#define DATETIME_YEAR 1
#define DATETIME_MONTH 2
#define DATETIME_DAY 3
#define DATETIME_HOUR 4
#define DATETIME_MINUTE 5
#define DATETIME_SECOND 6
# 1 "/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/include/grass/P_datetime.h" 1
#define GRASS_P_DATETIME_H
# 29 "c:\\osgeo4w\\usr\\src\\grass_trunk\\dist.i686-pc-
mingw32\\include\\grass\\datetime.h" 2
# 2 "c:\\users\\landa\\appdata\\local\\temp\\2\\tmp9xn3by.h" 2
# 1 "c:\\osgeo4w\\usr\\src\\grass_trunk\\dist.i686-pc-
mingw32\\include\\grass\\P_datetime.h" 1
# 3 "c:\\users\\landa\\appdata\\local\\temp\\2\\tmp9xn3by.h" 2
# 1 "c:\\users\\landa\\appdata\\local\\temp\\2\\tmp9xn3by.h"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "c:\\users\\landa\\appdata\\local\\temp\\2\\tmp9xn3by.h"
# 1 "c:\\osgeo4w\\usr\\src\\grass_trunk\\dist.i686-pc-
mingw32\\include\\grass\\datetime.h" 1
typedef struct DateTime
{
int mode;
int from, to;
int fracsec;
int year, month, day;
int hour, minute;
double second;
int positive;
int tz;
} DateTime;
# 1 "/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/include/grass/P_datetime.h" 1
int datetime_is_between(int x, int a, int b);
int datetime_change_from_to(DateTime * dt, int from, int to, int round);
void datetime_copy(DateTime * src, const DateTime * dst);
int datetime_difference(const DateTime * a, const DateTime * b,
DateTime * result);
int datetime_error(int code, char *msg);
int datetime_error_code(void);
char *datetime_error_msg(void);
void datetime_clear_error(void);
int datetime_format(const DateTime * dt, char *buf);
int datetime_increment(DateTime * src, DateTime * incr);
int datetime_is_valid_increment(const DateTime * src, const DateTime *
incr);
int datetime_check_increment(const DateTime * src, const DateTime * incr);
int datetime_get_increment_type(const DateTime * dt, int *mode, int *from,
int *to, int *fracsec);
int datetime_set_increment_type(const DateTime * src, DateTime * incr);
int datetime_get_local_timezone(int *minutes);
void datetime_get_local_time(DateTime * dt);
int datetime_days_in_month(int year, int month, int ad);
int datetime_is_leap_year(int year, int ad);
int datetime_days_in_year(int year, int ad);
int datetime_is_same(const DateTime * src, const DateTime * dst);
int datetime_scan(DateTime * dt, const char *buf);
int datetime_is_positive(const DateTime * dt);
int datetime_is_negative(const DateTime * dt);
void datetime_set_positive(DateTime * dt);
void datetime_set_negative(DateTime * dt);
void datetime_invert_sign(DateTime * dt);
int datetime_set_type(DateTime * dt, int mode, int from, int to, int
fracsec);
int datetime_get_type(const DateTime * dt, int *mode, int *from, int *to,
int *fracsec);
int datetime_is_valid_type(const DateTime * dt);
int datetime_check_type(const DateTime * dt);
int datetime_in_interval_year_month(int x);
int datetime_in_interval_day_second(int x);
int datetime_is_absolute(const DateTime * dt);
int datetime_is_relative(const DateTime * dt);
int datetime_check_timezone(const DateTime * dt, int minutes);
int datetime_get_timezone(const DateTime * dt, int *minutes);
int datetime_set_timezone(DateTime * dt, int minutes);
int datetime_unset_timezone(DateTime * dt);
int datetime_is_valid_timezone(int minutes);
int datetime_change_timezone(DateTime * dt, int minutes);
int datetime_change_to_utc(DateTime * dt);
void datetime_decompose_timezone(int tz, int *hours, int *minutes);
int datetime_check_year(const DateTime * dt, int year);
int datetime_check_month(const DateTime * dt, int month);
int datetime_check_day(const DateTime * dt, int day);
int datetime_check_hour(const DateTime * dt, int hour);
int datetime_check_minute(const DateTime * dt, int minute);
int datetime_check_second(const DateTime * dt, double second);
int datetime_check_fracsec(const DateTime * dt, int fracsec);
int datetime_get_year(const DateTime * dt, int *year);
int datetime_set_year(DateTime * dt, int year);
int datetime_get_month(const DateTime * dt, int *month);
int datetime_set_month(DateTime * dt, int month);
int datetime_get_day(const DateTime * dt, int *day);
int datetime_set_day(DateTime * dt, int day);
int datetime_get_hour(const DateTime * dt, int *hour);
int datetime_set_hour(DateTime * dt, int hour);
int datetime_get_minute(const DateTime * dt, int *minute);
int datetime_set_minute(DateTime * dt, int minute);
int datetime_get_second(const DateTime * dt, double *second);
int datetime_set_second(DateTime * dt, double second);
int datetime_get_fracsec(const DateTime * dt, int *fracsec);
int datetime_set_fracsec(DateTime * dt, int fracsec);
# 29 "c:\\osgeo4w\\usr\\src\\grass_trunk\\dist.i686-pc-
mingw32\\include\\grass\\datetime.h" 2
# 2 "c:\\users\\landa\\appdata\\local\\temp\\2\\tmp9xn3by.h" 2
# 1 "c:\\osgeo4w\\usr\\src\\grass_trunk\\dist.i686-pc-
mingw32\\include\\grass\\P_datetime.h" 1
# 3 "c:\\users\\landa\\appdata\\local\\temp\\2\\tmp9xn3by.h" 2
# 1 "c:\\users\\landa\\appdata\\local\\temp\\2\\tmp9xn3by.h"
# 1 "<built-in>"
#define __STDC_HOSTED__ 1
#define __GNUC__ 3
#define __GNUC_MINOR__ 4
#define __GNUC_PATCHLEVEL__ 5
#define __SIZE_TYPE__ unsigned int
#define __PTRDIFF_TYPE__ int
#define __WCHAR_TYPE__ short unsigned int
#define __WINT_TYPE__ short unsigned int
#define __GXX_ABI_VERSION 1002
#define __USING_SJLJ_EXCEPTIONS__ 1
#define __SCHAR_MAX__ 127
#define __SHRT_MAX__ 32767
#define __INT_MAX__ 2147483647
#define __LONG_MAX__ 2147483647L
#define __LONG_LONG_MAX__ 9223372036854775807LL
#define __WCHAR_MAX__ 65535U
#define __CHAR_BIT__ 8
#define __FLT_EVAL_METHOD__ 2
#define __FLT_RADIX__ 2
#define __FLT_MANT_DIG__ 24
#define __FLT_DIG__ 6
#define __FLT_MIN_EXP__ (-125)
#define __FLT_MIN_10_EXP__ (-37)
#define __FLT_MAX_EXP__ 128
#define __FLT_MAX_10_EXP__ 38
#define __FLT_MAX__ 3.40282347e+38F
#define __FLT_MIN__ 1.17549435e-38F
#define __FLT_EPSILON__ 1.19209290e-7F
#define __FLT_DENORM_MIN__ 1.40129846e-45F
#define __FLT_HAS_INFINITY__ 1
#define __FLT_HAS_QUIET_NAN__ 1
#define __DBL_MANT_DIG__ 53
#define __DBL_DIG__ 15
#define __DBL_MIN_EXP__ (-1021)
#define __DBL_MIN_10_EXP__ (-307)
#define __DBL_MAX_EXP__ 1024
#define __DBL_MAX_10_EXP__ 308
#define __DBL_MAX__ 1.7976931348623157e+308
#define __DBL_MIN__ 2.2250738585072014e-308
#define __DBL_EPSILON__ 2.2204460492503131e-16
#define __DBL_DENORM_MIN__ 4.9406564584124654e-324
#define __DBL_HAS_INFINITY__ 1
#define __DBL_HAS_QUIET_NAN__ 1
#define __LDBL_MANT_DIG__ 64
#define __LDBL_DIG__ 18
#define __LDBL_MIN_EXP__ (-16381)
#define __LDBL_MIN_10_EXP__ (-4931)
#define __LDBL_MAX_EXP__ 16384
#define __LDBL_MAX_10_EXP__ 4932
#define __DECIMAL_DIG__ 21
#define __LDBL_MAX__ 1.18973149535723176502e+4932L
#define __LDBL_MIN__ 3.36210314311209350626e-4932L
#define __LDBL_EPSILON__ 1.08420217248550443401e-19L
#define __LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L
#define __LDBL_HAS_INFINITY__ 1
#define __LDBL_HAS_QUIET_NAN__ 1
#define __REGISTER_PREFIX__
#define __USER_LABEL_PREFIX__ _
#define __VERSION__ "3.4.5 (mingw-vista special r3)"
#define __NO_INLINE__ 1
#define __FINITE_MATH_ONLY__ 0
#define __i386 1
#define __i386__ 1
#define i386 1
#define __tune_i686__ 1
#define __tune_pentiumpro__ 1
#define _X86_ 1
#define __stdcall __attribute__((__stdcall__))
#define __fastcall __attribute__((__fastcall__))
#define __cdecl __attribute__((__cdecl__))
#define __declspec(x) __attribute__((x))
#define _stdcall __attribute__((__stdcall__))
#define _fastcall __attribute__((__fastcall__))
#define _cdecl __attribute__((__cdecl__))
#define __MSVCRT__ 1
#define __MINGW32__ 1
#define _WIN32 1
#define __WIN32 1
#define __WIN32__ 1
#define WIN32 1
#define __WINNT 1
#define __WINNT__ 1
#define WINNT 1
# 1 "<command line>"
#define _FILE_OFFSET_BITS 64
#define inline
#define __inline__
#define __extension__
#define _Bool uint8_t
#define __const const
#define __asm__(x)
#define __asm(x)
#define CTYPESGEN 1
# 1 "c:\\users\\landa\\appdata\\local\\temp\\2\\tmp9xn3by.h"
# 1 "c:\\osgeo4w\\usr\\src\\grass_trunk\\dist.i686-pc-
mingw32\\include\\grass\\datetime.h" 1
#define GRASS_DATETIME_H
#define DATETIME_ABSOLUTE 1
#define DATETIME_RELATIVE 2
#define DATETIME_YEAR 1
#define DATETIME_MONTH 2
#define DATETIME_DAY 3
#define DATETIME_HOUR 4
#define DATETIME_MINUTE 5
#define DATETIME_SECOND 6
# 1 "/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/include/grass/P_datetime.h" 1
#define GRASS_P_DATETIME_H
# 29 "c:\\osgeo4w\\usr\\src\\grass_trunk\\dist.i686-pc-
mingw32\\include\\grass\\datetime.h" 2
# 2 "c:\\users\\landa\\appdata\\local\\temp\\2\\tmp9xn3by.h" 2
# 1 "c:\\osgeo4w\\usr\\src\\grass_trunk\\dist.i686-pc-
mingw32\\include\\grass\\P_datetime.h" 1
# 3 "c:\\users\\landa\\appdata\\local\\temp\\2\\tmp9xn3by.h" 2
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 344, 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
}}}
Similar stuff is created on Linux, but on Windows it's end up with error.
No idea why.
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1125#comment:18>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list