STVIR / pysot

SenseTime Research platform for single object tracking, implementing algorithms like SiamRPN and SiamMask.
Apache License 2.0
4.43k stars 1.1k forks source link

error: command 'gcc' failed with exit status 1 #434

Open 2a2a opened 4 years ago

2a2a commented 4 years ago

When I run python setup.py build_ext --inplace get this error. running build_ext building 'toolkit.utils.region' extension gcc -pthread -B /root/anaconda3/envs/pysot/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes /usr/local/cuda-9.0/include -fPIC -I./toolkit/utils -Itoolkit/utils/src -I/root/anaconda3/envs/pysot/include/python3.7m -c toolkit/utils/region.c -o build/temp.linux-x86_64-3.7/toolkit/utils/region.o toolkit/utils/region.c: In function ‘__pyx_pw_7toolkit_5utils_6region_7Polygon_5__str__’: toolkit/utils/region.c:4335:70: warning: ‘__pyx_v_i’ may be used uninitialized in this function [-Wmaybe-uninitialized] __pyx_t_10 = PyFloat_FromDouble((__pyx_v_self->_c_region_polygon->x[__pyx_v_i])); if (u ^ toolkit/utils/region.c:4201:8: note: ‘__pyx_v_i’ was declared here long __pyx_v_i; ^ gcc: warning: /usr/local/cuda-9.0/include: linker input file unused because linking not done gcc -pthread -B /root/anaconda3/envs/pysot/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes /usr/local/cuda-9.0/include -fPIC -I./toolkit/utils -Itoolkit/utils/src -I/root/anaconda3/envs/pysot/include/python3.7m -c toolkit/utils/src/region.c -o build/temp.linux-x86_64-3.7/toolkit/utils/src/region.o gcc: warning: /usr/local/cuda-9.0/include: linker input file unused because linking not done gcc -pthread -shared -B /root/anaconda3/envs/pysot/compiler_compat -L/root/anaconda3/envs/pysot/lib -Wl,-rpath=/root/anaconda3/envs/pysot/lib -Wl,--no-as-needed -Wl,--sysroot=/ /usr/local/cuda-9.0/lib64 /usr/local/cuda-9.0/include build/temp.linux-x86_64-3.7/toolkit/utils/region.o build/temp.linux-x86_64-3.7/toolkit/utils/src/region.o -o /wangyufan/code/Siamese/pysot/toolkit/utils/region.cpython-37m-x86_64-linux-gnu.so /root/anaconda3/envs/pysot/compiler_compat/ld: /usr/local/cuda-9.0/lib64: file not recognized: Is a directory collect2: error: ld returned 1 exit status error: command 'gcc' failed with exit status 1 My gcc version is 5.4.0, cuda version is 9.0.176, cudnn version is 7.0.5 I have installed all packages needed Here is my package list: certifi 2020.6.20 cffi 1.14.2 colorama 0.4.3 cycler 0.10.0 Cython 0.29.21 kiwisolver 1.2.0 llvmlite 0.34.0 matplotlib 3.3.2 mkl-fft 1.1.0 mkl-random 1.1.1 mkl-service 2.3.0 numba 0.51.2 numpy 1.19.2 olefile 0.46 opencv-python 4.4.0.42 Pillow 7.2.0 pip 20.2.2 protobuf 3.13.0 pycparser 2.20 pyparsing 2.4.7 python-dateutil 2.8.1 PyYAML 5.3.1 setuptools 49.6.0.post20200814 six 1.15.0 tensorboardX 2.1 torch 0.4.1.post2 torchvision 0.2.1 tqdm 4.49.0 wheel 0.35.1 yacs 0.1.8 I don't kown where is the mistake? Thx.

ghost commented 1 year ago

have you resolved this issue? if yes kindly drop your solution