Opened 9 years ago
Last modified 9 years ago
#6013 closed defect
Can't compile from SVN under mingw64 — at Version 1
Reported by: | robe | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 2.0.1 |
Component: | default | Version: | 2.0.0 |
Severity: | normal | Keywords: | |
Cc: |
Description (last modified by )
I've tried compiling both
http://svn.osgeo.org/gdal/tags/2.0.0/gdal
and
http://svn.osgeo.org/gdal/branches/2.0
Based on your suggestion I tried a fresh new copy without doing
sh autogen.sh
In any case I get these errors during make
make[1]: Entering directory `/sources/gdal-2.0.0tag/port' /bin/sh /sources/gdal-2.0.0tag/libtool --mode=compile --tag=CXX g++ -I/sources/gdal-2.0.0tag/port -I/sources/gdal-2.0.0tag/gcore -I/sources/gdal-2.0.0tag/alg -I/sources/gdal-2.0.0tag/ogr -I/sources/gdal-2.0.0tag/ogr/ogrsf_frmts -g -O2 -Wall -DOGR_ENABLED -I/sources/gdal-2.0.0tag/port -I/min -I../frmts/zlib -DHAVE_LIBZ -c -o cpl_conv.lo cpl_conv.cppDGDAL_COMPILATION libtool: compile: g++ -I/sources/gdal-2.0.0tag/port -I/sources/gdal-2.0.0tag/gcore -I/sources/gdal-2.0.0tag/alg -I/sources/gdal-2.0.0tag/ogr -I/sources/gdal-2.0.0tag/ogr/ogrsf_frmts -g -O2 -Wall -DOGR_ENABLED -I/sources/gdal-2.0.0tag/port -I/mingw/x86_64-w64-mingw32 -I/mingw/x86_64-w64-mingw32/include -DGDAL_COMPILATION -I../frmts/zlib -DHAVE_LIBZ -c cpl_conv.cpp -DDLL_EXPORT -DPIC -o .libs/cpl_conv.o In file included from cpl_conv.h:35:0, from cpl_conv.cpp:33: cpl_port.h:89:2: error: #error "Unexpected value for SIZEOF_INT" #error "Unexpected value for SIZEOF_INT" ^ cpl_port.h:93:2: error: #error "Unexpected value for SIZEOF_UNSIGNED_LONG" #error "Unexpected value for SIZEOF_UNSIGNED_LONG" ^ cpl_port.h:97:2: error: #error "Unexpected value for SIZEOF_VOIDP" #error "Unexpected value for SIZEOF_VOIDP" ^ cpl_conv.cpp: In function 'int CPLAtoGIntBigExHasOverflow(const char*, GIntBig)': cpl_conv.cpp:966:41: warning: format '%I64d' expects argument of type 'long long int', but argument 3 has type 'GIntBig {aka long int}' [-Wformat=] sprintf(szBuffer, CPL_FRMT_GIB, nVal); ^ cpl_conv.cpp: In function 'void* CPLScanPointer(const char*, int)': cpl_conv.cpp:1078:61: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] pResult = (void *) CPLScanULong( szTemp, nMaxLength ); ^ cpl_conv.cpp: In function 'int CPLPrintUIntBig(char*, GUIntBig, int)': cpl_conv.cpp:1292:48: warning: format '%I64d' expects argument of type 'long long int', but argument 4 has type 'GUIntBig {aka long unsigned int}' [-Wformat=] sprintf( szTemp, "%*I64d", nMaxLen, iValue ); ^ ../GDALmake.opt:582: recipe for target `cpl_conv.lo' failed make[1]: *** [cpl_conv.lo] Error 1 make[1]: Leaving directory `/sources/gdal-2.0.0tag/port' GNUmakefile:51: recipe for target `port-target' failed make: *** [port-target] Error 2
What I find puzzling is building from the http://download.osgeo.org/gdal/2.0.0/gdal-2.0.0.tar.gz tarball works fine.
So it doesn't seem to be the configure script at fault since when I swap out the configure script with the tar ball one it still doesn't work.
Note:
See TracTickets
for help on using tickets.