[Slackbuilds-users] gdal SlackBuild fails
baildon.research at googlemail.com
Fri Mar 3 12:19:09 UTC 2017
> Looks like the kind of issue caused by using MAKEFLAGS=-j3 (or anything
> other than -j1). That's a snap diagnosis, I don't know what gdal even is.
gdal already has 'make -j1' hard-coded, because it definitely fails
with multiple parallel make jobs.
For some reason that I don't understand, on Duncan's system gcc is
being invoked through libtool.
The compilation explicitly has '-o
build/temp.linux-x86_64-2.7/extensions/.libs/gdal_wrap.o', but that
file does not exist at the time the next command 'g++ -pthread -shared
build/temp.linux-x86_64-2.7/extensions/gdal_wrap.o' is invoked.
So this really does look like a multiple parallel make jobs failure.
Duncan, for avoidance of doubt you haven't removed -j1 or overridden it somehow?
Are you on -current?
Do you have CC and/or CXX defined in the environment?
could you put your config.log on pastebin or somewhere similar?
Here's the corresponding part of a clean build on my box.
building 'osgeo._gdal' extension
gcc -pthread -fno-strict-aliasing -g -O2 -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/usr/include/python2.7 -I. -I/tmp/review/gdal-2.1.3/include -c
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid
for C/ObjC but not for C++
In file included from /usr/include/python2.7/Python.h:133:0,
extensions/gdal_wrap.cpp: In function ‘PyObject*
/usr/include/python2.7/abstract.h:1354:62: warning: deprecated
conversion from string constant to ‘char*’ [-Wwrite-strings]
#define PyMapping_Items(O) PyObject_CallMethod(O,"items",NULL)
extensions/gdal_wrap.cpp:9115:31: note: in expansion of macro ‘PyMapping_Items’
PyObject *item_list = PyMapping_Items( obj1 );
g++ -pthread -shared
-L../../ -L/usr/lib64 -L/tmp/review/gdal-2.1.3/lib -lpython2.7 -lgdal
building 'osgeo._gdalconst' extension
I see that Duncan has numpy, whereas I don't. Clearly I should
document numpy as a requirement for the Python bindings in README, or
maybe make it a hard dep...
A bit perplexed
More information about the SlackBuilds-users