[gdal-dev] Issues with GDAL compilation
Even Rouault
even.rouault at spatialys.com
Wed Nov 4 01:39:57 PST 2015
Le mercredi 04 novembre 2015 10:33:11, Matthias Benedikt a écrit :
> Hi there,
> I'm trying to get GRASS and all its components compiled from source on a
> Scientific Linux 6.6. PROJ4, GEOS, netCFD and HDF5 are good to go, except
> GDAL. What i did was:
>
>
> cd /path/to/src
> svn checkout https://svn.osgeo.org/gdal/branches/1.11/gdal gdal
> cd /path/to/src/gdal
> mkdir build
> CFLAGS="-g -Wall" LDFLAGS="-s" ./configure \
> --prefix=/path/to/src/gdal/build \
> --with-png=internal \
> --with-libtiff=internal \
> --with-geotiff=internal \
> --with-jpeg=internal \
> --with-gif=internal \
> --with-static-proj4=/path/to/src/proj-4.9.1/build \
> --with-geos=/path/to/src/geos-3.4.2/build/bin/geos-config \
> --with-hdf5=/path/to/src/hdf5-1.8.15-patch1/build \
> --with-netcdf=/path/to/src/netcdf-4.3.3.1/build
> make -j8
>
> It keeps going a bit, but ends at some point with:
>
>
> libtool: compile: icpc -g -O2 -DHAVE_SSE_AT_COMPILE_TIME -Wall
> -I/path/to/src/gdal/port -I/path/to/src/gdal/gcore -I/path/to/src/gdal/alg
> -I/path/to/src/gdal/ogr -I/path/to/src/gdal/ogr/ogrsf_frmts -DHAVE_GEOS=1
> -I/path/to/src/geos-3.4.2/build/include -DHAVE_AVX_AT_COMPILE_TIME
> -DOGR_ENABLED -I/path/to/src/gdal/port
> -I/path/to/src/netcdf-4.3.3.1/build/include -c gdalgrid.cpp -fPIC -DPIC
> -o .libs/gdalgrid.o ": internal error: 010101_3007
> ( tel:0101013007)
>
> compilation aborted for thinplatespline.cpp (code 4)
> make[1]: *** [thinplatespline.lo] Error 1
> make[1]: *** Waiting for unfinished jobs....
>
> I compiled GDAL several times on Ubuntu systems, always worked out fine.
> Does anyone have any pointers what I'm doing wrong?
Matthias,
Probably nothing, except using a proprietary compiler ;-) It looks like a bug
in the compiler when dealing with alg/gdalgrid.cpp.
It might perhaps be confused by the AVX code. Try adding --without-avx to the
configure options.
And if you compile from source, I'd encourage you anyway using the latest
release : http://download.osgeo.org/gdal/2.0.1/ There were some changes
regarding separation of AVX code from non-AVX code, so perhaps the compiler
bug might not pop up.
Even
--
Spatialys - Geospatial professional services
http://www.spatialys.com
More information about the gdal-dev
mailing list