-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation problem: error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 #1
Comments
I used |
Can you try again now? |
Collecting git+https://github.com/TobyPDE/chianti
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-md7aalnl-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-dxrlfevu-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-md7aalnl-build/ |
Getting a different error now. |
This error indicates that the setup script cannot find the opencv shared libraries. Make sure that they are available in der LD_LIBRARY_PATH. |
You might need to run it with sudo -E in order for your environment variables to be available in super user mode. |
Solved it! Thanks |
ok I got the same issue. So I did locate my OpenCV libraries and include files wth the command "pkg-config --libs --cflags opencv", which returns:
I did export the three paths under $LD_LIBRARY_PATH, but when doing "sudo -E pip install git+https://github.com/TobyPDE/chianti" I still have the same error as above, which ends by:
Can you tell me what I am doing wrong here? Tets |
SRK97, can you pls share what you did exactly that fixed it? thanks |
Collecting git+https://github.com/TobyPDE/chianti
Cloning https://github.com/TobyPDE/chianti to /tmp/pip-de3azgei-build
Installing collected packages: Chianti
Running setup.py install for Chianti ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-de3azgei-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-x9r7_3j4-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
building 'chianti' extension
creating build
creating build/temp.linux-x86_64-3.5
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/local/lib/python3.5/dist-packages/numpy/core/include -I/usr/include/python3.5m -c dataprovider.cpp -o build/temp.linux-x86_64-3.5/dataprovider.o -std=c++11 -fopenmp
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /usr/local/lib/python3.5/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1788:0,
from /usr/local/lib/python3.5/dist-packages/numpy/core/include/numpy/ndarrayobject.h:18,
from /usr/local/lib/python3.5/dist-packages/numpy/core/include/numpy/arrayobject.h:4,
from dataprovider.cpp:2:
/usr/local/lib/python3.5/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 dataprovider.cpp:4:0:
chianti/provider.h: In member function ‘void Chianti::TensorDataProvider::computeNextBatch()’:
chianti/provider.h:266:131: error: ‘isnan’ was not declared in this scope
if (isnan(imgs[i0 * imgsStrides[0] + _i1 * imgsStrides[1] + i2 * imgsStrides[2] + i3 * imgsStrides[3]])) {
^
chianti/provider.h:266:131: note: suggested alternative:
In file included from /usr/include/c++/5/random:38:0,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from /usr/local/include/opencv2/core/core.hpp:56,
from /usr/local/include/opencv2/opencv.hpp:47,
from chianti/common.h:3,
from chianti/provider.h:3,
from dataprovider.cpp:4:
/usr/include/c++/5/cmath:641:5: note: ‘std::isnan’
isnan(_Tp __x)
^
dataprovider.cpp: At global scope:
dataprovider.cpp:30:1: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
};
^
dataprovider.cpp:30:1: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
dataprovider.cpp:30:1: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
dataprovider.cpp:30:1: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
dataprovider.cpp: In function ‘int PyDataProvider_init(PyDataProvider*, PyObject*, PyObject*)’:
dataprovider.cpp:280:75: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
static char keywordList[] = {"iterator", "batchsize", "augmentors", 0};
^
dataprovider.cpp:280:75: warning: ISO C++ forbids converting a string constant to ‘char’ [-Wwrite-strings]
dataprovider.cpp:280:75: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
dataprovider.cpp: In function ‘PyObject* sequentialIterator(PyObject*, PyObject*, PyObject*)’:
dataprovider.cpp:447:45: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
static char keywordList[] = {"files", 0};
^
dataprovider.cpp: In function ‘PyObject randomIterator(PyObject*, PyObject*, PyObject*)’:
dataprovider.cpp:485:45: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
static char keywordList[] = {"files", 0};
^
dataprovider.cpp: In function ‘PyObject sampleIterator(PyObject*, PyObject*, PyObject*)’:
dataprovider.cpp:523:56: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
static char keywordList[] = {"files", "weights", 0};
^
dataprovider.cpp:523:56: warning: ISO C++ forbids converting a string constant to ‘char’ [-Wwrite-strings]
dataprovider.cpp: In function ‘PyObject* subsampleAugmentor(PyObject*, PyObject*, PyObject*)’:
dataprovider.cpp:568:46: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
static char keywordList[] = {"factor", 0};
^
dataprovider.cpp: In function ‘PyObject gammaAugmentor(PyObject*, PyObject*, PyObject*)’:
dataprovider.cpp:590:45: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
static char keywordList[] = {"gamma", 0};
^
dataprovider.cpp: In function ‘PyObject translationAugmentor(PyObject*, PyObject*, PyObject*)’:
dataprovider.cpp:612:46: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
static char keywordList[] = {"offset", 0};
^
dataprovider.cpp: In function ‘PyObject zoomingAugmentor(PyObject*, PyObject*, PyObject*)’:
dataprovider.cpp:634:45: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
static char *keywordList[] = {"range", 0};
^
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-de3azgei-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-x9r7_3j4-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-de3azgei-build/
The text was updated successfully, but these errors were encountered: