[gdal-dev] gdal make fails for python bindings - with ccache: invalid option -- 'p'

Mark Johnson mj10777 at googlemail.com
Thu Dec 14 09:04:06 PST 2017


Since sometime since the end of August, the building of the swig portion
fails with a final message of

/usr/bin/ccache: invalid option -- 'p'

Before this point, after the message:

----------------------------------------------------------------------
The GDAL python package has been installed in
/home/mj10777/000_links/apps_local/gdal_git_master/lib/python3.4/site-packages
Please ensure to add
/home/mj10777/000_links/apps_local/gdal_git_master/lib/python3.4/site-packages
to your PYTHONPATH
----------------------------------------------------------------------

come the following message, which I assume is the true cause:

env
PYTHONPATH=/home/mj10777/000_links/apps_local/gdal_git_master/lib/python3.4/site-packages${PYTHONPATH:+:$PYTHONPATH}
\
/home/mj10777/000_links/apps_local/libQt592/bin/python3.4 setup.py install
--single-version-externally-managed --record=record.txt
--prefix=/home/mj10777/000_links/apps_local/gdal_git_master
WARNING: "CXX=/bin/bash
/home/mj10777/000_links/gdal_dev/gdal.git/gdal/gdal/libtool --mode=compile
--tag=CXX /usr/bin/g++ -std=c++11" was defined in the environment and
contains more than one word. Unsetting it since that is incompatible of
distutils

running install
running build
running build_py
running build_ext

then:

gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -fPIC -I../../port -I../../gcore -I../../alg
-I../../ogr/ -I../../ogr/ogrsf_frmts -I../../gnm -I../../apps
-I/home/mj10777/000_links/apps_local/libQt592/include/python3.4m
-I/home/mj10777/000_links/apps_local/libQt592/lib/python3.4/site-packages/numpy/core/include
-I/home/mj10777/000_links/gdal_dev/gdal.git/gdal/gdal/include -c
gdal_python_cxx11_test.cpp -o gdal_python_cxx11_test.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for
C/ObjC but not for C++
gdal_python_cxx11_test.cpp:3:2: error: #error "C++11 required"
 #error "C++11 required"

then after the message 'building 'osgeo._gdal' extension'

comes the 'ccache: invalid option -- 'p'' message and ends.
(ccache version 3.1.9)

I assume the 'WARNING: "CXX=/bin/bash' is the true cause, but really have
no idea how to resolve this.

I am using the same ./configure as always, and the error/warnings show only:

/bin/bash: ./config.rpath: No such file or directory
config.status: WARNING:  'GDALmake.opt.in' seems to ignore the
--datarootdir setting
configure: WARNING: --with-libxml2 and --with-fgdb are both available.
There might be some incompatibility between system libxml2 and the embedded
copy within libFileGDBAPI

which I assume is not the cause, since this only occurs durring the swig
portion.

When ' (cd swig; $(MAKE) install)' is commented out in the GNUmakefile
file, everything else runs and installs.

Mark Johnson, Berlin Germany
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20171214/cdb070c1/attachment.html>


More information about the gdal-dev mailing list