[gdal-dev] make install fails

Kai Muehlbauer kai.muehlbauer at uni-bonn.de
Fri Jul 1 04:20:12 PDT 2016


Hi Matthias,

I did experience the same issue. See

https://lists.osgeo.org/pipermail/gdal-dev/2016-July/044678.html

Although I did not find the root cause of this, I found that in my use 
case, copying and unsetting CC and CXX environment variables did the trick.

So what I did is:

export CF_CC=$CC
export CF_CXX=$CXX
unset CC CXX
./configure CC=$CF_CC \
             CXX=$CF_CXX \
             --prefix=$PREFIX
make

Hoping for more insight by gdal-devs.

Cheers,
Kai

Am 03.03.2016 um 11:31 schrieb Matthias Kuhn:
> Hi,
>
> I am trying to compile and install gdal in docker (ubuntu 12.04)
> container with python3 and in a custom prefix (/home/travis/deps),
> clang-3.6 is used. configure and make run fine, however, make install fails:
>
> /bin/bash -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
> -Wl,-Bsymbolic-functions -Wl,-z,relro
> build/temp.linux-x86_64-3.2/extensions/osr_wrap.o -L../../.libs -L../../
> -L/usr/src/gdal-2.0.2/lib -lgdal -o
> build/lib.linux-x86_64-3.2/osgeo/_osr.cpython-32mu.so
> /bin/bash: -d: invalid option
> error: command '/bin/bash' failed with exit status 1
>
> Any idea what could be the cause for this? I am grateful for any hints!
>
> Thank you in advance,
> Matthias
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>

-- 
Kai Muehlbauer
Meteorological Institute University of Bonn
Auf dem Huegel 20       | +49 228 739083
D-53121 Bonn            | kai.muehlbauer at uni-bonn.de


More information about the gdal-dev mailing list