Open Ai-is-light opened 6 years ago
Are you having the right path to CUDA ?
First error message says fatal error: cuda.h: No such file or directory
I am also getting a similar error.
This is the first part of the error I run using the command : /Detectron.pytorch-master/lib$ sh make.sh ERROR mesaage :
running build_ext building 'utils.cython_bbox' extension creating build creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/utils gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/vijaydubey/anaconda3/envs/vijay-deep-learning/lib/python3.6/site-packages/numpy/core/include -I/home/vijaydubey/anaconda3/envs/vijay-deep-learning/include/python3.6m -c utils/cython_bbox.c -o build/temp.linux-x86_64-3.6/utils/cython_bbox.o -Wno-cpp creating build/lib.linux-x86_64-3.6 creating build/lib.linux-x86_64-3.6/utils gcc -pthread -shared -L/home/vijaydubey/anaconda3/envs/vijay-deep-learning/lib -Wl,-rpath=/home/vijaydubey/anaconda3/envs/vijay-deep-learning/lib,--no-as-needed build/temp.linux-x86_64-3.6/utils/cython_bbox.o -L/home/vijaydubey/anaconda3/envs/vijay-deep-learning/lib -lpython3.6m -o build/lib.linux-x86_64-3.6/utils/cython_bbox.cpython-36m-x86_64-linux-gnu.so /usr/bin/ld: cannot find -lgcc_s collect2: error: ld returned 1 exit status error: command 'gcc' failed with exit status 1 Please help
I am trying to run the sh make.sh , but I am getting the same error as folks posted above
`Traceback (most recent call last): File "setup.py", line 10, in
from Cython.Build import cythonize ModuleNotFoundError: No module named 'Cython' Compiling nms kernels by nvcc... make.sh: 20: make.sh: nvcc: not found /content/mask-rcnn.pytorch/lib/model/nms ['/content/mask-rcnn.pytorch/lib/model/nms/src/nms_cuda_kernel.cu.o'] generating /tmp/tmpof1ne050/_nms.c setting the current directory to '/tmp/tmpof1ne050' running build_ext building '_nms' extension x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/local/lib/python3.6/dist-packages/torch/utils/ffi/../../lib/include -I/usr/local/lib/python3.6/dist-packages/torch/utils/ffi/../../lib/include/TH -I/usr/include/python3.6m -c _nms.c -o ./_nms.o x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -specs=/usr/share/dpkg/no-pie-link.specs -Wl,-z,relro -Wl,-Bsymbolic-functions -specs=/usr/share/dpkg/no-pie-link.specs -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 ./_nms.o /content/mask-rcnn.pytorch/lib/model/nms/src/nms_cuda_kernel.cu.o -o ./_nms.so x86_64-linux-gnu-gcc: error: /content/mask-rcnn.pytorch/lib/model/nms/src/nms_cuda_kernel.cu.o: No such file or directory Traceback (most recent call last): File "/usr/lib/python3.6/distutils/unixccompiler.py", line 207, in link self.spawn(linker + ld_args) File "/usr/lib/python3.6/distutils/ccompiler.py", line 909, in spawn spawn(cmd, dry_run=self.dry_run) File "/usr/lib/python3.6/distutils/spawn.py", line 36, in spawn _spawn_posix(cmd, search_path, dry_run=dry_run) File "/usr/lib/python3.6/distutils/spawn.py", line 159, in _spawn_posix % (cmd, exit_status)) distutils.errors.DistutilsExecError: command 'x86_64-linux-gnu-gcc' failed with exit status 1 During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/cffi/ffiplatform.py", line 51, in _build dist.run_command('build_ext') File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/usr/lib/python3.6/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/usr/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/usr/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/usr/lib/python3.6/distutils/command/build_ext.py", line 558, in build_extension target_lang=language) File "/usr/lib/python3.6/distutils/ccompiler.py", line 717, in link_shared_object extra_preargs, extra_postargs, build_temp, target_lang) File "/usr/lib/python3.6/distutils/unixccompiler.py", line 209, in link raise LinkError(msg) distutils.errors.LinkError: command 'x86_64-linux-gnu-gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "build.py", line 37, in
ffi.build() File "/usr/local/lib/python3.6/dist-packages/torch/utils/ffi/init.py", line 167, in build _build_extension(ffi, cffi_wrapper_name, target_dir, verbose) File "/usr/local/lib/python3.6/dist-packages/torch/utils/ffi/init.py", line 103, in _build_extension ffi.compile(tmpdir=tmpdir, verbose=verbose, target=libname) File "/usr/local/lib/python3.6/dist-packages/cffi/api.py", line 697, in compile compiler_verbose=verbose, debug=debug, **kwds) File "/usr/local/lib/python3.6/dist-packages/cffi/recompiler.py", line 1520, in recompile compiler_verbose, debug) File "/usr/local/lib/python3.6/dist-packages/cffi/ffiplatform.py", line 22, in compile outputfilename = _build(tmpdir, ext, compiler_verbose, debug) File "/usr/local/lib/python3.6/dist-packages/cffi/ffiplatform.py", line 58, in _build raise VerificationError('%s: %s' % (e.class.name, e)) cffi.error.VerificationError: LinkError: command 'x86_64-linux-gnu-gcc' failed with exit status 1 Compiling roi pooling kernels by nvcc... make.sh: 30: make.sh: nvcc: not found /content/mask-rcnn.pytorch/lib/model/roi_pooling generating /tmp/tmpfqnztwp9/_roi_pooling.c setting the current directory to '/tmp/tmpfqnztwp9' running build_ext building '_roi_pooling' extension creating content creating content/mask-rcnn.pytorch creating content/mask-rcnn.pytorch/lib creating content/mask-rcnn.pytorch/lib/model creating content/mask-rcnn.pytorch/lib/model/roi_pooling creating content/mask-rcnn.pytorch/lib/model/roi_pooling/src x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/local/lib/python3.6/dist-packages/torch/utils/ffi/../../lib/include -I/usr/local/lib/python3.6/dist-packages/torch/utils/ffi/../../lib/include/TH -I/usr/include/python3.6m -c _roi_pooling.c -o ./_roi_pooling.o x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/local/lib/python3.6/dist-packages/torch/utils/ffi/../../lib/include -I/usr/local/lib/python3.6/dist-packages/torch/utils/ffi/../../lib/include/TH -I/usr/include/python3.6m -c /content/mask-rcnn.pytorch/lib/model/roi_pooling/src/roi_pooling.c -o ./content/mask-rcnn.pytorch/lib/model/roi_pooling/src/roi_pooling.o x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -specs=/usr/share/dpkg/no-pie-link.specs -Wl,-z,relro -Wl,-Bsymbolic-functions -specs=/usr/share/dpkg/no-pie-link.specs -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 ./_roi_pooling.o ./content/mask-rcnn.pytorch/lib/model/roi_pooling/src/roi_pooling.o /content/mask-rcnn.pytorch/lib/model/roi_pooling/src/roi_pooling.cu.o -o ./_roi_pooling.so x86_64-linux-gnu-gcc: error: /content/mask-rcnn.pytorch/lib/model/roi_pooling/src/roi_pooling.cu.o: No such file or directory Traceback (most recent call last): File "/usr/lib/python3.6/distutils/unixccompiler.py", line 207, in link self.spawn(linker + ld_args) File "/usr/lib/python3.6/distutils/ccompiler.py", line 909, in spawn spawn(cmd, dry_run=self.dry_run) File "/usr/lib/python3.6/distutils/spawn.py", line 36, in spawn _spawn_posix(cmd, search_path, dry_run=dry_run) File "/usr/lib/python3.6/distutils/spawn.py", line 159, in _spawn_posix % (cmd, exit_status)) distutils.errors.DistutilsExecError: command 'x86_64-linux-gnu-gcc' failed with exit status 1 During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/cffi/ffiplatform.py", line 51, in _build dist.run_command('build_ext') File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/usr/lib/python3.6/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/usr/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/usr/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/usr/lib/python3.6/distutils/command/build_ext.py", line 558, in build_extension target_lang=language) File "/usr/lib/python3.6/distutils/ccompiler.py", line 717, in link_shared_object extra_preargs, extra_postargs, build_temp, target_lang) File "/usr/lib/python3.6/distutils/unixccompiler.py", line 209, in link raise LinkError(msg) distutils.errors.LinkError: command 'x86_64-linux-gnu-gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "build.py", line 35, in
ffi.build() File "/usr/local/lib/python3.6/dist-packages/torch/utils/ffi/init.py", line 167, in build _build_extension(ffi, cffi_wrapper_name, target_dir, verbose) File "/usr/local/lib/python3.6/dist-packages/torch/utils/ffi/init.py", line 103, in _build_extension ffi.compile(tmpdir=tmpdir, verbose=verbose, target=libname) File "/usr/local/lib/python3.6/dist-packages/cffi/api.py", line 697, in compile compiler_verbose=verbose, debug=debug, **kwds) File "/usr/local/lib/python3.6/dist-packages/cffi/recompiler.py", line 1520, in recompile compiler_verbose, debug) File "/usr/local/lib/python3.6/dist-packages/cffi/ffiplatform.py", line 22, in compile outputfilename = _build(tmpdir, ext, compiler_verbose, debug) File "/usr/local/lib/python3.6/dist-packages/cffi/ffiplatform.py", line 58, in _build raise VerificationError('%s: %s' % (e.class.name, e)) cffi.error.VerificationError: LinkError: command 'x86_64-linux-gnu-gcc' failed with exit status 1 Compiling roi crop kernels by nvcc... make.sh: 48: make.sh: nvcc: not found /content/mask-rcnn.pytorch/lib/model/roi_crop generating /tmp/tmp16jlo33v/_roi_crop.c setting the current directory to '/tmp/tmp16jlo33v' running build_ext building '_roi_crop' extension creating content creating content/mask-rcnn.pytorch creating content/mask-rcnn.pytorch/lib creating content/mask-rcnn.pytorch/lib/model creating content/mask-rcnn.pytorch/lib/model/roi_crop creating content/mask-rcnn.pytorch/lib/model/roi_crop/src x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/local/lib/python3.6/dist-packages/torch/utils/ffi/../../lib/include -I/usr/local/lib/python3.6/dist-packages/torch/utils/ffi/../../lib/include/TH -I/usr/include/python3.6m -c _roi_crop.c -o ./_roi_crop.o x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/local/lib/python3.6/dist-packages/torch/utils/ffi/../../lib/include -I/usr/local/lib/python3.6/dist-packages/torch/utils/ffi/../../lib/include/TH -I/usr/include/python3.6m -c /content/mask-rcnn.pytorch/lib/model/roi_crop/src/roi_crop.c -o ./content/mask-rcnn.pytorch/lib/model/roi_crop/src/roi_crop.o /content/mask-rcnn.pytorch/lib/model/roi_crop/src/roi_crop.c: In function ‘BilinearSamplerBHWD_updateGradInput’: /content/mask-rcnn.pytorch/lib/model/roi_crop/src/roi_crop.c:190:14: warning: unused variable ‘inBottomRight’ [-Wunused-variable] real inBottomRight=0; ^ ~~~~ /content/mask-rcnn.pytorch/lib/model/roi_crop/src/roi_crop.c:189:14: warning: unused variable ‘inBottomLeft’ [-Wunused-variable] real inBottomLeft=0; ^~~~ /content/mask-rcnn.pytorch/lib/model/roi_crop/src/roi_crop.c:188:14: warning: unused variable ‘inTopRight’ [-Wunused-variable] real inTopRight=0; ^~~~~~ /content/mask-rcnn.pytorch/lib/model/roi_crop/src/roi_crop.c:187:14: warning: unused variable ‘inTopLeft’ [-Wunused-variable] real inTopLeft=0; ^~~~~ /content/mask-rcnn.pytorch/lib/model/roi_crop/src/roi_crop.c:186:14: warning: unused variable ‘v’ [-Wunused-variable] real v=0; ^ /content/mask-rcnn.pytorch/lib/model/roi_crop/src/roi_crop.c: In function ‘BilinearSamplerBCHW_updateGradInput’: /content/mask-rcnn.pytorch/lib/model/roi_crop/src/roi_crop.c:441:14: warning: unused variable ‘inBottomRight’ [-Wunused-variable] real inBottomRight=0; ^~~~~ /content/mask-rcnn.pytorch/lib/model/roi_crop/src/roi_crop.c:440:14: warning: unused variable ‘inBottomLeft’ [-Wunused-variable] real inBottomLeft=0; ^~~~ /content/mask-rcnn.pytorch/lib/model/roi_crop/src/roi_crop.c:439:14: warning: unused variable ‘inTopRight’ [-Wunused-variable] real inTopRight=0; ^~~~~~ /content/mask-rcnn.pytorch/lib/model/roi_crop/src/roi_crop.c:438:14: warning: unused variable ‘inTopLeft’ [-Wunused-variable] real inTopLeft=0; ^~~~~ /content/mask-rcnn.pytorch/lib/model/roi_crop/src/roi_crop.c:437:14: warning: unused variable ‘v’ [-Wunused-variable] real v=0; ^ x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -specs=/usr/share/dpkg/no-pie-link.specs -Wl,-z,relro -Wl,-Bsymbolic-functions -specs=/usr/share/dpkg/no-pie-link.specs -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 ./_roi_crop.o ./content/mask-rcnn.pytorch/lib/model/roi_crop/src/roi_crop.o /content/mask-rcnn.pytorch/lib/model/roi_crop/src/roi_crop_cuda_kernel.cu.o -o ./_roi_crop.so x86_64-linux-gnu-gcc: error: /content/mask-rcnn.pytorch/lib/model/roi_crop/src/roi_crop_cuda_kernel.cu.o: No such file or directory Traceback (most recent call last): File "/usr/lib/python3.6/distutils/unixccompiler.py", line 207, in link self.spawn(linker + ld_args) File "/usr/lib/python3.6/distutils/ccompiler.py", line 909, in spawn spawn(cmd, dry_run=self.dry_run) File "/usr/lib/python3.6/distutils/spawn.py", line 36, in spawn _spawn_posix(cmd, search_path, dry_run=dry_run) File "/usr/lib/python3.6/distutils/spawn.py", line 159, in _spawn_posix % (cmd, exit_status)) distutils.errors.DistutilsExecError: command 'x86_64-linux-gnu-gcc' failed with exit status 1During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/cffi/ffiplatform.py", line 51, in _build dist.run_command('build_ext') File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/usr/lib/python3.6/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/usr/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/usr/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/usr/lib/python3.6/distutils/command/build_ext.py", line 558, in build_extension target_lang=language) File "/usr/lib/python3.6/distutils/ccompiler.py", line 717, in link_shared_object extra_preargs, extra_postargs, build_temp, target_lang) File "/usr/lib/python3.6/distutils/unixccompiler.py", line 209, in link raise LinkError(msg) distutils.errors.LinkError: command 'x86_64-linux-gnu-gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "build.py", line 36, in
ffi.build() File "/usr/local/lib/python3.6/dist-packages/torch/utils/ffi/init.py", line 167, in build _build_extension(ffi, cffi_wrapper_name, target_dir, verbose) File "/usr/local/lib/python3.6/dist-packages/torch/utils/ffi/init.py", line 103, in _build_extension ffi.compile(tmpdir=tmpdir, verbose=verbose, target=libname) File "/usr/local/lib/python3.6/dist-packages/cffi/api.py", line 697, in compile compiler_verbose=verbose, debug=debug, **kwds) File "/usr/local/lib/python3.6/dist-packages/cffi/recompiler.py", line 1520, in recompile compiler_verbose, debug) File "/usr/local/lib/python3.6/dist-packages/cffi/ffiplatform.py", line 22, in compile outputfilename = _build(tmpdir, ext, compiler_verbose, debug) File "/usr/local/lib/python3.6/dist-packages/cffi/ffiplatform.py", line 58, in _build raise VerificationError('%s: %s' % (e.class.name, e)) cffi.error.VerificationError: LinkError: command 'x86_64-linux-gnu-gcc' failed with exit status 1 Compiling roi align kernels by nvcc... make.sh: 57: make.sh: nvcc: not found /content/mask-rcnn.pytorch/lib/modeling/roi_xfrom/roi_align generating /tmp/tmpnomwwssa/_roi_align.c setting the current directory to '/tmp/tmpnomwwssa' running build_ext building '_roi_align' extension x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/local/lib/python3.6/dist-packages/torch/utils/ffi/../../lib/include -I/usr/local/lib/python3.6/dist-packages/torch/utils/ffi/../../lib/include/TH -I/usr/include/python3.6m -c _roi_align.c -o ./_roi_align.o x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -specs=/usr/share/dpkg/no-pie-link.specs -Wl,-z,relro -Wl,-Bsymbolic-functions -specs=/usr/share/dpkg/no-pie-link.specs -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 ./_roi_align.o /content/mask-rcnn.pytorch/lib/modeling/roi_xfrom/roi_align/src/roi_align_kernel.cu.o -o ./_roi_align.so x86_64-linux-gnu-gcc: error: /content/mask-rcnn.pytorch/lib/modeling/roi_xfrom/roi_align/src/roi_align_kernel.cu.o: No such file or directory Traceback (most recent call last): File "/usr/lib/python3.6/distutils/unixccompiler.py", line 207, in link self.spawn(linker + ld_args) File "/usr/lib/python3.6/distutils/ccompiler.py", line 909, in spawn spawn(cmd, dry_run=self.dry_run) File "/usr/lib/python3.6/distutils/spawn.py", line 36, in spawn _spawn_posix(cmd, search_path, dry_run=dry_run) File "/usr/lib/python3.6/distutils/spawn.py", line 159, in _spawn_posix % (cmd, exit_status)) distutils.errors.DistutilsExecError: command 'x86_64-linux-gnu-gcc' failed with exit status 1 During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/cffi/ffiplatform.py", line 51, in _build dist.run_command('build_ext') File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/usr/lib/python3.6/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/usr/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/usr/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/usr/lib/python3.6/distutils/command/build_ext.py", line 558, in build_extension target_lang=language) File "/usr/lib/python3.6/distutils/ccompiler.py", line 717, in link_shared_object extra_preargs, extra_postargs, build_temp, target_lang) File "/usr/lib/python3.6/distutils/unixccompiler.py", line 209, in link raise LinkError(msg) distutils.errors.LinkError: command 'x86_64-linux-gnu-gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "build.py", line 36, in
ffi.build() File "/usr/local/lib/python3.6/dist-packages/torch/utils/ffi/init.py", line 167, in build _build_extension(ffi, cffi_wrapper_name, target_dir, verbose) File "/usr/local/lib/python3.6/dist-packages/torch/utils/ffi/init.py", line 103, in _build_extension ffi.compile(tmpdir=tmpdir, verbose=verbose, target=libname) File "/usr/local/lib/python3.6/dist-packages/cffi/api.py", line 697, in compile compiler_verbose=verbose, debug=debug, **kwds) File "/usr/local/lib/python3.6/dist-packages/cffi/recompiler.py", line 1520, in recompile compiler_verbose, debug) File "/usr/local/lib/python3.6/dist-packages/cffi/ffiplatform.py", line 22, in compile outputfilename = _build(tmpdir, ext, compiler_verbose, debug) File "/usr/local/lib/python3.6/dist-packages/cffi/ffiplatform.py", line 58, in _build raise VerificationError('%s: %s' % (e.class.name, e)) cffi.error.VerificationError: LinkError: command 'x86_64-linux-gnu-gcc' failed with exit status 1`
@vsd550
Your error message says: /usr/bin/ld: cannot find -lgcc_s
There are something wrong with your system library. Maybe some links are broken.
Recommend to google for solution.
@Omar-Aboelsoud
Your errors are different.
ModuleNotFoundError: No module named 'Cython'
--> You have to install cython.
make.sh: 20: make.sh: nvcc: not found
--> Are you having the right PATH to cuda ?
@roytseng-tw I am using Google Colab , so I think yes I set it ; however , I overcame this error by installing Cython then it says that he can nont #include
make.sh: 20: make.sh: nvcc: not found
then the same error show up in the end
ffi.error.VerificationError: LinkError: command 'x86_64-linux-gnu-gcc' failed with exit status 1`
@Omar-Aboelsoud I am not familiar with google colab, but what's your path to cuda ?
For me, I don't have root access. I can't make such symlinks to the system. So I just symlinked to the problem dir and it works now. Not recommending this, just for those in a similar situation to me with whom no environmental variable setting has helped.
ln -s ~/cuda/include/* ~/anaconda3/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/THC/
Hi, I met the similar problom. Do you konw how to solve it? It's nice of you to help me!
`utils/cython_nms.c: In function ‘pyx_pf_5utils_10cython_nms_2soft_nms’: utils/cython_nms.c:3242:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pyx_t_11 = ((pyx_v_pos < __pyx_v_N) != 0); ^ utils/cython_nms.c:3753:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pyx_t_11 = ((pyx_v_pos < pyx_v_N) != 0); ^ /home/manning/mrcn/lib/model/nms/src/nms_cuda.c: In function ‘nms_cuda’: /home/manning/mrcn/lib/model/nms/src/nms_cuda.c:14:22: error: dereferencing pointer to incomplete type ‘THTensor {aka struct THTensor}’ boxes_host->size[0], ^ Traceback (most recent call last): File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/unixccompiler.py", line 118, in _compile extra_postargs) File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/ccompiler.py", line 909, in spawn spawn(cmd, dry_run=self.dry_run) File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/spawn.py", line 36, in spawn _spawn_posix(cmd, search_path, dry_run=dry_run) File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/spawn.py", line 159, in _spawn_posix % (cmd, exit_status)) distutils.errors.DistutilsExecError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/site-packages/cffi/ffiplatform.py", line 51, in _build dist.run_command('build_ext') File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension depends=ext.depends) File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/ccompiler.py", line 574, in compile self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/unixccompiler.py", line 120, in _compile raise CompileError(msg) distutils.errors.CompileError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "build.py", line 37, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/site-packages/cffi/ffiplatform.py", line 51, in _build dist.run_command('build_ext') File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension depends=ext.depends) File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/ccompiler.py", line 574, in compile self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/unixccompiler.py", line 120, in _compile raise CompileError(msg) distutils.errors.CompileError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "build.py", line 36, in
Hi @huinsysu, do you solve the issue, I met the same error as yours. And I reinstall the pytorch0.4.0, then solve the issue.
I met a core dumped error like this:
running build_ext
building 'utils.cython_bbox' extension
creating build
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/utils
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/home/zhangzy/.local/lib/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -c utils/cython_bbox.c -o build/temp.linux-x86_64-2.7/utils/cython_bbox.o -Wno-cpp
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/utils
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/utils/cython_bbox.o -o build/lib.linux-x86_64-2.7/utils/cython_bbox.so
building 'utils.cython_nms' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/home/zhangzy/.local/lib/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -c utils/cython_nms.c -o build/temp.linux-x86_64-2.7/utils/cython_nms.o -Wno-cpp
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/utils/cython_nms.o -o build/lib.linux-x86_64-2.7/utils/cython_nms.so
copying build/lib.linux-x86_64-2.7/utils/cython_bbox.so -> utils
copying build/lib.linux-x86_64-2.7/utils/cython_nms.so -> utils
Compiling nms kernels by nvcc...
Segmentation fault (core dumped)
Compiling roi pooling kernels by nvcc...
Segmentation fault (core dumped)
Compiling roi crop kernels by nvcc...
Segmentation fault (core dumped)
Compiling roi align kernels by nvcc...
Segmentation fault (core dumped)
Hi all, if you encounter this error on compling fatal error: cuda.h: No such file or directory
Try this:
CPATH=/path/to/you/cuda/include ./make.sh
Hi all, Hope this is not too late. Actually all the solutions mentioned above does not work for me. I solved this by modifying the file '~/lib/make.sh'. In the file, please comment the CUDA_ARCH line and changed the '$CUDA_ARCH' in each compilation into '-arch=arch'
Taking the nms package as an example, the previous command (line 20)is:
nvcc -c -o nms_cuda_kernel.cu.o nms_cuda_kernel.cu \
-D GOOGLE_CUDA=1 -x cu -Xcompiler -fPIC $CUDA_ARCH
Now, we should change it as:
nvcc -c -o nms_cuda_kernel.cu.o nms_cuda_kernel.cu \
-D GOOGLE_CUDA=1 -x cu -Xcompiler -fPIC -arch=sm_52
Then conduct similar operations for other packages.
It should be noted that 'arch' is determined by your GPU type. '-arch=sm_52' works for TitanX. You could look at the Compilation Section in this Page or the documents of the NVCC for information of your GPU.
I am still a bit confused about the problem. I guess it results from the CUDA version.
I met the same issue。have u solved this issue running build_ext building 'utils.cython_bbox' extension creating build creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/utils x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/yhr/download/PANet-master/venv/lib/python3.6/site-packages/numpy/core/include -I/home/yhr/download/PANet-master/venv/include -I/usr/include/python3.6m -c utils/cython_bbox.c -o build/temp.linux-x86_64-3.6/utils/cython_bbox.o -Wno-cpp creating build/lib.linux-x86_64-3.6 creating build/lib.linux-x86_64-3.6/utils x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.6/utils/cython_bbox.o -o build/lib.linux-x86_64-3.6/utils/cython_bbox.cpython-36m-x86_64-linux-gnu.so building 'utils.cython_nms' extension x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/yhr/download/PANet-master/venv/lib/python3.6/site-packages/numpy/core/include -I/home/yhr/download/PANet-master/venv/include -I/usr/include/python3.6m -c utils/cython_nms.c -o build/temp.linux-x86_64-3.6/utils/cython_nms.o -Wno-cpp x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.6/utils/cython_nms.o -o build/lib.linux-x86_64-3.6/utils/cython_nms.cpython-36m-x86_64-linux-gnu.so copying build/lib.linux-x86_64-3.6/utils/cython_bbox.cpython-36m-x86_64-linux-gnu.so -> utils copying build/lib.linux-x86_64-3.6/utils/cython_nms.cpython-36m-x86_64-linux-gnu.so -> utils Compiling nms kernels by nvcc... Including CUDA code. /home/yhr/download/PANet-master/lib/model/nms ['/home/yhr/download/PANet-master/lib/model/nms/src/nms_cuda_kernel.cu.o'] generating /tmp/tmpy5kjfe4w/_nms.c setting the current directory to '/tmp/tmpy5kjfe4w' running build_ext building '_nms' extension creating home creating home/yhr creating home/yhr/download creating home/yhr/download/PANet-master creating home/yhr/download/PANet-master/lib creating home/yhr/download/PANet-master/lib/model creating home/yhr/download/PANet-master/lib/model/nms creating home/yhr/download/PANet-master/lib/model/nms/src x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DWITH_CUDA -I/home/yhr/download/PANet-master/venv/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include -I/home/yhr/download/PANet-master/venv/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/TH -I/home/yhr/download/PANet-master/venv/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/THC -I/home/yhr/download/PANet-master/venv/include -I/usr/include/python3.6m -c _nms.c -o ./_nms.o In file included from /home/yhr/download/PANet-master/venv/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/THC/THC.h:4:0, from _nms.c:493: /home/yhr/download/PANet-master/venv/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/THC/THCGeneral.h:12:10: fatal error: cuda.h: 没有那个文件或目录
^~~~~~~~
compilation terminated. Traceback (most recent call last): File "/usr/lib/python3.6/distutils/unixccompiler.py", line 118, in _compile extra_postargs) File "/usr/lib/python3.6/distutils/ccompiler.py", line 909, in spawn spawn(cmd, dry_run=self.dry_run) File "/usr/lib/python3.6/distutils/spawn.py", line 36, in spawn _spawn_posix(cmd, search_path, dry_run=dry_run) File "/usr/lib/python3.6/distutils/spawn.py", line 159, in _spawn_posix % (cmd, exit_status)) distutils.errors.DistutilsExecError: command 'x86_64-linux-gnu-gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/yhr/download/PANet-master/venv/lib/python3.6/site-packages/cffi/ffiplatform.py", line 51, in _build dist.run_command('build_ext') File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/usr/lib/python3.6/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/usr/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/usr/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/usr/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension depends=ext.depends) File "/usr/lib/python3.6/distutils/ccompiler.py", line 574, in compile self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/usr/lib/python3.6/distutils/unixccompiler.py", line 120, in _compile raise CompileError(msg) distutils.errors.CompileError: command 'x86_64-linux-gnu-gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "build.py", line 37, in
^~~~~~~~
compilation terminated. Traceback (most recent call last): File "/usr/lib/python3.6/distutils/unixccompiler.py", line 118, in _compile extra_postargs) File "/usr/lib/python3.6/distutils/ccompiler.py", line 909, in spawn spawn(cmd, dry_run=self.dry_run) File "/usr/lib/python3.6/distutils/spawn.py", line 36, in spawn _spawn_posix(cmd, search_path, dry_run=dry_run) File "/usr/lib/python3.6/distutils/spawn.py", line 159, in _spawn_posix % (cmd, exit_status)) distutils.errors.DistutilsExecError: command 'x86_64-linux-gnu-gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/yhr/download/PANet-master/venv/lib/python3.6/site-packages/cffi/ffiplatform.py", line 51, in _build dist.run_command('build_ext') File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/usr/lib/python3.6/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/usr/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/usr/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/usr/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension depends=ext.depends) File "/usr/lib/python3.6/distutils/ccompiler.py", line 574, in compile self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/usr/lib/python3.6/distutils/unixccompiler.py", line 120, in _compile raise CompileError(msg) distutils.errors.CompileError: command 'x86_64-linux-gnu-gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "build.py", line 35, in
^~~~~~~~
compilation terminated. Traceback (most recent call last): File "/usr/lib/python3.6/distutils/unixccompiler.py", line 118, in _compile extra_postargs) File "/usr/lib/python3.6/distutils/ccompiler.py", line 909, in spawn spawn(cmd, dry_run=self.dry_run) File "/usr/lib/python3.6/distutils/spawn.py", line 36, in spawn _spawn_posix(cmd, search_path, dry_run=dry_run) File "/usr/lib/python3.6/distutils/spawn.py", line 159, in _spawn_posix % (cmd, exit_status)) distutils.errors.DistutilsExecError: command 'x86_64-linux-gnu-gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/yhr/download/PANet-master/venv/lib/python3.6/site-packages/cffi/ffiplatform.py", line 51, in _build dist.run_command('build_ext') File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/usr/lib/python3.6/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/usr/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/usr/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/usr/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension depends=ext.depends) File "/usr/lib/python3.6/distutils/ccompiler.py", line 574, in compile self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/usr/lib/python3.6/distutils/unixccompiler.py", line 120, in _compile raise CompileError(msg) distutils.errors.CompileError: command 'x86_64-linux-gnu-gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "build.py", line 36, in
^~~~~~~~
compilation terminated. Traceback (most recent call last): File "/usr/lib/python3.6/distutils/unixccompiler.py", line 118, in _compile extra_postargs) File "/usr/lib/python3.6/distutils/ccompiler.py", line 909, in spawn spawn(cmd, dry_run=self.dry_run) File "/usr/lib/python3.6/distutils/spawn.py", line 36, in spawn _spawn_posix(cmd, search_path, dry_run=dry_run) File "/usr/lib/python3.6/distutils/spawn.py", line 159, in _spawn_posix % (cmd, exit_status)) distutils.errors.DistutilsExecError: command 'x86_64-linux-gnu-gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/yhr/download/PANet-master/venv/lib/python3.6/site-packages/cffi/ffiplatform.py", line 51, in _build dist.run_command('build_ext') File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/usr/lib/python3.6/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/usr/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/usr/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/usr/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension depends=ext.depends) File "/usr/lib/python3.6/distutils/ccompiler.py", line 574, in compile self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/usr/lib/python3.6/distutils/unixccompiler.py", line 120, in _compile raise CompileError(msg) distutils.errors.CompileError: command 'x86_64-linux-gnu-gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "build.py", line 36, in
@roytseng-tw Hi, I am getting a similar error. I have tried setting CPATH to be the path to my CUDA include directory.
running build_ext building 'utils.cython_bbox' extension creating build creating build/temp.linux-x86_64-3.5 creating build/temp.linux-x86_64-3.5/utils gcc -pthread -B /home/tkmartin/miniconda3/envs/py35/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/tkmartin/miniconda3/envs/py35/lib/python3.5/site-packages/numpy/core/include -I/home/tkmartin/miniconda3/envs/py35/include/python3.5m -c utils/cython_bbox.c -o build/temp.linux-x86_64-3.5/utils/cython_bbox.o -Wno-cpp creating build/lib.linux-x86_64-3.5 creating build/lib.linux-x86_64-3.5/utils gcc -pthread -shared -L/home/tkmartin/miniconda3/envs/py35/lib -B /home/tkmartin/miniconda3/envs/py35/compiler_compat -Wl,-rpath=/home/tkmartin/miniconda3/envs/py35/lib,--no-as-needed build/temp.linux-x86_64-3.5/utils/cython_bbox.o -o build/lib.linux-x86_64-3.5/utils/cython_bbox.cpython-35m-x86_64-linux-gnu.so building 'utils.cython_nms' extension gcc -pthread -B /home/tkmartin/miniconda3/envs/py35/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/tkmartin/miniconda3/envs/py35/lib/python3.5/site-packages/numpy/core/include -I/home/tkmartin/miniconda3/envs/py35/include/python3.5m -c utils/cython_nms.c -o build/temp.linux-x86_64-3.5/utils/cython_nms.o -Wno-cpp utils/cython_nms.c: In function ‘pyx_pf_5utils_10cython_nms_2soft_nms’: utils/cython_nms.c:3242:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pyx_t_11 = ((pyx_v_pos < __pyx_v_N) != 0); ^ utils/cython_nms.c:3753:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pyx_t_11 = ((pyx_v_pos < pyx_v_N) != 0); ^ gcc -pthread -shared -L/home/tkmartin/miniconda3/envs/py35/lib -B /home/tkmartin/miniconda3/envs/py35/compiler_compat -Wl,-rpath=/home/tkmartin/miniconda3/envs/py35/lib,--no-as-needed build/temp.linux-x86_64-3.5/utils/cython_nms.o -o build/lib.linux-x86_64-3.5/utils/cython_nms.cpython-35m-x86_64-linux-gnu.so copying build/lib.linux-x86_64-3.5/utils/cython_bbox.cpython-35m-x86_64-linux-gnu.so -> utils copying build/lib.linux-x86_64-3.5/utils/cython_nms.cpython-35m-x86_64-linux-gnu.so -> utils Compiling nms kernels by nvcc... ./make.sh: line 20: nvcc: command not found Including CUDA code. /home/tkmartin/Detectron.pytorch/lib/model/nms ['/home/tkmartin/Detectron.pytorch/lib/model/nms/src/nms_cuda_kernel.cu.o'] generating /tmp/tmpge7uqt46/_nms.c setting the current directory to '/tmp/tmpge7uqt46' running build_ext building '_nms' extension creating home creating home/tkmartin creating home/tkmartin/Detectron.pytorch creating home/tkmartin/Detectron.pytorch/lib creating home/tkmartin/Detectron.pytorch/lib/model creating home/tkmartin/Detectron.pytorch/lib/model/nms creating home/tkmartin/Detectron.pytorch/lib/model/nms/src gcc -pthread -B /home/tkmartin/miniconda3/envs/py35/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/tkmartin/miniconda3/envs/py35/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include -I/home/tkmartin/miniconda3/envs/py35/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/TH -I/home/tkmartin/miniconda3/envs/py35/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC -I/usr/local/cuda/include -I/home/tkmartin/miniconda3/envs/py35/include/python3.5m -c _nms.c -o ./_nms.o -std=c99 gcc -pthread -B /home/tkmartin/miniconda3/envs/py35/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/tkmartin/miniconda3/envs/py35/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include -I/home/tkmartin/miniconda3/envs/py35/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/TH -I/home/tkmartin/miniconda3/envs/py35/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC -I/usr/local/cuda/include -I/home/tkmartin/miniconda3/envs/py35/include/python3.5m -c /home/tkmartin/Detectron.pytorch/lib/model/nms/src/nms_cuda.c -o ./home/tkmartin/Detectron.pytorch/lib/model/nms/src/nms_cuda.o -std=c99 gcc -pthread -shared -L/home/tkmartin/miniconda3/envs/py35/lib -B /home/tkmartin/miniconda3/envs/py35/compiler_compat -Wl,-rpath=/home/tkmartin/miniconda3/envs/py35/lib,--no-as-needed ./_nms.o ./home/tkmartin/Detectron.pytorch/lib/model/nms/src/nms_cuda.o /home/tkmartin/Detectron.pytorch/lib/model/nms/src/nms_cuda_kernel.cu.o -o ./_nms.so gcc: error: /home/tkmartin/Detectron.pytorch/lib/model/nms/src/nms_cuda_kernel.cu.o: No such file or directory Traceback (most recent call last): File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/distutils/unixccompiler.py", line 197, in link self.spawn(linker + ld_args) File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/distutils/ccompiler.py", line 909, in spawn spawn(cmd, dry_run=self.dry_run) File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/distutils/spawn.py", line 36, in spawn _spawn_posix(cmd, search_path, dry_run=dry_run) File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/distutils/spawn.py", line 159, in _spawn_posix % (cmd, exit_status)) distutils.errors.DistutilsExecError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/site-packages/cffi/ffiplatform.py", line 51, in _build dist.run_command('build_ext') File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/distutils/command/build_ext.py", line 558, in build_extension target_lang=language) File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/distutils/ccompiler.py", line 717, in link_shared_object extra_preargs, extra_postargs, build_temp, target_lang) File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/distutils/unixccompiler.py", line 199, in link raise LinkError(msg) distutils.errors.LinkError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "build.py", line 37, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/site-packages/cffi/ffiplatform.py", line 51, in _build dist.run_command('build_ext') File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/distutils/command/build_ext.py", line 558, in build_extension target_lang=language) File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/distutils/ccompiler.py", line 717, in link_shared_object extra_preargs, extra_postargs, build_temp, target_lang) File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/distutils/unixccompiler.py", line 199, in link raise LinkError(msg) distutils.errors.LinkError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "build.py", line 35, in ~~~~
/home/tkmartin/Detectron.pytorch/lib/model/roi_crop/src/roi_crop.c:189:14: warning: unused variable ‘inBottomLeft’ [-Wunused-variabl]
real inBottomLeft=0;
^~~~
/home/tkmartin/Detectron.pytorch/lib/model/roi_crop/src/roi_crop.c:188:14: warning: unused variable ‘inTopRight’ [-Wunused-variable]
real inTopRight=0;
^~~~~~
/home/tkmartin/Detectron.pytorch/lib/model/roi_crop/src/roi_crop.c:187:14: warning: unused variable ‘inTopLeft’ [-Wunused-variable]
real inTopLeft=0;
^~~~~
/home/tkmartin/Detectron.pytorch/lib/model/roi_crop/src/roi_crop.c:186:14: warning: unused variable ‘v’ [-Wunused-variable]
real v=0;
^
/home/tkmartin/Detectron.pytorch/lib/model/roi_crop/src/roi_crop.c: In function ‘BilinearSamplerBCHW_updateGradInput’:
/home/tkmartin/Detectron.pytorch/lib/model/roi_crop/src/roi_crop.c:440:14: warning: unused variable ‘inBottomRight’ [-Wunused-variable]
real inBottomRight=0;
^~~~~
/home/tkmartin/Detectron.pytorch/lib/model/roi_crop/src/roi_crop.c:439:14: warning: unused variable ‘inBottomLeft’ [-Wunused-variabl]
real inBottomLeft=0;
^~~~
/home/tkmartin/Detectron.pytorch/lib/model/roi_crop/src/roi_crop.c:438:14: warning: unused variable ‘inTopRight’ [-Wunused-variable]
real inTopRight=0;
^~~~~~
/home/tkmartin/Detectron.pytorch/lib/model/roi_crop/src/roi_crop.c:437:14: warning: unused variable ‘inTopLeft’ [-Wunused-variable]
real inTopLeft=0;
^~~~~
/home/tkmartin/Detectron.pytorch/lib/model/roi_crop/src/roi_crop.c:436:14: warning: unused variable ‘v’ [-Wunused-variable]
real v=0;
^
gcc -pthread -B /home/tkmartin/miniconda3/envs/py35/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/tkmartin/miniconda3/envs/py35/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include -I/home/tkmartin/miniconda3/envs/py35/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/TH -I/home/tkmartin/miniconda3/envs/py35/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC -I/usr/local/cuda/include -I/home/tkmartin/miniconda3/envs/py35/include/python3.5m -c /home/tkmartin/Detectron.pytorch/lib/model/roi_crop/src/roi_crop_cuda.c -o ./home/tkmartin/Detectron.pytorch/lib/model/roi_crop/src/roi_crop_cuda.o -std=c99
gcc -pthread -shared -L/home/tkmartin/miniconda3/envs/py35/lib -B /home/tkmartin/miniconda3/envs/py35/compiler_compat -Wl,-rpath=/home/tkmartin/miniconda3/envs/py35/lib,--no-as-needed ./_roi_crop.o ./home/tkmartin/Detectron.pytorch/lib/model/roi_crop/src/roi_crop.o ./home/tkmartin/Detectron.pytorch/lib/model/roi_crop/src/roi_crop_cuda.o /home/tkmartin/Detectron.pytorch/lib/model/roi_crop/src/roi_crop_cuda_kernel.cu.o -o ./_roi_crop.so
gcc: error: /home/tkmartin/Detectron.pytorch/lib/model/roi_crop/src/roi_crop_cuda_kernel.cu.o: No such file or directory
Traceback (most recent call last):
File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/distutils/unixccompiler.py", line 197, in link
self.spawn(linker + ld_args)
File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/distutils/ccompiler.py", line 909, in spawn
spawn(cmd, dry_run=self.dry_run)
File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/distutils/spawn.py", line 36, in spawn
_spawn_posix(cmd, search_path, dry_run=dry_run)
File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/distutils/spawn.py", line 159, in _spawn_posix
% (cmd, exit_status))
distutils.errors.DistutilsExecError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/site-packages/cffi/ffiplatform.py", line 51, in _build dist.run_command('build_ext') File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/distutils/command/build_ext.py", line 558, in build_extension target_lang=language) File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/distutils/ccompiler.py", line 717, in link_shared_object extra_preargs, extra_postargs, build_temp, target_lang) File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/distutils/unixccompiler.py", line 199, in link raise LinkError(msg) distutils.errors.LinkError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "build.py", line 36, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/site-packages/cffi/ffiplatform.py", line 51, in _build dist.run_command('build_ext') File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/distutils/command/build_ext.py", line 558, in build_extension target_lang=language) File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/distutils/ccompiler.py", line 717, in link_shared_object extra_preargs, extra_postargs, build_temp, target_lang) File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/distutils/unixccompiler.py", line 199, in link raise LinkError(msg) distutils.errors.LinkError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "build.py", line 36, in
when i run cd lib && sh make.sh, i got the following error,please help running build_ext building 'utils.cython_bbox' extension creating build creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/utils gcc -pthread -B /root/zenghy/anaconda3/envs/L-torch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/site-packages/numpy/core/include -I/root/zenghy/anaconda3/envs/L-torch/include/python3.6m -c utils/cython_bbox.c -o build/temp.linux-x86_64-3.6/utils/cython_bbox.o -Wno-cpp creating build/lib.linux-x86_64-3.6 creating build/lib.linux-x86_64-3.6/utils gcc -pthread -shared -B /root/zenghy/anaconda3/envs/L-torch/compiler_compat -L/root/zenghy/anaconda3/envs/L-torch/lib -Wl,-rpath=/root/zenghy/anaconda3/envs/L-torch/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.6/utils/cython_bbox.o -o build/lib.linux-x86_64-3.6/utils/cython_bbox.cpython-36m-x86_64-linux-gnu.so /root/zenghy/anaconda3/envs/L-torch/compiler_compat/ld: cannot find -lpthread /root/zenghy/anaconda3/envs/L-torch/compiler_compat/ld: cannot find -lc collect2: error: ld returned 1 exit status error: command 'gcc' failed with exit status 1 Compiling nms kernels by nvcc... make.sh: 20: make.sh: nvcc: not found Including CUDA code. /root/liuzhichao/mask-rcnn.pytorch/lib/model/nms ['/root/liuzhichao/mask-rcnn.pytorch/lib/model/nms/src/nms_cuda_kernel.cu.o'] generating /tmp/tmpcsuzcrlt/_nms.c setting the current directory to '/tmp/tmpcsuzcrlt' running build_ext building '_nms' extension creating root creating root/liuzhichao creating root/liuzhichao/mask-rcnn.pytorch creating root/liuzhichao/mask-rcnn.pytorch/lib creating root/liuzhichao/mask-rcnn.pytorch/lib/model creating root/liuzhichao/mask-rcnn.pytorch/lib/model/nms creating root/liuzhichao/mask-rcnn.pytorch/lib/model/nms/src gcc -pthread -B /root/zenghy/anaconda3/envs/L-torch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include -I/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/TH -I/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/THC -I/usr/local/cuda/include -I/root/zenghy/anaconda3/envs/L-torch/include/python3.6m -c _nms.c -o ./_nms.o In file included from /root/zenghy/anaconda3/envs/L-torch/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/TH/THVector.h:5:0, from /root/zenghy/anaconda3/envs/L-torch/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/TH/TH.h:12, from _nms.c:492: /root/zenghy/anaconda3/envs/L-torch/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/TH/THMath.h: In function ‘TH_polevl’: /root/zenghy/anaconda3/envs/L-torch/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/TH/THMath.h:134:3: error: ‘for’ loop initial declarations are only allowed in C99 mode for (size_t i = 0; i <= len; i++) { ^ /root/zenghy/anaconda3/envs/L-torch/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/TH/THMath.h:134:3: note: use option -std=c99 or -std=gnu99 to compile your code /root/zenghy/anaconda3/envs/L-torch/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/TH/THMath.h: In function ‘TH_polevlf’: /root/zenghy/anaconda3/envs/L-torch/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/TH/THMath.h:142:3: error: ‘for’ loop initial declarations are only allowed in C99 mode for (size_t i = 0; i <= len; i++) { ^ /root/zenghy/anaconda3/envs/L-torch/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/TH/THMath.h: In function ‘TH_trigamma’: /root/zenghy/anaconda3/envs/L-torch/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/TH/THMath.h:260:3: error: ‘for’ loop initial declarations are only allowed in C99 mode for (int i = 0; i < 6; ++i) { ^ /root/zenghy/anaconda3/envs/L-torch/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/TH/THMath.h: In function ‘TH_trigammaf’: /root/zenghy/anaconda3/envs/L-torch/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/TH/THMath.h:278:3: error: ‘for’ loop initial declarations are only allowed in C99 mode for (int i = 0; i < 6; ++i) { ^ Traceback (most recent call last): File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/distutils/unixccompiler.py", line 118, in _compile extra_postargs) File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/distutils/ccompiler.py", line 909, in spawn spawn(cmd, dry_run=self.dry_run) File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/distutils/spawn.py", line 36, in spawn _spawn_posix(cmd, search_path, dry_run=dry_run) File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/distutils/spawn.py", line 159, in _spawn_posix % (cmd, exit_status)) distutils.errors.DistutilsExecError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/site-packages/cffi/ffiplatform.py", line 51, in _build dist.run_command('build_ext') File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension depends=ext.depends) File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/distutils/ccompiler.py", line 574, in compile self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/distutils/unixccompiler.py", line 120, in _compile raise CompileError(msg) distutils.errors.CompileError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "build.py", line 37, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/site-packages/cffi/ffiplatform.py", line 51, in _build dist.run_command('build_ext') File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension depends=ext.depends) File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/distutils/ccompiler.py", line 574, in compile self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/distutils/unixccompiler.py", line 120, in _compile raise CompileError(msg) distutils.errors.CompileError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "build.py", line 35, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/site-packages/cffi/ffiplatform.py", line 51, in _build dist.run_command('build_ext') File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension depends=ext.depends) File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/distutils/ccompiler.py", line 574, in compile self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/distutils/unixccompiler.py", line 120, in _compile raise CompileError(msg) distutils.errors.CompileError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "build.py", line 36, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/site-packages/cffi/ffiplatform.py", line 51, in _build dist.run_command('build_ext') File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension depends=ext.depends) File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/distutils/ccompiler.py", line 574, in compile self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/distutils/unixccompiler.py", line 120, in _compile raise CompileError(msg) distutils.errors.CompileError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "build.py", line 36, in
@Omar-Aboelsoud How do you setup Detectron on Colab? Can you show the steps tha you follow? Thanks
Hi, I met the similar problom. Do you konw how to solve it? It's nice of you to help me!
`utils/cython_nms.c: In function ‘pyx_pf_5utils_10cython_nms_2soft_nms’: utils/cython_nms.c:3242:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pyx_t_11 = ((pyx_v_pos < __pyx_v_N) != 0); ^ utils/cython_nms.c:3753:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pyx_t_11 = ((pyx_v_pos < pyx_v_N) != 0); ^ /home/manning/mrcn/lib/model/nms/src/nms_cuda.c: In function ‘nms_cuda’: /home/manning/mrcn/lib/model/nms/src/nms_cuda.c:14:22: error: dereferencing pointer to incomplete type ‘THTensor {aka struct THTensor}’ boxes_host->size[0], ^ Traceback (most recent call last): File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/unixccompiler.py", line 118, in _compile extra_postargs) File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/ccompiler.py", line 909, in spawn spawn(cmd, dry_run=self.dry_run) File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/spawn.py", line 36, in spawn _spawn_posix(cmd, search_path, dry_run=dry_run) File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/spawn.py", line 159, in _spawn_posix % (cmd, exit_status)) distutils.errors.DistutilsExecError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/site-packages/cffi/ffiplatform.py", line 51, in _build dist.run_command('build_ext') File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension depends=ext.depends) File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/ccompiler.py", line 574, in compile self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/unixccompiler.py", line 120, in _compile raise CompileError(msg) distutils.errors.CompileError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "build.py", line 37, in ffi.build() File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/site-packages/torch/utils/ffi/init.py", line 189, in build _build_extension(ffi, cffi_wrapper_name, target_dir, verbose) File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/site-packages/torch/utils/ffi/init.py", line 111, in _build_extension outfile = ffi.compile(tmpdir=tmpdir, verbose=verbose, target=libname) File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/site-packages/cffi/api.py", line 697, in compile compiler_verbose=verbose, debug=debug, kwds) File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/site-packages/cffi/recompiler.py", line 1520, in recompile compiler_verbose, debug) File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/site-packages/cffi/ffiplatform.py", line 22, in compile outputfilename = _build(tmpdir, ext, compiler_verbose, debug) File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/site-packages/cffi/ffiplatform.py", line 58, in _build raise VerificationError('%s: %s' % (e.class.name**, e)) cffi.error.VerificationError: CompileError: command 'gcc' failed with exit status 1 /home/manning/mrcn/lib/model/roi_crop/src/roi_crop.c: In function ‘BilinearSamplerBHWD_updateOutput’: /home/manning/mrcn/lib/model/roi_crop/src/roi_crop.c:10:30: error: dereferencing pointer to incomplete type ‘THTensor {aka struct THTensor}’ int batchsize = inputImages->size[0]; ^ /home/manning/mrcn/lib/model/roi_crop/src/roi_crop.c: In function ‘BilinearSamplerBHWD_updateGradInput’: /home/manning/mrcn/lib/model/roi_crop/src/roi_crop.c:190:14: warning: unused variable ‘inBottomRight’ [-Wunused-variable] real inBottomRight=0; ^ /home/manning/mrcn/lib/model/roi_crop/src/roi_crop.c:189:14: warning: unused variable ‘inBottomLeft’ [-Wunused-variable] real inBottomLeft=0; ^ /home/manning/mrcn/lib/model/roi_crop/src/roi_crop.c:188:14: warning: unused variable ‘inTopRight’ [-Wunused-variable] real inTopRight=0; ^ /home/manning/mrcn/lib/model/roi_crop/src/roi_crop.c:187:14: warning: unused variable ‘inTopLeft’ [-Wunused-variable] real inTopLeft=0; ^ /home/manning/mrcn/lib/model/roi_crop/src/roi_crop.c:186:14: warning: unused variable ‘v’ [-Wunused-variable] real v=0; ^ /home/manning/mrcn/lib/model/roi_crop/src/roi_crop.c: In function ‘BilinearSamplerBCHW_updateGradInput’: /home/manning/mrcn/lib/model/roi_crop/src/roi_crop.c:441:14: warning: unused variable ‘inBottomRight’ [-Wunused-variable] real inBottomRight=0; ^ /home/manning/mrcn/lib/model/roi_crop/src/roi_crop.c:440:14: warning: unused variable ‘inBottomLeft’ [-Wunused-variable] real inBottomLeft=0; ^ /home/manning/mrcn/lib/model/roi_crop/src/roi_crop.c:439:14: warning: unused variable ‘inTopRight’ [-Wunused-variable] real inTopRight=0; ^ /home/manning/mrcn/lib/model/roi_crop/src/roi_crop.c:438:14: warning: unused variable ‘inTopLeft’ [-Wunused-variable] real inTopLeft=0; ^ /home/manning/mrcn/lib/model/roi_crop/src/roi_crop.c:437:14: warning: unused variable ‘v’ [-Wunused-variable] real v=0; ^ Traceback (most recent call last): File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/unixccompiler.py", line 118, in _compile extra_postargs) File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/ccompiler.py", line 909, in spawn spawn(cmd, dry_run=self.dry_run) File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/spawn.py", line 36, in spawn _spawn_posix(cmd, search_path, dry_run=dry_run) File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/spawn.py", line 159, in _spawn_posix % (cmd, exit_status)) distutils.errors.DistutilsExecError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/site-packages/cffi/ffiplatform.py", line 51, in _build dist.run_command('build_ext') File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension depends=ext.depends) File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/ccompiler.py", line 574, in compile self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/distutils/unixccompiler.py", line 120, in _compile raise CompileError(msg) distutils.errors.CompileError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "build.py", line 36, in ffi.build() File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/site-packages/torch/utils/ffi/init.py", line 189, in build _build_extension(ffi, cffi_wrapper_name, target_dir, verbose) File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/site-packages/torch/utils/ffi/init.py", line 111, in _build_extension outfile = ffi.compile(tmpdir=tmpdir, verbose=verbose, target=libname) File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/site-packages/cffi/api.py", line 697, in compile compiler_verbose=verbose, debug=debug, kwds) File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/site-packages/cffi/recompiler.py", line 1520, in recompile compiler_verbose, debug) File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/site-packages/cffi/ffiplatform.py", line 22, in compile outputfilename = _build(tmpdir, ext, compiler_verbose, debug) File "/home/manning/anaconda2/envs/mrcn/lib/python3.6/site-packages/cffi/ffiplatform.py", line 58, in _build raise VerificationError('%s: %s' % (e.class.name**, e)) cffi.error.VerificationError: CompileError: command 'gcc' failed with exit status 1 `
Hi, do you solve this problem, I met the same as yours
I met the similar problem whose output error saying ./make.sh nvcc command not found
.
I solved it by
export LD_LIBRARY_PATH=/usr/local/cuda/lib
export PATH=$PATH:/usr/local/cuda/bin
and make again. Reference: https://devtalk.nvidia.com/default/topic/457664/nvcc-quot-no-command-nvcc-found-quot-/
Hi, I met the similar problom. Do you konw how to solve it?
Compiling utils/cython_nms.pyx because it depends on /home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/Cython/Includes/cpython/buffer.pxd. [1/2] Cythonizing utils/cython_bbox.pyx it depends on /home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/Cython/Includes/cpython/buffer.pxd. /home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /home/zytr/桌面/fsod/FSOD-code-master/lib/utils/cython_bbox.pyx tree = Parsing.p_module(s, pxd, full_module_name) [2/2] Cythonizing utils/cython_nms.pyx /home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /home/zytr/桌面/fsod/FSOD-code-master/lib/utils/cython_nms.pyx tree = Parsing.p_module(s, pxd, full_module_name) running build_ext building 'utils.cython_bbox' extension creating build creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/utils gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -std=c99 -fPIC -I/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/numpy/core/include -I/home/zytr/anaconda3/envs/torch0.4/include/python3.6m -c utils/cython_bbox.c -o build/temp.linux-x86_64-3.6/utils/cython_bbox.o -Wno-cpp creating build/lib.linux-x86_64-3.6 creating build/lib.linux-x86_64-3.6/utils gcc -pthread -shared -L/home/zytr/anaconda3/envs/torch0.4/lib -Wl,-rpath=/home/zytr/anaconda3/envs/torch0.4/lib,--no-as-needed -std=c99 build/temp.linux-x86_64-3.6/utils/cython_bbox.o -L/home/zytr/anaconda3/envs/torch0.4/lib -lpython3.6m -o build/lib.linux-x86_64-3.6/utils/cython_bbox.cpython-36m-x86_64-linux-gnu.so building 'utils.cython_nms' extension gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -std=c99 -fPIC -I/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/numpy/core/include -I/home/zytr/anaconda3/envs/torch0.4/include/python3.6m -c utils/cython_nms.c -o build/temp.linux-x86_64-3.6/utils/cython_nms.o -Wno-cpp gcc -pthread -shared -L/home/zytr/anaconda3/envs/torch0.4/lib -Wl,-rpath=/home/zytr/anaconda3/envs/torch0.4/lib,--no-as-needed -std=c99 build/temp.linux-x86_64-3.6/utils/cython_nms.o -L/home/zytr/anaconda3/envs/torch0.4/lib -lpython3.6m -o build/lib.linux-x86_64-3.6/utils/cython_nms.cpython-36m-x86_64-linux-gnu.so copying build/lib.linux-x86_64-3.6/utils/cython_bbox.cpython-36m-x86_64-linux-gnu.so -> utils copying build/lib.linux-x86_64-3.6/utils/cython_nms.cpython-36m-x86_64-linux-gnu.so -> utils Compiling nms kernels by nvcc... nvcc fatal : Unsupported gpu architecture 'compute_75' Including CUDA code. /home/zytr/桌面/fsod/FSOD-code-master/lib/model/nms ['/home/zytr/桌面/fsod/FSOD-code-master/lib/model/nms/src/nms_cuda_kernel.cu.o'] generating /tmp/tmpa5lc0zlr/_nms.c setting the current directory to '/tmp/tmpa5lc0zlr' running build_ext building '_nms' extension creating home creating home/zytr creating home/zytr/桌面 creating home/zytr/桌面/fsod creating home/zytr/桌面/fsod/FSOD-code-master creating home/zytr/桌面/fsod/FSOD-code-master/lib creating home/zytr/桌面/fsod/FSOD-code-master/lib/model creating home/zytr/桌面/fsod/FSOD-code-master/lib/model/nms creating home/zytr/桌面/fsod/FSOD-code-master/lib/model/nms/src gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -std=c99 -fPIC -DWITH_CUDA -I/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include -I/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/TH -I/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/THC -I/usr/local/cuda/include -I/home/zytr/anaconda3/envs/torch0.4/include/python3.6m -c _nms.c -o ./_nms.o -std=c99 gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -std=c99 -fPIC -DWITH_CUDA -I/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include -I/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/TH -I/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/THC -I/usr/local/cuda/include -I/home/zytr/anaconda3/envs/torch0.4/include/python3.6m -c /home/zytr/桌面/fsod/FSOD-code-master/lib/model/nms/srcms_cuda.c -o ./home/zytr/桌面/fsod/FSOD-code-master/lib/model/nms/src/nms_cuda.o -std=c99 gcc: error: /home/zytr/桌面/fsod/FSOD-code-master/lib/model/nms/src/nms_cuda.c: 没有那个文件或目录 gcc: fatal error: no input files compilation terminated. Traceback (most recent call last): File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/unixccompiler.py", line 118, in _compile extra_postargs) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/ccompiler.py", line 909, in spawn spawn(cmd, dry_run=self.dry_run) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/spawn.py", line 36, in spawn _spawn_posix(cmd, search_path, dry_run=dry_run) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/spawn.py", line 159, in _spawn_posix % (cmd, exit_status)) distutils.errors.DistutilsExecError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/ffiplatform.py", line 51, in _build dist.run_command('build_ext') File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension depends=ext.depends) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/ccompiler.py", line 574, in compile self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/unixccompiler.py", line 120, in _compile raise CompileError(msg) distutils.errors.CompileError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "build.py", line 37, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/ffiplatform.py", line 51, in _build dist.run_command('build_ext') File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 558, in build_extension target_lang=language) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/ccompiler.py", line 717, in link_shared_object extra_preargs, extra_postargs, build_temp, target_lang) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/unixccompiler.py", line 198, in link raise LinkError(msg) distutils.errors.LinkError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "build.py", line 35, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/ffiplatform.py", line 51, in _build dist.run_command('build_ext') File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 558, in build_extension target_lang=language) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/ccompiler.py", line 717, in link_shared_object extra_preargs, extra_postargs, build_temp, target_lang) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/unixccompiler.py", line 198, in link raise LinkError(msg) distutils.errors.LinkError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "build.py", line 36, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/ffiplatform.py", line 51, in _build dist.run_command('build_ext') File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 558, in build_extension target_lang=language) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/ccompiler.py", line 717, in link_shared_object extra_preargs, extra_postargs, build_temp, target_lang) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/unixccompiler.py", line 198, in link raise LinkError(msg) distutils.errors.LinkError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "build.py", line 36, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/ffiplatform.py", line 51, in _build dist.run_command('build_ext') File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension depends=ext.depends) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/ccompiler.py", line 574, in compile self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/unixccompiler.py", line 120, in _compile raise CompileError(msg) distutils.errors.CompileError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "build.py", line 37, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/ffiplatform.py", line 51, in _build dist.run_command('build_ext') File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 558, in build_extension target_lang=language) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/ccompiler.py", line 717, in link_shared_object extra_preargs, extra_postargs, build_temp, target_lang) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/unixccompiler.py", line 198, in link raise LinkError(msg) distutils.errors.LinkError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "build.py", line 35, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/ffiplatform.py", line 51, in _build dist.run_command('build_ext') File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 558, in build_extension target_lang=language) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/ccompiler.py", line 717, in link_shared_object extra_preargs, extra_postargs, build_temp, target_lang) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/unixccompiler.py", line 198, in link raise LinkError(msg) distutils.errors.LinkError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "build.py", line 36, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/ffiplatform.py", line 51, in _build dist.run_command('build_ext') File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 558, in build_extension target_lang=language) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/ccompiler.py", line 717, in link_shared_object extra_preargs, extra_postargs, build_temp, target_lang) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/unixccompiler.py", line 198, in link raise LinkError(msg) distutils.errors.LinkError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
ERROR: Failed building wheel for cpython Running setup.py clean for cpython Failed to build cpython Installing collected packages: urllib3, idna, chardet, certifi, requests, pymongo, cpython Attempting uninstall: certifi Found existing installation: certifi 2016.2.28 Uninstalling certifi-2016.2.28: Successfully uninstalled certifi-2016.2.28 Running setup.py install for cpython ... done DEPRECATION: cpython was installed using the legacy 'setup.py install' method, because a wheel could not be built for it. A possible replacement is to fix the wheel build issue reported above. You can find discussion regarding this at https://github.com/pypa/pip/issues/8368. Successfully installed certifi-2020.12.5 chardet-4.0.0 cpython-0.0.6 idna-2.10 pymongo-3.11.3 requests-2.25.1 urllib3-1.26.4 (torch0.4) zytr@zytr-MS-7B23:~/桌面/fsod/FSOD-code-master/lib$ CPATH=/usr/local/cuda-9.0/include ./make.sh running build_ext building 'utils.cython_bbox' extension creating build creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/utils gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -std=c99 -fPIC -I/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/numpy/core/include -I/home/zytr/anaconda3/envs/torch0.4/include/python3.6m -c utils/cython_bbox.c -o build/temp.linux-x86_64-3.6/utils/cython_bbox.o -Wno-cpp creating build/lib.linux-x86_64-3.6 creating build/lib.linux-x86_64-3.6/utils gcc -pthread -shared -L/home/zytr/anaconda3/envs/torch0.4/lib -Wl,-rpath=/home/zytr/anaconda3/envs/torch0.4/lib,--no-as-needed -std=c99 build/temp.linux-x86_64-3.6/utils/cython_bbox.o -L/home/zytr/anaconda3/envs/torch0.4/lib -lpython3.6m -o build/lib.linux-x86_64-3.6/utils/cython_bbox.cpython-36m-x86_64-linux-gnu.so building 'utils.cython_nms' extension gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -std=c99 -fPIC -I/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/numpy/core/include -I/home/zytr/anaconda3/envs/torch0.4/include/python3.6m -c utils/cython_nms.c -o build/temp.linux-x86_64-3.6/utils/cython_nms.o -Wno-cpp gcc -pthread -shared -L/home/zytr/anaconda3/envs/torch0.4/lib -Wl,-rpath=/home/zytr/anaconda3/envs/torch0.4/lib,--no-as-needed -std=c99 build/temp.linux-x86_64-3.6/utils/cython_nms.o -L/home/zytr/anaconda3/envs/torch0.4/lib -lpython3.6m -o build/lib.linux-x86_64-3.6/utils/cython_nms.cpython-36m-x86_64-linux-gnu.so copying build/lib.linux-x86_64-3.6/utils/cython_bbox.cpython-36m-x86_64-linux-gnu.so -> utils copying build/lib.linux-x86_64-3.6/utils/cython_nms.cpython-36m-x86_64-linux-gnu.so -> utils Compiling nms kernels by nvcc... nvcc fatal : Value 'sm_75' is not defined for option 'gpu-architecture' Including CUDA code. /home/zytr/桌面/fsod/FSOD-code-master/lib/model/nms ['/home/zytr/桌面/fsod/FSOD-code-master/lib/model/nms/src/nms_cuda_kernel.cu.o'] generating /tmp/tmp84_y3xtr/_nms.c setting the current directory to '/tmp/tmp84_y3xtr' running build_ext building '_nms' extension creating home creating home/zytr creating home/zytr/桌面 creating home/zytr/桌面/fsod creating home/zytr/桌面/fsod/FSOD-code-master creating home/zytr/桌面/fsod/FSOD-code-master/lib creating home/zytr/桌面/fsod/FSOD-code-master/lib/model creating home/zytr/桌面/fsod/FSOD-code-master/lib/model/nms creating home/zytr/桌面/fsod/FSOD-code-master/lib/model/nms/src gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -std=c99 -fPIC -DWITH_CUDA -I/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include -I/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/TH -I/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/THC -I/usr/local/cuda/include -I/home/zytr/anaconda3/envs/torch0.4/include/python3.6m -c _nms.c -o ./_nms.o -std=c99 gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -std=c99 -fPIC -DWITH_CUDA -I/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include -I/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/TH -I/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/THC -I/usr/local/cuda/include -I/home/zytr/anaconda3/envs/torch0.4/include/python3.6m -c /home/zytr/桌面/fsod/FSOD-code-master/lib/model/nms/srcms_cuda.c -o ./home/zytr/桌面/fsod/FSOD-code-master/lib/model/nms/src/nms_cuda.o -std=c99 gcc: error: /home/zytr/桌面/fsod/FSOD-code-master/lib/model/nms/src/nms_cuda.c: 没有那个文件或目录 gcc: fatal error: no input files compilation terminated. Traceback (most recent call last): File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/unixccompiler.py", line 118, in _compile extra_postargs) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/ccompiler.py", line 909, in spawn spawn(cmd, dry_run=self.dry_run) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/spawn.py", line 36, in spawn _spawn_posix(cmd, search_path, dry_run=dry_run) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/spawn.py", line 159, in _spawn_posix % (cmd, exit_status)) distutils.errors.DistutilsExecError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/ffiplatform.py", line 51, in _build dist.run_command('build_ext') File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension depends=ext.depends) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/ccompiler.py", line 574, in compile self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/unixccompiler.py", line 120, in _compile raise CompileError(msg) distutils.errors.CompileError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "build.py", line 37, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/ffiplatform.py", line 51, in _build dist.run_command('build_ext') File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 558, in build_extension target_lang=language) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/ccompiler.py", line 717, in link_shared_object extra_preargs, extra_postargs, build_temp, target_lang) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/unixccompiler.py", line 198, in link raise LinkError(msg) distutils.errors.LinkError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "build.py", line 35, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/ffiplatform.py", line 51, in _build dist.run_command('build_ext') File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 558, in build_extension target_lang=language) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/ccompiler.py", line 717, in link_shared_object extra_preargs, extra_postargs, build_temp, target_lang) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/unixccompiler.py", line 198, in link raise LinkError(msg) distutils.errors.LinkError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "build.py", line 36, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/ffiplatform.py", line 51, in _build dist.run_command('build_ext') File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/command/build_ext.py", line 558, in build_extension target_lang=language) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/ccompiler.py", line 717, in link_shared_object extra_preargs, extra_postargs, build_temp, target_lang) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/unixccompiler.py", line 198, in link raise LinkError(msg) distutils.errors.LinkError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "build.py", line 36, in
I build this repo as your guide, but when I run cd lib & sh make.sh, I got the following error:
/opt/conda/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/THC/THCGeneral.h:12:18: fatal error: cuda.h: No such file or directory compilation terminated. Traceback (most recent call last): File "/opt/conda/lib/python3.6/distutils/unixccompiler.py", line 118, in _compile extra_postargs) File "/opt/conda/lib/python3.6/distutils/ccompiler.py", line 909, in spawn spawn(cmd, dry_run=self.dry_run) File "/opt/conda/lib/python3.6/distutils/spawn.py", line 36, in spawn _spawn_posix(cmd, search_path, dry_run=dry_run) File "/opt/conda/lib/python3.6/distutils/spawn.py", line 159, in _spawn_posix % (cmd, exit_status)) distutils.errors.DistutilsExecError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/opt/conda/lib/python3.6/site-packages/cffi/ffiplatform.py", line 51, in _build dist.run_command('build_ext') File "/opt/conda/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/opt/conda/lib/python3.6/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/opt/conda/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/opt/conda/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/opt/conda/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension depends=ext.depends) File "/opt/conda/lib/python3.6/distutils/ccompiler.py", line 574, in compile self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/opt/conda/lib/python3.6/distutils/unixccompiler.py", line 120, in _compile raise CompileError(msg) distutils.errors.CompileError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "build.py", line 37, in
ffi.build()
File "/opt/conda/lib/python3.6/site-packages/torch/utils/ffi/init.py", line 184, in build
_build_extension(ffi, cffi_wrapper_name, target_dir, verbose)
File "/opt/conda/lib/python3.6/site-packages/torch/utils/ffi/init.py", line 108, in _build_extension
outfile = ffi.compile(tmpdir=tmpdir, verbose=verbose, target=libname)
File "/opt/conda/lib/python3.6/site-packages/cffi/api.py", line 697, in compile
compiler_verbose=verbose, debug=debug, **kwds)
File "/opt/conda/lib/python3.6/site-packages/cffi/recompiler.py", line 1520, in recompile
compiler_verbose, debug)
File "/opt/conda/lib/python3.6/site-packages/cffi/ffiplatform.py", line 22, in compile
outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
File "/opt/conda/lib/python3.6/site-packages/cffi/ffiplatform.py", line 58, in _build
raise VerificationError('%s: %s' % (e.class.name, e))
cffi.error.VerificationError: CompileError: command 'gcc' failed with exit status 1
Compiling roi pooling kernels by nvcc...
make.sh: 30: make.sh: nvcc: not found
Including CUDA code.
/workspace/object_detection/Detectron.pytorch-pytorch-0.4/lib/model/roi_pooling
generating /tmp/tmpumn9bhfq/_roi_pooling.c
setting the current directory to '/tmp/tmpumn9bhfq'
running build_ext
building '_roi_pooling' extension
creating workspace
creating workspace/object_detection
creating workspace/object_detection/Detectron.pytorch-pytorch-0.4
creating workspace/object_detection/Detectron.pytorch-pytorch-0.4/lib
creating workspace/object_detection/Detectron.pytorch-pytorch-0.4/lib/model
creating workspace/object_detection/Detectron.pytorch-pytorch-0.4/lib/model/roi_pooling
creating workspace/object_detection/Detectron.pytorch-pytorch-0.4/lib/model/roi_pooling/src
gcc -pthread -B /opt/conda/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/opt/conda/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include -I/opt/conda/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/TH -I/opt/conda/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/THC -I/opt/conda/include/python3.6m -c _roi_pooling.c -o ./_roi_pooling.o
In file included from /opt/conda/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/THC/THC.h:4:0,
from _roi_pooling.c:493:
/opt/conda/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/THC/THCGeneral.h:12:18: fatal error: cuda.h: No such file or directory
compilation terminated.
Traceback (most recent call last):
File "/opt/conda/lib/python3.6/distutils/unixccompiler.py", line 118, in _compile
extra_postargs)
File "/opt/conda/lib/python3.6/distutils/ccompiler.py", line 909, in spawn
spawn(cmd, dry_run=self.dry_run)
File "/opt/conda/lib/python3.6/distutils/spawn.py", line 36, in spawn
_spawn_posix(cmd, search_path, dry_run=dry_run)
File "/opt/conda/lib/python3.6/distutils/spawn.py", line 159, in _spawn_posix
% (cmd, exit_status))
distutils.errors.DistutilsExecError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/opt/conda/lib/python3.6/site-packages/cffi/ffiplatform.py", line 51, in _build dist.run_command('build_ext') File "/opt/conda/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/opt/conda/lib/python3.6/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/opt/conda/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/opt/conda/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/opt/conda/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension depends=ext.depends) File "/opt/conda/lib/python3.6/distutils/ccompiler.py", line 574, in compile self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/opt/conda/lib/python3.6/distutils/unixccompiler.py", line 120, in _compile raise CompileError(msg) distutils.errors.CompileError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "build.py", line 35, in
ffi.build()
File "/opt/conda/lib/python3.6/site-packages/torch/utils/ffi/init.py", line 184, in build
_build_extension(ffi, cffi_wrapper_name, target_dir, verbose)
File "/opt/conda/lib/python3.6/site-packages/torch/utils/ffi/init.py", line 108, in _build_extension
outfile = ffi.compile(tmpdir=tmpdir, verbose=verbose, target=libname)
File "/opt/conda/lib/python3.6/site-packages/cffi/api.py", line 697, in compile
compiler_verbose=verbose, debug=debug, **kwds)
File "/opt/conda/lib/python3.6/site-packages/cffi/recompiler.py", line 1520, in recompile
compiler_verbose, debug)
File "/opt/conda/lib/python3.6/site-packages/cffi/ffiplatform.py", line 22, in compile
outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
File "/opt/conda/lib/python3.6/site-packages/cffi/ffiplatform.py", line 58, in _build
raise VerificationError('%s: %s' % (e.class.name, e))
cffi.error.VerificationError: CompileError: command 'gcc' failed with exit status 1
Compiling roi crop kernels by nvcc...
make.sh: 48: make.sh: nvcc: not found
Including CUDA code.
/workspace/object_detection/Detectron.pytorch-pytorch-0.4/lib/model/roi_crop
generating /tmp/tmp09ijeqtz/_roi_crop.c
setting the current directory to '/tmp/tmp09ijeqtz'
running build_ext
building '_roi_crop' extension
creating workspace
creating workspace/object_detection
creating workspace/object_detection/Detectron.pytorch-pytorch-0.4
creating workspace/object_detection/Detectron.pytorch-pytorch-0.4/lib
creating workspace/object_detection/Detectron.pytorch-pytorch-0.4/lib/model
creating workspace/object_detection/Detectron.pytorch-pytorch-0.4/lib/model/roi_crop
creating workspace/object_detection/Detectron.pytorch-pytorch-0.4/lib/model/roi_crop/src
gcc -pthread -B /opt/conda/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/opt/conda/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include -I/opt/conda/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/TH -I/opt/conda/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/THC -I/opt/conda/include/python3.6m -c _roi_crop.c -o ./_roi_crop.o
In file included from /opt/conda/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/THC/THC.h:4:0,
from _roi_crop.c:493:
/opt/conda/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/THC/THCGeneral.h:12:18: fatal error: cuda.h: No such file or directory
compilation terminated.
Traceback (most recent call last):
File "/opt/conda/lib/python3.6/distutils/unixccompiler.py", line 118, in _compile
extra_postargs)
File "/opt/conda/lib/python3.6/distutils/ccompiler.py", line 909, in spawn
spawn(cmd, dry_run=self.dry_run)
File "/opt/conda/lib/python3.6/distutils/spawn.py", line 36, in spawn
_spawn_posix(cmd, search_path, dry_run=dry_run)
File "/opt/conda/lib/python3.6/distutils/spawn.py", line 159, in _spawn_posix
% (cmd, exit_status))
distutils.errors.DistutilsExecError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/opt/conda/lib/python3.6/site-packages/cffi/ffiplatform.py", line 51, in _build dist.run_command('build_ext') File "/opt/conda/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/opt/conda/lib/python3.6/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/opt/conda/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/opt/conda/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/opt/conda/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension depends=ext.depends) File "/opt/conda/lib/python3.6/distutils/ccompiler.py", line 574, in compile self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/opt/conda/lib/python3.6/distutils/unixccompiler.py", line 120, in _compile raise CompileError(msg) distutils.errors.CompileError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "build.py", line 36, in
ffi.build()
File "/opt/conda/lib/python3.6/site-packages/torch/utils/ffi/init.py", line 184, in build
_build_extension(ffi, cffi_wrapper_name, target_dir, verbose)
File "/opt/conda/lib/python3.6/site-packages/torch/utils/ffi/init.py", line 108, in _build_extension
outfile = ffi.compile(tmpdir=tmpdir, verbose=verbose, target=libname)
File "/opt/conda/lib/python3.6/site-packages/cffi/api.py", line 697, in compile
compiler_verbose=verbose, debug=debug, **kwds)
File "/opt/conda/lib/python3.6/site-packages/cffi/recompiler.py", line 1520, in recompile
compiler_verbose, debug)
File "/opt/conda/lib/python3.6/site-packages/cffi/ffiplatform.py", line 22, in compile
outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
File "/opt/conda/lib/python3.6/site-packages/cffi/ffiplatform.py", line 58, in _build
raise VerificationError('%s: %s' % (e.class.name, e))
cffi.error.VerificationError: CompileError: command 'gcc' failed with exit status 1
Compiling roi align kernels by nvcc...
make.sh: 57: make.sh: nvcc: not found
Including CUDA code.
/workspace/object_detection/Detectron.pytorch-pytorch-0.4/lib/modeling/roi_xfrom/roi_align
generating /tmp/tmpktcemett/_roi_align.c
setting the current directory to '/tmp/tmpktcemett'
running build_ext
building '_roi_align' extension
creating workspace
creating workspace/object_detection
creating workspace/object_detection/Detectron.pytorch-pytorch-0.4
creating workspace/object_detection/Detectron.pytorch-pytorch-0.4/lib
creating workspace/object_detection/Detectron.pytorch-pytorch-0.4/lib/modeling
creating workspace/object_detection/Detectron.pytorch-pytorch-0.4/lib/modeling/roi_xfrom
creating workspace/object_detection/Detectron.pytorch-pytorch-0.4/lib/modeling/roi_xfrom/roi_align
creating workspace/object_detection/Detectron.pytorch-pytorch-0.4/lib/modeling/roi_xfrom/roi_align/src
gcc -pthread -B /opt/conda/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/opt/conda/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include -I/opt/conda/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/TH -I/opt/conda/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/THC -I/opt/conda/include/python3.6m -c _roi_align.c -o ./_roi_align.o
In file included from /opt/conda/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/THC/THC.h:4:0,
from _roi_align.c:493:
/opt/conda/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/THC/THCGeneral.h:12:18: fatal error: cuda.h: No such file or directory
compilation terminated.
Traceback (most recent call last):
File "/opt/conda/lib/python3.6/distutils/unixccompiler.py", line 118, in _compile
extra_postargs)
File "/opt/conda/lib/python3.6/distutils/ccompiler.py", line 909, in spawn
spawn(cmd, dry_run=self.dry_run)
File "/opt/conda/lib/python3.6/distutils/spawn.py", line 36, in spawn
_spawn_posix(cmd, search_path, dry_run=dry_run)
File "/opt/conda/lib/python3.6/distutils/spawn.py", line 159, in _spawn_posix
% (cmd, exit_status))
distutils.errors.DistutilsExecError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/opt/conda/lib/python3.6/site-packages/cffi/ffiplatform.py", line 51, in _build dist.run_command('build_ext') File "/opt/conda/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/opt/conda/lib/python3.6/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/opt/conda/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/opt/conda/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/opt/conda/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension depends=ext.depends) File "/opt/conda/lib/python3.6/distutils/ccompiler.py", line 574, in compile self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/opt/conda/lib/python3.6/distutils/unixccompiler.py", line 120, in _compile raise CompileError(msg) distutils.errors.CompileError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "build.py", line 36, in
ffi.build()
File "/opt/conda/lib/python3.6/site-packages/torch/utils/ffi/init.py", line 184, in build
_build_extension(ffi, cffi_wrapper_name, target_dir, verbose)
File "/opt/conda/lib/python3.6/site-packages/torch/utils/ffi/init.py", line 108, in _build_extension
outfile = ffi.compile(tmpdir=tmpdir, verbose=verbose, target=libname)
File "/opt/conda/lib/python3.6/site-packages/cffi/api.py", line 697, in compile
compiler_verbose=verbose, debug=debug, **kwds)
File "/opt/conda/lib/python3.6/site-packages/cffi/recompiler.py", line 1520, in recompile
compiler_verbose, debug)
File "/opt/conda/lib/python3.6/site-packages/cffi/ffiplatform.py", line 22, in compile
outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
File "/opt/conda/lib/python3.6/site-packages/cffi/ffiplatform.py", line 58, in _build
raise VerificationError('%s: %s' % (e.class.name, e))
cffi.error.VerificationError: CompileError: command 'gcc' failed with exit status 1