Failed build in Anaconda environment
lumaku opened this issue · 0 comments
lumaku commented
If the build fails within an Anaconda environment, the problem ifs often because the ld
version of the Anaconda environment differs from the system version. The solution is to delete the anaconda ld
.
The error looks like this:
Building wheel for ctc-segmentation (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /xxx/espnet/tools/venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ydww4_nh/ctc-segmentation/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ydww4_nh/ctc-segmentation/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-xle6m99n
cwd: /tmp/pip-install-ydww4_nh/ctc-segmentation/
Complete output (28 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/ctc_segmentation
copying ctc_segmentation/ctc_segmentation.py -> build/lib.linux-x86_64-3.7/ctc_segmentation
copying ctc_segmentation/__init__.py -> build/lib.linux-x86_64-3.7/ctc_segmentation
running build_ext
building 'ctc_segmentation.ctc_segmentation_dyn' extension
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/ctc_segmentation
gcc-7 -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/xxx/espnet/tools/venv/include/python3.7m -I/xxx/espnet/tools/venv/lib/python3.7/site-packages/numpy/core/include -c ctc_segmentation/ctc_segmentation_dyn.c -o build/temp.linux-x86_64-3.7/ctc_segmentation/ctc_segmentation_dyn.o
In file included from /xxx/espnet/tools/venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1822:0,
from /xxx/espnet/tools/venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /xxx/espnet/tools/venv/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from ctc_segmentation/ctc_segmentation_dyn.c:623:
/xxx/espnet/tools/venv/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: Warnung: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it with " \
^~~~~~~
gcc -pthread -shared -B /xxx/espnet/tools/venv/compiler_compat -L/xxx/espnet/tools/venv/lib -Wl,-rpath=/xxx/espnet/tools/venv/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/ctc_segmentation/ctc_segmentation_dyn.o -o build/lib.linux-x86_64-3.7/ctc_segmentation/ctc_segmentation_dyn.cpython-37m-x86_64-linux-gnu.so
/xxx/espnet/tools/venv/compiler_compat/ld: build/temp.linux-x86_64-3.7/ctc_segmentation/ctc_segmentation_dyn.o: unable to initialize decompress status for section .debug_info
/xxx/espnet/tools/venv/compiler_compat/ld: build/temp.linux-x86_64-3.7/ctc_segmentation/ctc_segmentation_dyn.o: unable to initialize decompress status for section .debug_info
/xxx/espnet/tools/venv/compiler_compat/ld: build/temp.linux-x86_64-3.7/ctc_segmentation/ctc_segmentation_dyn.o: unable to initialize decompress status for section .debug_info
/xxx/espnet/tools/venv/compiler_compat/ld: build/temp.linux-x86_64-3.7/ctc_segmentation/ctc_segmentation_dyn.o: unable to initialize decompress status for section .debug_info
build/temp.linux-x86_64-3.7/ctc_segmentation/ctc_segmentation_dyn.o: file not recognized: file format not recognized
collect2: Fehler: ld gab 1 als Ende-Status zurück
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for ctc-segmentation