[pdal] Centos 7, python3, gcc 4.8: pip3 fails to build PDAL

Adam Steer Adam.Steer at anu.edu.au
Tue Jun 13 23:17:20 PDT 2017


Hiya

I’m rebuilding a PDAL instance on centos 7 with python 3.4.5. PDAL is compiled from release 1.5.0 with python 3.4.5.

When I get to installing PDAL in a virtual environment, I get the message below - any pointers on how to resolve it and get the PDAL python interface going in python3 would be great!

Thanks

Adam

---
System stuff:

- python34-devel is present
- python-devel is present

# gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-11)

# python --version
Python 3.4.5

numpy==1.13.0

#  pdal --version
--------
pdal 1.5.0 (git-version: Release)

Error message:
--------------------
 gcc -pthread -Wno-unused-result -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include -I/usr/include/gdal -I/usr/include/libxml2 -I/usr/include -I/usr/include/laszip -I/local/skua/pywps-venv/lib/python3.4/site-packages/numpy/core/include -I/usr/include/python3.4m -c pdal/libpdalpython.cpp -o build/temp.linux-x86_64-3.4/pdal/libpdalpython.o -std=c++11
    In file included from /local/skua/pywps-venv/lib/python3.4/site-packages/numpy/core/include/numpy/ndarraytypes.h:1809:0,
                     from /local/skua/pywps-venv/lib/python3.4/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
                     from /local/skua/pywps-venv/lib/python3.4/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                     from pdal/libpdalpython.cpp:489:
    /local/skua/pywps-venv/lib/python3.4/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
     #warning "Using deprecated NumPy API, disable it by " \
      ^
    gcc -pthread -Wno-unused-result -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include -I/usr/include/gdal -I/usr/include/libxml2 -I/usr/include -I/usr/include/laszip -I/local/skua/pywps-venv/lib/python3.4/site-packages/numpy/core/include -I/usr/include/python3.4m -c pdal/PyPipeline.cpp -o build/temp.linux-x86_64-3.4/pdal/PyPipeline.o -std=c++11
    In file included from /usr/include/python3.4m/pyatomic.h:8:0,
                     from /usr/include/python3.4m/Python.h:53,
                     from /local/skua/pywps-venv/lib/python3.4/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                     from /local/skua/pywps-venv/lib/python3.4/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                     from pdal/PyPipeline.hpp:52,
                     from pdal/PyPipeline.cpp:35:
    /usr/include/python3.4m/dynamic_annotations.h:472:3: error: template with C linkage
       template <class T>
       ^
    error: command 'gcc' failed with exit status 1
    
    ----------------------------------------
Command "/local/skua/pywps-venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-3qp8sb3d/pdal/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-hmvv6tab-record/install-record.txt --single-version-externally-managed --compile --install-headers /local/skua/pywps-venv/include/site/python3.4/pdal" failed with error code 1 in /tmp/pip-build-3qp8sb3d/pdal/


More information about the pdal mailing list