Skip to content

Instantly share code, notes, and snippets.

@alexshires
Last active August 29, 2015 14:12
Show Gist options
  • Save alexshires/2481d1368ffb90c2b105 to your computer and use it in GitHub Desktop.
Save alexshires/2481d1368ffb90c2b105 to your computer and use it in GitHub Desktop.
root-numpy install error
Requirement already satisfied (use --upgrade to upgrade): rootpy in /usr/local/lib/python2.7/dist-packages
Downloading/unpacking root-numpy
Running setup.py (path:/tmp/pip_build_root/root-numpy/setup.py) egg_info for package root-numpy
Installing collected packages: root-numpy
Running setup.py install for root-numpy
_
_ __ ___ ___ | |_ _ __ _ _ _ __ ___ _ __ _ _
| '__/ _ \ / _ \| __| | '_ \| | | | '_ ` _ \| '_ \| | | |
| | | (_) | (_) | |_ | | | | |_| | | | | | | |_) | |_| |
|_| \___/ \___/ \__|___|_| |_|\__,_|_| |_| |_| .__/ \__, | 3.3.1
|_____| |_| |___/
building 'root_numpy._librootnumpy' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/home/ashires/cernroot/include -Iroot_numpy/src -I/usr/include/python2.7 -c root_numpy/src/_librootnumpy.cpp -o build/temp.linux-x86_64-2.7/root_numpy/src/_librootnumpy.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1804:0,
from /usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:17,
from /usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h:4,
from root_numpy/src/_librootnumpy.cpp:352:
/usr/local/lib/python2.7/dist-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 " \
^
In file included from /usr/include/c++/4.9/atomic:38:0,
from /home/ashires/cernroot/include/Rtypes.h:37,
from /home/ashires/cernroot/include/TObject.h:31,
from root_numpy/src/_librootnumpy.cpp:363:
/usr/include/c++/4.9/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the \
^
In file included from /usr/include/c++/4.9/atomic:41:0,
from /home/ashires/cernroot/include/Rtypes.h:37,
from /home/ashires/cernroot/include/TObject.h:31,
from root_numpy/src/_librootnumpy.cpp:363:
/usr/include/c++/4.9/bits/atomic_base.h:74:3: error: ‘constexpr’ does not name a type
constexpr memory_order
^
/usr/include/c++/4.9/bits/atomic_base.h:74:3: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/usr/include/c++/4.9/bits/atomic_base.h:80:3: error: ‘constexpr’ does not name a type
constexpr memory_order
^
/usr/include/c++/4.9/bits/atomic_base.h:80:3: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/usr/include/c++/4.9/bits/atomic_base.h:87:3: error: ‘constexpr’ does not name a type
constexpr memory_order
^
/usr/include/c++/4.9/bits/atomic_base.h:87:3: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/usr/include/c++/4.9/bits/atomic_base.h:94:3: error: ‘constexpr’ does not name a type
constexpr memory_order
^
/usr/include/c++/4.9/bits/atomic_base.h:94:3: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/usr/include/c++/4.9/bits/atomic_base.h:102:41: error: expected initializer before ‘noexcept’
...
from /usr/lib/gcc/x86_64-linux-gnu/4.9/include-fixed/limits.h:34,
from /usr/include/python2.7/Python.h:19,
from root_numpy/src/_librootnumpy.cpp:16:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:217:1: note: ‘copysign’
__MATHCALLX (copysign,, (_Mdouble_ __x, _Mdouble_ __y), (__const__));
^
In file included from /home/ashires/cernroot/include/TTree.h:62:0,
from root_numpy/src/_librootnumpy.cpp:368:
/home/ashires/cernroot/include/TClass.h: At global scope:
/home/ashires/cernroot/include/TClass.h:275:31: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11
TClass(const TClass& tc) = delete;
^
/home/ashires/cernroot/include/TClass.h:276:39: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11
TClass& operator=(const TClass&) = delete;
^
In file included from /home/ashires/cernroot/include/TH1.h:65:0,
from root_numpy/src/_librootnumpy.cpp:377:
/home/ashires/cernroot/include/TFitResultPtr.h:38:29: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
TFitResultPtr(const std::shared_ptr<TFitResult> & p);
^
/home/ashires/cernroot/include/TFitResultPtr.h:38:39: error: expected ‘,’ or ‘...’ before ‘<’ token
TFitResultPtr(const std::shared_ptr<TFitResult> & p);
^
/home/ashires/cernroot/include/TFitResultPtr.h:38:4: error: ‘TFitResultPtr::TFitResultPtr(int)’ cannot be overloaded
TFitResultPtr(const std::shared_ptr<TFitResult> & p);
^
/home/ashires/cernroot/include/TFitResultPtr.h:36:4: error: with ‘TFitResultPtr::TFitResultPtr(int)’
TFitResultPtr(int status = -1): fStatus(status), fPointer(0) {};
^
/home/ashires/cernroot/include/TFitResultPtr.h:59:9: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
std::shared_ptr<TFitResult> fPointer; //! Smart Pointer to TFitResult class
^
/home/ashires/cernroot/include/TFitResultPtr.h: In constructor ‘TFitResultPtr::TFitResultPtr(int)’:
/home/ashires/cernroot/include/TFitResultPtr.h:36:53: error: class ‘TFitResultPtr’ does not have any field named ‘fPointer’
TFitResultPtr(int status = -1): fStatus(status), fPointer(0) {};
^
In file included from /usr/include/python2.7/Python.h:121:0,
from root_numpy/src/_librootnumpy.cpp:16:
/home/ndawe/workspace/root_numpy/root_numpy/src/tree.pyx: In function ‘PyObject* newarrayobject(PyTypeObject*, Py_ssize_t, arraydescr*)’:
/usr/include/python2.7/pyerrors.h:220:74: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
#define PyErr_BadInternalCall() _PyErr_BadInternalCall(__FILE__, __LINE__)
^
/home/ndawe/workspace/root_numpy/root_numpy/src/tree.pyx:1007:9: note: in expansion of macro ‘PyErr_BadInternalCall’
In file included from /usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/ufuncobject.h:317:0,
from root_numpy/src/_librootnumpy.cpp:353:
/usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/__ufunc_api.h: At global scope:
/usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/__ufunc_api.h:241:1: warning: ‘int _import_umath()’ defined but not used [-Wunused-function]
_import_umath(void)
^
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/root-numpy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-8udzWo-record/install-record.txt --single-version-externally-managed --compile:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment