roytseng-tw / Detectron.pytorch

A pytorch implementation of Detectron. Both training from scratch and inferring directly from pretrained Detectron weights are available.
MIT License
2.82k stars 544 forks source link

WRONG: cd lib sh make.sh #74

Open Ai-is-light opened 6 years ago

Ai-is-light commented 6 years ago

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

roytseng-tw commented 6 years ago

Are you having the right path to CUDA ? First error message says fatal error: cuda.h: No such file or directory

vsd550 commented 6 years ago

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

Omar-Aboelsoud commented 6 years ago

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 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 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`

roytseng-tw commented 6 years ago

@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 ?

Omar-Aboelsoud commented 6 years ago

@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 as well ,

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`

roytseng-tw commented 6 years ago

@Omar-Aboelsoud I am not familiar with google colab, but what's your path to cuda ?

relh commented 6 years ago

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/

huinsysu commented 6 years ago

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 `

karenyun commented 6 years ago

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.

CoinCheung commented 6 years ago

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)
roytseng-tw commented 6 years ago

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

jytime commented 6 years ago

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.

prologueyan-hr commented 6 years ago

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: 没有那个文件或目录

include "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 ffi.build() File "/home/yhr/download/PANet-master/venv/lib/python3.6/site-packages/torch/utils/ffi/init.py", line 184, in build _build_extension(ffi, cffi_wrapper_name, target_dir, verbose) File "/home/yhr/download/PANet-master/venv/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 "/home/yhr/download/PANet-master/venv/lib/python3.6/site-packages/cffi/api.py", line 697, in compile compiler_verbose=verbose, debug=debug, **kwds) File "/home/yhr/download/PANet-master/venv/lib/python3.6/site-packages/cffi/recompiler.py", line 1520, in recompile compiler_verbose, debug) File "/home/yhr/download/PANet-master/venv/lib/python3.6/site-packages/cffi/ffiplatform.py", line 22, in compile outputfilename = _build(tmpdir, ext, compiler_verbose, debug) File "/home/yhr/download/PANet-master/venv/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 'x86_64-linux-gnu-gcc' failed with exit status 1 Compiling roi pooling kernels by nvcc... Including CUDA code. /home/yhr/download/PANet-master/lib/model/roi_pooling generating /tmp/tmp94sbcvzo/_roi_pooling.c setting the current directory to '/tmp/tmp94sbcvzo' running build_ext building '_roi_pooling' 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/roi_pooling creating home/yhr/download/PANet-master/lib/model/roi_pooling/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 _roi_pooling.c -o ./_roi_pooling.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 _roi_pooling.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: 没有那个文件或目录

include "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 35, in ffi.build() File "/home/yhr/download/PANet-master/venv/lib/python3.6/site-packages/torch/utils/ffi/init.py", line 184, in build _build_extension(ffi, cffi_wrapper_name, target_dir, verbose) File "/home/yhr/download/PANet-master/venv/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 "/home/yhr/download/PANet-master/venv/lib/python3.6/site-packages/cffi/api.py", line 697, in compile compiler_verbose=verbose, debug=debug, **kwds) File "/home/yhr/download/PANet-master/venv/lib/python3.6/site-packages/cffi/recompiler.py", line 1520, in recompile compiler_verbose, debug) File "/home/yhr/download/PANet-master/venv/lib/python3.6/site-packages/cffi/ffiplatform.py", line 22, in compile outputfilename = _build(tmpdir, ext, compiler_verbose, debug) File "/home/yhr/download/PANet-master/venv/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 'x86_64-linux-gnu-gcc' failed with exit status 1 Compiling roi crop kernels by nvcc... Including CUDA code. /home/yhr/download/PANet-master/lib/model/roi_crop generating /tmp/tmpu8_bhwj6/_roi_crop.c setting the current directory to '/tmp/tmpu8_bhwj6' running build_ext building '_roi_crop' 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/roi_crop creating home/yhr/download/PANet-master/lib/model/roi_crop/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 _roi_crop.c -o ./_roi_crop.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 _roi_crop.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: 没有那个文件或目录

include "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 36, in ffi.build() File "/home/yhr/download/PANet-master/venv/lib/python3.6/site-packages/torch/utils/ffi/init.py", line 184, in build _build_extension(ffi, cffi_wrapper_name, target_dir, verbose) File "/home/yhr/download/PANet-master/venv/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 "/home/yhr/download/PANet-master/venv/lib/python3.6/site-packages/cffi/api.py", line 697, in compile compiler_verbose=verbose, debug=debug, **kwds) File "/home/yhr/download/PANet-master/venv/lib/python3.6/site-packages/cffi/recompiler.py", line 1520, in recompile compiler_verbose, debug) File "/home/yhr/download/PANet-master/venv/lib/python3.6/site-packages/cffi/ffiplatform.py", line 22, in compile outputfilename = _build(tmpdir, ext, compiler_verbose, debug) File "/home/yhr/download/PANet-master/venv/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 'x86_64-linux-gnu-gcc' failed with exit status 1 Compiling roi align kernels by nvcc... Including CUDA code. /home/yhr/download/PANet-master/lib/modeling/roi_xfrom/roialign generating /tmp/tmp2er1hx0/_roialign.c setting the current directory to '/tmp/tmp2er1hx0' running build_ext building '_roi_align' 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/modeling creating home/yhr/download/PANet-master/lib/modeling/roi_xfrom creating home/yhr/download/PANet-master/lib/modeling/roi_xfrom/roi_align creating home/yhr/download/PANet-master/lib/modeling/roi_xfrom/roi_align/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 _roi_align.c -o ./_roi_align.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 _roi_align.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: 没有那个文件或目录

include "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 36, in ffi.build() File "/home/yhr/download/PANet-master/venv/lib/python3.6/site-packages/torch/utils/ffi/init.py", line 184, in build _build_extension(ffi, cffi_wrapper_name, target_dir, verbose) File "/home/yhr/download/PANet-master/venv/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 "/home/yhr/download/PANet-master/venv/lib/python3.6/site-packages/cffi/api.py", line 697, in compile compiler_verbose=verbose, debug=debug, **kwds) File "/home/yhr/download/PANet-master/venv/lib/python3.6/site-packages/cffi/recompiler.py", line 1520, in recompile compiler_verbose, debug) File "/home/yhr/download/PANet-master/venv/lib/python3.6/site-packages/cffi/ffiplatform.py", line 22, in compile outputfilename = _build(tmpdir, ext, compiler_verbose, debug) File "/home/yhr/download/PANet-master/venv/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 'x86_64-linux-gnu-gcc' failed with exit status 1

Terry-Kusunoki-Martin commented 5 years ago

@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 ffi.build() File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/site-packages/torch/utils/ffi/init.py", line 189, in build _build_extension(ffi, cffi_wrapper_name, target_dir, verbose) File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/site-packages/torch/utils/ffi/init.py", line 111, in _build_extension outfile = ffi.compile(tmpdir=tmpdir, verbose=verbose, target=libname) File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/site-packages/cffi/api.py", line 697, in compile compiler_verbose=verbose, debug=debug, **kwds) File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/site-packages/cffi/recompiler.py", line 1520, in recompile compiler_verbose, debug) File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/site-packages/cffi/ffiplatform.py", line 22, in compile outputfilename = _build(tmpdir, ext, compiler_verbose, debug) File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/site-packages/cffi/ffiplatform.py", line 58, in _build raise VerificationError('%s: %s' % (e.class.name, e)) cffi.error.VerificationError: LinkError: command 'gcc' failed with exit status 1 Compiling roi pooling kernels by nvcc... ./make.sh: line 30: nvcc: command not found Including CUDA code. /home/tkmartin/Detectron.pytorch/lib/model/roi_pooling generating /tmp/tmp1w95osqz/_roi_pooling.c setting the current directory to '/tmp/tmp1w95osqz' running build_ext building '_roi_pooling' 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/roi_pooling creating home/tkmartin/Detectron.pytorch/lib/model/roi_pooling/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 _roi_pooling.c -o ./_roi_pooling.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/roi_pooling/src/roi_pooling.c -o ./home/tkmartin/Detectron.pytorch/lib/model/roi_pooling/src/roi_pooling.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/roi_pooling/src/roi_pooling_cuda.c -o ./home/tkmartin/Detectron.pytorch/lib/model/roi_pooling/src/roi_pooling_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_pooling.o ./home/tkmartin/Detectron.pytorch/lib/model/roi_pooling/src/roi_pooling.o ./home/tkmartin/Detectron.pytorch/lib/model/roi_pooling/src/roi_pooling_cuda.o /home/tkmartin/Detectron.pytorch/lib/model/roi_pooling/src/roi_pooling.cu.o -o ./_roi_pooling.so gcc: error: /home/tkmartin/Detectron.pytorch/lib/model/roi_pooling/src/roi_pooling.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 35, in ffi.build() File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/site-packages/torch/utils/ffi/init.py", line 189, in build _build_extension(ffi, cffi_wrapper_name, target_dir, verbose) File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/site-packages/torch/utils/ffi/init.py", line 111, in _build_extension outfile = ffi.compile(tmpdir=tmpdir, verbose=verbose, target=libname) File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/site-packages/cffi/api.py", line 697, in compile compiler_verbose=verbose, debug=debug, **kwds) File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/site-packages/cffi/recompiler.py", line 1520, in recompile compiler_verbose, debug) File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/site-packages/cffi/ffiplatform.py", line 22, in compile outputfilename = _build(tmpdir, ext, compiler_verbose, debug) File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/site-packages/cffi/ffiplatform.py", line 58, in _build raise VerificationError('%s: %s' % (e.class.name, e)) cffi.error.VerificationError: LinkError: command 'gcc' failed with exit status 1 Compiling roi crop kernels by nvcc... ./make.sh: line 48: nvcc: command not found Including CUDA code. /home/tkmartin/Detectron.pytorch/lib/model/roi_crop generating /tmp/tmp4lww4c6o/_roi_crop.c setting the current directory to '/tmp/tmp4lww4c6o' running build_ext building '_roi_crop' 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/roi_crop creating home/tkmartin/Detectron.pytorch/lib/model/roi_crop/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 _roi_crop.c -o ./_roi_crop.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/roi_crop/src/roi_crop.c -o ./home/tkmartin/Detectron.pytorch/lib/model/roi_crop/src/roi_crop.o -std=c99 /home/tkmartin/Detectron.pytorch/lib/model/roi_crop/src/roi_crop.c: In function ‘BilinearSamplerBHWD_updateGradInput’: /home/tkmartin/Detectron.pytorch/lib/model/roi_crop/src/roi_crop.c:190:14: warning: unused variable ‘inBottomRight’ [-Wunused-variable] real inBottomRight=0; ^~~~~ /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 ffi.build() File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/site-packages/torch/utils/ffi/init.py", line 189, in build _build_extension(ffi, cffi_wrapper_name, target_dir, verbose) File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/site-packages/torch/utils/ffi/init.py", line 111, in _build_extension outfile = ffi.compile(tmpdir=tmpdir, verbose=verbose, target=libname) File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/site-packages/cffi/api.py", line 697, in compile compiler_verbose=verbose, debug=debug, **kwds) File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/site-packages/cffi/recompiler.py", line 1520, in recompile compiler_verbose, debug) File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/site-packages/cffi/ffiplatform.py", line 22, in compile outputfilename = _build(tmpdir, ext, compiler_verbose, debug) File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/site-packages/cffi/ffiplatform.py", line 58, in _build raise VerificationError('%s: %s' % (e.class.name, e)) cffi.error.VerificationError: LinkError: command 'gcc' failed with exit status 1 Compiling roi align kernels by nvcc... ./make.sh: line 57: nvcc: command not found Including CUDA code. /home/tkmartin/Detectron.pytorch/lib/modeling/roi_xfrom/roi_align generating /tmp/tmpxtlcgof5/_roi_align.c setting the current directory to '/tmp/tmpxtlcgof5' running build_ext building '_roi_align' extension creating home creating home/tkmartin creating home/tkmartin/Detectron.pytorch creating home/tkmartin/Detectron.pytorch/lib creating home/tkmartin/Detectron.pytorch/lib/modeling creating home/tkmartin/Detectron.pytorch/lib/modeling/roi_xfrom creating home/tkmartin/Detectron.pytorch/lib/modeling/roi_xfrom/roi_align creating home/tkmartin/Detectron.pytorch/lib/modeling/roi_xfrom/roi_align/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 _roi_align.c -o ./_roi_align.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/modeling/roi_xfrom/roi_align/src/roi_align_cuda.c -o ./home/tkmartin/Detectron.pytorch/lib/modeling/roi_xfrom/roi_align/src/roi_align_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_align.o ./home/tkmartin/Detectron.pytorch/lib/modeling/roi_xfrom/roi_align/src/roi_align_cuda.o /home/tkmartin/Detectron.pytorch/lib/modeling/roi_xfrom/roi_align/src/roi_align_kernel.cu.o -o ./_roi_align.so gcc: error: /home/tkmartin/Detectron.pytorch/lib/modeling/roi_xfrom/roi_align/src/roi_align_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 ffi.build() File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/site-packages/torch/utils/ffi/init.py", line 189, in build _build_extension(ffi, cffi_wrapper_name, target_dir, verbose) File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/site-packages/torch/utils/ffi/init.py", line 111, in _build_extension outfile = ffi.compile(tmpdir=tmpdir, verbose=verbose, target=libname) File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/site-packages/cffi/api.py", line 697, in compile compiler_verbose=verbose, debug=debug, **kwds) File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/site-packages/cffi/recompiler.py", line 1520, in recompile compiler_verbose, debug) File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/site-packages/cffi/ffiplatform.py", line 22, in compile outputfilename = _build(tmpdir, ext, compiler_verbose, debug) File "/home/tkmartin/miniconda3/envs/py35/lib/python3.5/site-packages/cffi/ffiplatform.py", line 58, in _build raise VerificationError('%s: %s' % (e.class.name, e)) cffi.error.VerificationError: LinkError: command 'gcc' failed with exit status 1

SISTMrL commented 5 years ago

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 ffi.build() File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/site-packages/torch/utils/ffi/init.py", line 184, in build _build_extension(ffi, cffi_wrapper_name, target_dir, verbose) File "/root/zenghy/anaconda3/envs/L-torch/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 "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/site-packages/cffi/api.py", line 723, in compile compiler_verbose=verbose, debug=debug, **kwds) File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/site-packages/cffi/recompiler.py", line 1526, in recompile compiler_verbose, debug) File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/site-packages/cffi/ffiplatform.py", line 22, in compile outputfilename = _build(tmpdir, ext, compiler_verbose, debug) File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/site-packages/cffi/ffiplatform.py", line 58, in _build raise VerificationError('%s: %s' % (e.class.name, e)) cffi.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. /root/liuzhichao/mask-rcnn.pytorch/lib/model/roi_pooling generating /tmp/tmp32rxatrm/_roi_pooling.c setting the current directory to '/tmp/tmp32rxatrm' running build_ext building '_roi_pooling' 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/roi_pooling creating root/liuzhichao/mask-rcnn.pytorch/lib/model/roi_pooling/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 _roi_pooling.c -o ./_roi_pooling.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 _roi_pooling.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 35, in ffi.build() File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/site-packages/torch/utils/ffi/init.py", line 184, in build _build_extension(ffi, cffi_wrapper_name, target_dir, verbose) File "/root/zenghy/anaconda3/envs/L-torch/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 "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/site-packages/cffi/api.py", line 723, in compile compiler_verbose=verbose, debug=debug, **kwds) File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/site-packages/cffi/recompiler.py", line 1526, in recompile compiler_verbose, debug) File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/site-packages/cffi/ffiplatform.py", line 22, in compile outputfilename = _build(tmpdir, ext, compiler_verbose, debug) File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/site-packages/cffi/ffiplatform.py", line 58, in _build raise VerificationError('%s: %s' % (e.class.name, e)) cffi.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. /root/liuzhichao/mask-rcnn.pytorch/lib/model/roi_crop generating /tmp/tmpzvnat8os/_roi_crop.c setting the current directory to '/tmp/tmpzvnat8os' running build_ext building '_roi_crop' 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/roi_crop creating root/liuzhichao/mask-rcnn.pytorch/lib/model/roi_crop/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 _roi_crop.c -o ./_roi_crop.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 _roi_crop.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 36, in ffi.build() File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/site-packages/torch/utils/ffi/init.py", line 184, in build _build_extension(ffi, cffi_wrapper_name, target_dir, verbose) File "/root/zenghy/anaconda3/envs/L-torch/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 "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/site-packages/cffi/api.py", line 723, in compile compiler_verbose=verbose, debug=debug, **kwds) File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/site-packages/cffi/recompiler.py", line 1526, in recompile compiler_verbose, debug) File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/site-packages/cffi/ffiplatform.py", line 22, in compile outputfilename = _build(tmpdir, ext, compiler_verbose, debug) File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/site-packages/cffi/ffiplatform.py", line 58, in _build raise VerificationError('%s: %s' % (e.class.name, e)) cffi.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. /root/liuzhichao/mask-rcnn.pytorch/lib/modeling/roi_xfrom/roi_align generating /tmp/tmpo02ia2yk/_roi_align.c setting the current directory to '/tmp/tmpo02ia2yk' running build_ext building '_roi_align' 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/modeling creating root/liuzhichao/mask-rcnn.pytorch/lib/modeling/roi_xfrom creating root/liuzhichao/mask-rcnn.pytorch/lib/modeling/roi_xfrom/roi_align creating root/liuzhichao/mask-rcnn.pytorch/lib/modeling/roi_xfrom/roi_align/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 _roi_align.c -o ./_roi_align.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 _roi_align.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 36, in ffi.build() File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/site-packages/torch/utils/ffi/init.py", line 184, in build _build_extension(ffi, cffi_wrapper_name, target_dir, verbose) File "/root/zenghy/anaconda3/envs/L-torch/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 "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/site-packages/cffi/api.py", line 723, in compile compiler_verbose=verbose, debug=debug, **kwds) File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/site-packages/cffi/recompiler.py", line 1526, in recompile compiler_verbose, debug) File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/site-packages/cffi/ffiplatform.py", line 22, in compile outputfilename = _build(tmpdir, ext, compiler_verbose, debug) File "/root/zenghy/anaconda3/envs/L-torch/lib/python3.6/site-packages/cffi/ffiplatform.py", line 58, in _build raise VerificationError('%s: %s' % (e.class.name, e)) cffi.VerificationError: CompileError: command 'gcc' failed with exit status 1

mugnaidaniele commented 5 years ago

@Omar-Aboelsoud How do you setup Detectron on Colab? Can you show the steps tha you follow? Thanks

Iamal1 commented 5 years ago

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

HYPJUDY commented 5 years ago

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-/

Zyt-wenwne commented 3 years ago

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 ffi.build() File "/home/zytr/anaconda3/envs/torch0.4/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/zytr/anaconda3/envs/torch0.4/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/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/api.py", line 727, in compile compiler_verbose=verbose, debug=debug, **kwds) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/recompiler.py", line 1565, in recompile compiler_verbose, debug) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/ffiplatform.py", line 22, in compile outputfilename = _build(tmpdir, ext, compiler_verbose, debug) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/ffiplatform.py", line 58, in _build raise VerificationError('%s: %s' % (e.class.name, e)) cffi.VerificationError: CompileError: command 'gcc' failed with exit status 1 Compiling roi pooling kernels by nvcc... nvcc fatal : Unsupported gpu architecture 'compute_75' Including CUDA code. /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roipooling generating /tmp/tmpb93u5e7/_roipooling.c setting the current directory to '/tmp/tmpb93u5e7' running build_ext building '_roi_pooling' 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/roi_pooling creating home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_pooling/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 _roi_pooling.c -o ./_roi_pooling.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/roi_poong/src/roi_pooling.c -o ./home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_pooling/src/roi_pooling.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/roi_poong/src/roi_pooling_cuda.c -o ./home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_pooling/src/roi_pooling_cuda.o -std=c99 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 ./_roi_pooling.o ./home/zytr/桌面/fsod/FSOcode-master/lib/model/roi_pooling/src/roi_pooling.o ./home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_pooling/src/roi_pooling_cuda.o /home/zytr/桌面/fsod/FSOD-code-master/lib/l/roi_pooling/src/roi_pooling.cu.o -L/home/zytr/anaconda3/envs/torch0.4/lib -lpython3.6m -o ./_roi_pooling.so gcc: error: /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_pooling/src/roi_pooling.cu.o: 没有那个文件或目录 Traceback (most recent call last): File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/unixccompiler.py", line 196, in link self.spawn(linker + ld_args) 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 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 ffi.build() File "/home/zytr/anaconda3/envs/torch0.4/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/zytr/anaconda3/envs/torch0.4/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/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/api.py", line 727, in compile compiler_verbose=verbose, debug=debug, **kwds) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/recompiler.py", line 1565, in recompile compiler_verbose, debug) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/ffiplatform.py", line 22, in compile outputfilename = _build(tmpdir, ext, compiler_verbose, debug) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/ffiplatform.py", line 58, in _build raise VerificationError('%s: %s' % (e.class.name, e)) cffi.VerificationError: LinkError: command 'gcc' failed with exit status 1 Compiling roi crop kernels by nvcc... nvcc fatal : Unsupported gpu architecture 'compute_75' Including CUDA code. /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop generating /tmp/tmp4u98ttor/_roi_crop.c setting the current directory to '/tmp/tmp4u98ttor' running build_ext building '_roi_crop' 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/roi_crop creating home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/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 _roi_crop.c -o ./_roi_crop.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/roi_crosrc/roi_crop.c -o ./home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop.o -std=c99 /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop.c: In function ‘BilinearSamplerBHWD_updateGradInput’: /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop.c:190:14: warning: unused variable ‘inBottomRight’ [-Wunused-variable] real inBottomRight=0; ^ /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop.c:189:14: warning: unused variable ‘inBottomLeft’ [-Wunused-variable] real inBottomLeft=0; ^ /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop.c:188:14: warning: unused variable ‘inTopRight’ [-Wunused-variable] real inTopRight=0; ^ /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop.c:187:14: warning: unused variable ‘inTopLeft’ [-Wunused-variable] real inTopLeft=0; ^ /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop.c:186:14: warning: unused variable ‘v’ [-Wunused-variable] real v=0; ^ /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop.c: In function ‘BilinearSamplerBCHW_updateGradInput’: /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop.c:440:14: warning: unused variable ‘inBottomRight’ [-Wunused-variable] real inBottomRight=0; ^ /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop.c:439:14: warning: unused variable ‘inBottomLeft’ [-Wunused-variable] real inBottomLeft=0; ^ /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop.c:438:14: warning: unused variable ‘inTopRight’ [-Wunused-variable] real inTopRight=0; ^ /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop.c:437:14: warning: unused variable ‘inTopLeft’ [-Wunused-variable] real inTopLeft=0; ^ /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop.c:436:14: warning: unused variable ‘v’ [-Wunused-variable] real v=0; ^ 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/roi_crosrc/roi_crop_cuda.c -o ./home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop_cuda.o -std=c99 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 ./_roi_crop.o ./home/zytr/桌面/fsod/FSOD-ce-master/lib/model/roi_crop/src/roi_crop.o ./home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop_cuda.o /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/roi_crop_cuda_kernel.cu.o -L/home/zytr/anaconda3/envs/torch0.4/lib -lpython3.6m -o ./_roi_crop.so gcc: error: /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop_cuda_kernel.cu.o: 没有那个文件或目录 Traceback (most recent call last): File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/unixccompiler.py", line 196, in link self.spawn(linker + ld_args) 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 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 ffi.build() File "/home/zytr/anaconda3/envs/torch0.4/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/zytr/anaconda3/envs/torch0.4/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/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/api.py", line 727, in compile compiler_verbose=verbose, debug=debug, **kwds) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/recompiler.py", line 1565, in recompile compiler_verbose, debug) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/ffiplatform.py", line 22, in compile outputfilename = _build(tmpdir, ext, compiler_verbose, debug) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/ffiplatform.py", line 58, in _build raise VerificationError('%s: %s' % (e.class.name, e)) cffi.VerificationError: LinkError: command 'gcc' failed with exit status 1 Compiling roi align kernels by nvcc... nvcc fatal : Unsupported gpu architecture 'compute_75' Including CUDA code. /home/zytr/桌面/fsod/FSOD-code-master/lib/modeling/roi_xfrom/roi_align generating /tmp/tmp8tmfy962/_roi_align.c setting the current directory to '/tmp/tmp8tmfy962' running build_ext building '_roi_align' 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/modeling creating home/zytr/桌面/fsod/FSOD-code-master/lib/modeling/roi_xfrom creating home/zytr/桌面/fsod/FSOD-code-master/lib/modeling/roi_xfrom/roi_align creating home/zytr/桌面/fsod/FSOD-code-master/lib/modeling/roi_xfrom/roi_align/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 _roi_align.c -o ./_roi_align.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/modeling/roi_rom/roi_align/src/roi_align_cuda.c -o ./home/zytr/桌面/fsod/FSOD-code-master/lib/modeling/roi_xfrom/roi_align/src/roi_align_cuda.o -std=c99 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 ./_roi_align.o ./home/zytr/桌面/fsod/FSOD-de-master/lib/modeling/roi_xfrom/roi_align/src/roi_align_cuda.o /home/zytr/桌面/fsod/FSOD-code-master/lib/modeling/roi_xfrom/roi_align/src/roi_align_kernel.cu.o -L/home/zytr/anacda3/envs/torch0.4/lib -lpython3.6m -o ./_roi_align.so gcc: error: /home/zytr/桌面/fsod/FSOD-code-master/lib/modeling/roi_xfrom/roi_align/src/roi_align_kernel.cu.o: 没有那个文件或目录 Traceback (most recent call last): File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/unixccompiler.py", line 196, in link self.spawn(linker + ld_args) 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 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 ffi.build() File "/home/zytr/anaconda3/envs/torch0.4/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/zytr/anaconda3/envs/torch0.4/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/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/api.py", line 727, in compile compiler_verbose=verbose, debug=debug, **kwds) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/recompiler.py", line 1565, in recompile compiler_verbose, debug) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/ffiplatform.py", line 22, in compile outputfilename = _build(tmpdir, ext, compiler_verbose, debug) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/ffiplatform.py", line 58, in _build raise VerificationError('%s: %s' % (e.class.name, e)) cffi.VerificationError: LinkError: command 'gcc' failed with exit status 1 (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 : 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/tmpy_tcr133/_nms.c setting the current directory to '/tmp/tmpy_tcr133' 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 ffi.build() File "/home/zytr/anaconda3/envs/torch0.4/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/zytr/anaconda3/envs/torch0.4/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/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/api.py", line 727, in compile compiler_verbose=verbose, debug=debug, **kwds) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/recompiler.py", line 1565, in recompile compiler_verbose, debug) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/ffiplatform.py", line 22, in compile outputfilename = _build(tmpdir, ext, compiler_verbose, debug) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/ffiplatform.py", line 58, in _build raise VerificationError('%s: %s' % (e.class.name, e)) cffi.VerificationError: CompileError: command 'gcc' failed with exit status 1 Compiling roi pooling kernels by nvcc... nvcc fatal : Unsupported gpu architecture 'compute_75' Including CUDA code. /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_pooling generating /tmp/tmp89vn_yvs/_roi_pooling.c setting the current directory to '/tmp/tmp89vn_yvs' running build_ext building '_roi_pooling' 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/roi_pooling creating home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_pooling/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 _roi_pooling.c -o ./_roi_pooling.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/roi_poong/src/roi_pooling.c -o ./home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_pooling/src/roi_pooling.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/roi_poong/src/roi_pooling_cuda.c -o ./home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_pooling/src/roi_pooling_cuda.o -std=c99 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 ./_roi_pooling.o ./home/zytr/桌面/fsod/FSOcode-master/lib/model/roi_pooling/src/roi_pooling.o ./home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_pooling/src/roi_pooling_cuda.o /home/zytr/桌面/fsod/FSOD-code-master/lib/l/roi_pooling/src/roi_pooling.cu.o -L/home/zytr/anaconda3/envs/torch0.4/lib -lpython3.6m -o ./_roi_pooling.so gcc: error: /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_pooling/src/roi_pooling.cu.o: 没有那个文件或目录 Traceback (most recent call last): File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/unixccompiler.py", line 196, in link self.spawn(linker + ld_args) 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 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 ffi.build() File "/home/zytr/anaconda3/envs/torch0.4/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/zytr/anaconda3/envs/torch0.4/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/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/api.py", line 727, in compile compiler_verbose=verbose, debug=debug, **kwds) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/recompiler.py", line 1565, in recompile compiler_verbose, debug) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/ffiplatform.py", line 22, in compile outputfilename = _build(tmpdir, ext, compiler_verbose, debug) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/ffiplatform.py", line 58, in _build raise VerificationError('%s: %s' % (e.class.name, e)) cffi.VerificationError: LinkError: command 'gcc' failed with exit status 1 Compiling roi crop kernels by nvcc... nvcc fatal : Unsupported gpu architecture 'compute_75' Including CUDA code. /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop generating /tmp/tmpdkajntf9/_roi_crop.c setting the current directory to '/tmp/tmpdkajntf9' running build_ext building '_roi_crop' 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/roi_crop creating home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/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 _roi_crop.c -o ./_roi_crop.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/roi_crosrc/roi_crop.c -o ./home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop.o -std=c99 /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop.c: In function ‘BilinearSamplerBHWD_updateGradInput’: /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop.c:190:14: warning: unused variable ‘inBottomRight’ [-Wunused-variable] real inBottomRight=0; ^ /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop.c:189:14: warning: unused variable ‘inBottomLeft’ [-Wunused-variable] real inBottomLeft=0; ^ /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop.c:188:14: warning: unused variable ‘inTopRight’ [-Wunused-variable] real inTopRight=0; ^ /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop.c:187:14: warning: unused variable ‘inTopLeft’ [-Wunused-variable] real inTopLeft=0; ^ /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop.c:186:14: warning: unused variable ‘v’ [-Wunused-variable] real v=0; ^ /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop.c: In function ‘BilinearSamplerBCHW_updateGradInput’: /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop.c:440:14: warning: unused variable ‘inBottomRight’ [-Wunused-variable] real inBottomRight=0; ^ /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop.c:439:14: warning: unused variable ‘inBottomLeft’ [-Wunused-variable] real inBottomLeft=0; ^ /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop.c:438:14: warning: unused variable ‘inTopRight’ [-Wunused-variable] real inTopRight=0; ^ /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop.c:437:14: warning: unused variable ‘inTopLeft’ [-Wunused-variable] real inTopLeft=0; ^ /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop.c:436:14: warning: unused variable ‘v’ [-Wunused-variable] real v=0; ^ 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/roi_crosrc/roi_crop_cuda.c -o ./home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop_cuda.o -std=c99 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 ./_roi_crop.o ./home/zytr/桌面/fsod/FSOD-ce-master/lib/model/roi_crop/src/roi_crop.o ./home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop_cuda.o /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/roi_crop_cuda_kernel.cu.o -L/home/zytr/anaconda3/envs/torch0.4/lib -lpython3.6m -o ./_roi_crop.so gcc: error: /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop_cuda_kernel.cu.o: 没有那个文件或目录 Traceback (most recent call last): File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/unixccompiler.py", line 196, in link self.spawn(linker + ld_args) 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 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 ffi.build() File "/home/zytr/anaconda3/envs/torch0.4/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/zytr/anaconda3/envs/torch0.4/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/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/api.py", line 727, in compile compiler_verbose=verbose, debug=debug, **kwds) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/recompiler.py", line 1565, in recompile compiler_verbose, debug) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/ffiplatform.py", line 22, in compile outputfilename = _build(tmpdir, ext, compiler_verbose, debug) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/ffiplatform.py", line 58, in _build raise VerificationError('%s: %s' % (e.class.name, e)) cffi.VerificationError: LinkError: command 'gcc' failed with exit status 1 Compiling roi align kernels by nvcc... nvcc fatal : Unsupported gpu architecture 'compute_75' Including CUDA code. /home/zytr/桌面/fsod/FSOD-code-master/lib/modeling/roi_xfrom/roi_align generating /tmp/tmpv_ntvqmz/_roi_align.c setting the current directory to '/tmp/tmpv_ntvqmz' running build_ext building '_roi_align' 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/modeling creating home/zytr/桌面/fsod/FSOD-code-master/lib/modeling/roi_xfrom creating home/zytr/桌面/fsod/FSOD-code-master/lib/modeling/roi_xfrom/roi_align creating home/zytr/桌面/fsod/FSOD-code-master/lib/modeling/roi_xfrom/roi_align/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 _roi_align.c -o ./_roi_align.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/modeling/roi_rom/roi_align/src/roi_align_cuda.c -o ./home/zytr/桌面/fsod/FSOD-code-master/lib/modeling/roi_xfrom/roi_align/src/roi_align_cuda.o -std=c99 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 ./_roi_align.o ./home/zytr/桌面/fsod/FSOD-de-master/lib/modeling/roi_xfrom/roi_align/src/roi_align_cuda.o /home/zytr/桌面/fsod/FSOD-code-master/lib/modeling/roi_xfrom/roi_align/src/roi_align_kernel.cu.o -L/home/zytr/anacda3/envs/torch0.4/lib -lpython3.6m -o ./_roi_align.so gcc: error: /home/zytr/桌面/fsod/FSOD-code-master/lib/modeling/roi_xfrom/roi_align/src/roi_align_kernel.cu.o: 没有那个文件或目录 Traceback (most recent call last): File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/unixccompiler.py", line 196, in link self.spawn(linker + ld_args) 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 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 ffi.build() File "/home/zytr/anaconda3/envs/torch0.4/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/zytr/anaconda3/envs/torch0.4/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/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/api.py", line 727, in compile compiler_verbose=verbose, debug=debug, kwds) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/recompiler.py", line 1565, in recompile compiler_verbose, debug) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/ffiplatform.py", line 22, in compile outputfilename = _build(tmpdir, ext, compiler_verbose, debug) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/ffiplatform.py", line 58, in _build raise VerificationError('%s: %s' % (e.class.name, e)) cffi.VerificationError: LinkError: command 'gcc' failed with exit status 1 (torch0.4) zytr@zytr-MS-7B23:~/桌面/fsod/FSOD-code-master/lib$ pip install cpython Looking in indexes: https://mirrors.aliyun.com/pypi/simple/ Collecting cpython Downloading https://mirrors.aliyun.com/pypi/packages/91/80/d01f39dd8e742d4548e497a28f70a5c556f7803f80598520f7f31096132a/cPython-0.0.6.tar.gz (4.7 kB) Collecting pymongo Downloading https://mirrors.aliyun.com/pypi/packages/11/42/5c7e87218e0f673a6212107c697ae5cb43769b458f838e5b029b1d2bf90d/pymongo-3.11.3-cp36-cp36m-manylinux2014_x86_64.whl (509 kB) |████████████████████████████████| 509 kB 13.5 MB/s Collecting requests Downloading https://mirrors.aliyun.com/pypi/packages/29/c1/24814557f1d22c56d50280771a17307e6bf87b70727d975fd6b2ce6b014a/requests-2.25.1-py2.py3-none-any.whl (61 kB) |████████████████████████████████| 61 kB 988 kB/s Collecting urllib3<1.27,>=1.21.1 Downloading https://mirrors.aliyun.com/pypi/packages/09/c6/d3e3abe5b4f4f16cf0dfc9240ab7ce10c2baa0e268989a4e3ec19e90c84e/urllib3-1.26.4-py2.py3-none-any.whl (153 kB) |████████████████████████████████| 153 kB 17.7 MB/s Collecting chardet<5,>=3.0.2 Downloading https://mirrors.aliyun.com/pypi/packages/19/c7/fa589626997dd07bd87d9269342ccb74b1720384a4d739a1872bd84fbe68/chardet-4.0.0-py2.py3-none-any.whl (178 kB) |████████████████████████████████| 178 kB 13.3 MB/s Collecting certifi>=2017.4.17 Downloading https://mirrors.aliyun.com/pypi/packages/5e/a0/5f06e1e1d463903cf0c0eebeb751791119ed7a4b3737fdc9a77f1cdfb51f/certifi-2020.12.5-py2.py3-none-any.whl (147 kB) |████████████████████████████████| 147 kB 13.7 MB/s Collecting idna<3,>=2.5 Downloading https://mirrors.aliyun.com/pypi/packages/a2/38/928ddce2273eaa564f6f50de919327bf3a00f091b5baba8dfa9460f3a8a8/idna-2.10-py2.py3-none-any.whl (58 kB) |████████████████████████████████| 58 kB 655 kB/s Building wheels for collected packages: cpython Building wheel for cpython (setup.py) ... error ERROR: Command errored out with exit status 1: command: /home/zytr/anaconda3/envs/torch0.4/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-993h2ip2/cpython_0d21a53cf4eb4718b29e4413ac798cb7/setup.py'"'"'; file='"'"'/tmp/pip-install-993h2ip2/cpython_0d21a53cf4eb4718b29e4413ac798cb7/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-k4tqzep1 cwd: /tmp/pip-install-993h2ip2/cpython_0d21a53cf4eb4718b29e4413ac798cb7/ Complete output (25 lines): Traceback (most recent call last): File "", line 1, in File "/tmp/pip-install-993h2ip2/cpython_0d21a53cf4eb4718b29e4413ac798cb7/setup.py", line 28, in install_requires = ["pymongo", "requests"] #这个项目需要的第三方库 File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/setuptools/init.py", line 153, in setup return distutils.core.setup(attrs) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/core.py", line 134, in setup ok = dist.parse_command_line() File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/dist.py", line 472, in parse_command_line args = self._parse_command_opts(parser, args) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/setuptools/dist.py", line 951, in _parse_command_opts nargs = _Distribution._parse_command_opts(self, parser, args) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/dist.py", line 528, in _parse_command_opts cmd_class = self.get_command_class(command) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/setuptools/dist.py", line 790, in get_command_class self.cmdclass[command] = cmdclass = ep.load() File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/pkg_resources/init.py", line 2450, in load return self.resolve() File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/pkg_resources/init.py", line 2456, in resolve module = import(self.module_name, fromlist=['name'], level=0) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/wheel/bdist_wheel.py", line 24, in from .pep425tags import get_abbr_impl, get_impl_ver, get_abi_tag, get_platform File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/wheel/pep425tags.py", line 10, in from .macosx_libfile import extract_macosx_min_system_version ModuleNotFoundError: No module named 'wheel.macosx_libfile'

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 ffi.build() File "/home/zytr/anaconda3/envs/torch0.4/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/zytr/anaconda3/envs/torch0.4/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/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/api.py", line 727, in compile compiler_verbose=verbose, debug=debug, **kwds) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/recompiler.py", line 1565, in recompile compiler_verbose, debug) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/ffiplatform.py", line 22, in compile outputfilename = _build(tmpdir, ext, compiler_verbose, debug) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/ffiplatform.py", line 58, in _build raise VerificationError('%s: %s' % (e.class.name, e)) cffi.VerificationError: CompileError: command 'gcc' failed with exit status 1 Compiling roi pooling 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/roi_pooling generating /tmp/tmppoqm_crs/_roi_pooling.c setting the current directory to '/tmp/tmppoqm_crs' running build_ext building '_roi_pooling' 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/roi_pooling creating home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_pooling/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 _roi_pooling.c -o ./_roi_pooling.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/roi_poong/src/roi_pooling.c -o ./home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_pooling/src/roi_pooling.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/roi_poong/src/roi_pooling_cuda.c -o ./home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_pooling/src/roi_pooling_cuda.o -std=c99 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 ./_roi_pooling.o ./home/zytr/桌面/fsod/FSOcode-master/lib/model/roi_pooling/src/roi_pooling.o ./home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_pooling/src/roi_pooling_cuda.o /home/zytr/桌面/fsod/FSOD-code-master/lib/l/roi_pooling/src/roi_pooling.cu.o -L/home/zytr/anaconda3/envs/torch0.4/lib -lpython3.6m -o ./_roi_pooling.so gcc: error: /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_pooling/src/roi_pooling.cu.o: 没有那个文件或目录 Traceback (most recent call last): File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/unixccompiler.py", line 196, in link self.spawn(linker + ld_args) 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 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 ffi.build() File "/home/zytr/anaconda3/envs/torch0.4/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/zytr/anaconda3/envs/torch0.4/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/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/api.py", line 727, in compile compiler_verbose=verbose, debug=debug, **kwds) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/recompiler.py", line 1565, in recompile compiler_verbose, debug) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/ffiplatform.py", line 22, in compile outputfilename = _build(tmpdir, ext, compiler_verbose, debug) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/ffiplatform.py", line 58, in _build raise VerificationError('%s: %s' % (e.class.name, e)) cffi.VerificationError: LinkError: command 'gcc' failed with exit status 1 Compiling roi crop 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/roi_crop generating /tmp/tmpu_iu5au9/_roi_crop.c setting the current directory to '/tmp/tmpu_iu5au9' running build_ext building '_roi_crop' 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/roi_crop creating home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/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 _roi_crop.c -o ./_roi_crop.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/roi_crosrc/roi_crop.c -o ./home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop.o -std=c99 /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop.c: In function ‘BilinearSamplerBHWD_updateGradInput’: /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop.c:190:14: warning: unused variable ‘inBottomRight’ [-Wunused-variable] real inBottomRight=0; ^ /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop.c:189:14: warning: unused variable ‘inBottomLeft’ [-Wunused-variable] real inBottomLeft=0; ^ /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop.c:188:14: warning: unused variable ‘inTopRight’ [-Wunused-variable] real inTopRight=0; ^ /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop.c:187:14: warning: unused variable ‘inTopLeft’ [-Wunused-variable] real inTopLeft=0; ^ /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop.c:186:14: warning: unused variable ‘v’ [-Wunused-variable] real v=0; ^ /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop.c: In function ‘BilinearSamplerBCHW_updateGradInput’: /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop.c:440:14: warning: unused variable ‘inBottomRight’ [-Wunused-variable] real inBottomRight=0; ^ /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop.c:439:14: warning: unused variable ‘inBottomLeft’ [-Wunused-variable] real inBottomLeft=0; ^ /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop.c:438:14: warning: unused variable ‘inTopRight’ [-Wunused-variable] real inTopRight=0; ^ /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop.c:437:14: warning: unused variable ‘inTopLeft’ [-Wunused-variable] real inTopLeft=0; ^ /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop.c:436:14: warning: unused variable ‘v’ [-Wunused-variable] real v=0; ^ 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/roi_crosrc/roi_crop_cuda.c -o ./home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop_cuda.o -std=c99 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 ./_roi_crop.o ./home/zytr/桌面/fsod/FSOD-ce-master/lib/model/roi_crop/src/roi_crop.o ./home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop_cuda.o /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/roi_crop_cuda_kernel.cu.o -L/home/zytr/anaconda3/envs/torch0.4/lib -lpython3.6m -o ./_roi_crop.so gcc: error: /home/zytr/桌面/fsod/FSOD-code-master/lib/model/roi_crop/src/roi_crop_cuda_kernel.cu.o: 没有那个文件或目录 Traceback (most recent call last): File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/unixccompiler.py", line 196, in link self.spawn(linker + ld_args) 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 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 ffi.build() File "/home/zytr/anaconda3/envs/torch0.4/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/zytr/anaconda3/envs/torch0.4/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/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/api.py", line 727, in compile compiler_verbose=verbose, debug=debug, **kwds) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/recompiler.py", line 1565, in recompile compiler_verbose, debug) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/ffiplatform.py", line 22, in compile outputfilename = _build(tmpdir, ext, compiler_verbose, debug) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/ffiplatform.py", line 58, in _build raise VerificationError('%s: %s' % (e.class.name, e)) cffi.VerificationError: LinkError: command 'gcc' failed with exit status 1 Compiling roi align 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/modeling/roi_xfrom/roi_align generating /tmp/tmpb4ldjxb7/_roi_align.c setting the current directory to '/tmp/tmpb4ldjxb7' running build_ext building '_roi_align' 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/modeling creating home/zytr/桌面/fsod/FSOD-code-master/lib/modeling/roi_xfrom creating home/zytr/桌面/fsod/FSOD-code-master/lib/modeling/roi_xfrom/roi_align creating home/zytr/桌面/fsod/FSOD-code-master/lib/modeling/roi_xfrom/roi_align/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 _roi_align.c -o ./_roi_align.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/modeling/roi_rom/roi_align/src/roi_align_cuda.c -o ./home/zytr/桌面/fsod/FSOD-code-master/lib/modeling/roi_xfrom/roi_align/src/roi_align_cuda.o -std=c99 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 ./_roi_align.o ./home/zytr/桌面/fsod/FSOD-de-master/lib/modeling/roi_xfrom/roi_align/src/roi_align_cuda.o /home/zytr/桌面/fsod/FSOD-code-master/lib/modeling/roi_xfrom/roi_align/src/roi_align_kernel.cu.o -L/home/zytr/anacda3/envs/torch0.4/lib -lpython3.6m -o ./_roi_align.so gcc: error: /home/zytr/桌面/fsod/FSOD-code-master/lib/modeling/roi_xfrom/roi_align/src/roi_align_kernel.cu.o: 没有那个文件或目录 Traceback (most recent call last): File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/distutils/unixccompiler.py", line 196, in link self.spawn(linker + ld_args) 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 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 ffi.build() File "/home/zytr/anaconda3/envs/torch0.4/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/zytr/anaconda3/envs/torch0.4/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/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/api.py", line 727, in compile compiler_verbose=verbose, debug=debug, **kwds) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/recompiler.py", line 1565, in recompile compiler_verbose, debug) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/ffiplatform.py", line 22, in compile outputfilename = _build(tmpdir, ext, compiler_verbose, debug) File "/home/zytr/anaconda3/envs/torch0.4/lib/python3.6/site-packages/cffi/ffiplatform.py", line 58, in _build raise VerificationError('%s: %s' % (e.class.name, e)) cffi.VerificationError: LinkError: command 'gcc' failed with exit status 1