video-object-removal icon indicating copy to clipboard operation
video-object-removal copied to clipboard

Problem with install.sh, ubuntu 18.04, GPU1050, py3.6

Open vankhoa21991 opened this issue 5 years ago • 4 comments

bash install.sh Compiling correlation kernels by nvcc... rm: cannot remove 'correlation_cuda_kernel.o': No such file or directory In file included from /usr/local/cuda-9.0/bin/..//include/host_config.h:50:0, from /usr/local/cuda-9.0/bin/..//include/cuda_runtime.h:78, from :0: /usr/local/cuda-9.0/bin/..//include/crt/host_config.h:119:2: error: #error -- unsupported GNU version! gcc versions later than 6 are not supported! #error -- unsupported GNU version! gcc versions later than 6 are not supported! ^~~~~ x86_64-linux-gnu-gcc: error: /home/vankhoa/code/video-object-removal/inpainting/lib/correlation_package/src/correlation_cuda_kernel.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 "/home/vankhoa/contrib/py36/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 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 31, in ffi.build() File "/home/vankhoa/contrib/py36/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/vankhoa/contrib/py36/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/vankhoa/contrib/py36/lib/python3.6/site-packages/cffi/api.py", line 723, in compile compiler_verbose=verbose, debug=debug, **kwds) File "/home/vankhoa/contrib/py36/lib/python3.6/site-packages/cffi/recompiler.py", line 1526, in recompile compiler_verbose, debug) File "/home/vankhoa/contrib/py36/lib/python3.6/site-packages/cffi/ffiplatform.py", line 22, in compile outputfilename = _build(tmpdir, ext, compiler_verbose, debug) File "/home/vankhoa/contrib/py36/lib/python3.6/site-packages/cffi/ffiplatform.py", line 58, in _build raise VerificationError('%s: %s' % (e.class.name, e)) cffi.VerificationError: LinkError: command 'x86_64-linux-gnu-gcc' failed with exit status 1 Compiling resample2d kernels by nvcc... rm: cannot remove 'Resample2d_kernel.o': No such file or directory In file included from /usr/local/cuda-9.0/bin/..//include/host_config.h:50:0, from /usr/local/cuda-9.0/bin/..//include/cuda_runtime.h:78, from :0: /usr/local/cuda-9.0/bin/..//include/crt/host_config.h:119:2: error: #error -- unsupported GNU version! gcc versions later than 6 are not supported! #error -- unsupported GNU version! gcc versions later than 6 are not supported! ^~~~~ x86_64-linux-gnu-gcc: error: /home/vankhoa/code/video-object-removal/inpainting/lib/resample2d_package/src/Resample2d_kernel.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 "/home/vankhoa/contrib/py36/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 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 31, in ffi.build() File "/home/vankhoa/contrib/py36/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/vankhoa/contrib/py36/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/vankhoa/contrib/py36/lib/python3.6/site-packages/cffi/api.py", line 723, in compile compiler_verbose=verbose, debug=debug, **kwds) File "/home/vankhoa/contrib/py36/lib/python3.6/site-packages/cffi/recompiler.py", line 1526, in recompile compiler_verbose, debug) File "/home/vankhoa/contrib/py36/lib/python3.6/site-packages/cffi/ffiplatform.py", line 22, in compile outputfilename = _build(tmpdir, ext, compiler_verbose, debug) File "/home/vankhoa/contrib/py36/lib/python3.6/site-packages/cffi/ffiplatform.py", line 58, in _build raise VerificationError('%s: %s' % (e.class.name, e)) cffi.VerificationError: LinkError: command 'x86_64-linux-gnu-gcc' failed with exit status 1 Compiling channelnorm kernels by nvcc... rm: cannot remove 'ChannelNorm_kernel.o': No such file or directory In file included from /usr/local/cuda-9.0/bin/..//include/host_config.h:50:0, from /usr/local/cuda-9.0/bin/..//include/cuda_runtime.h:78, from :0: /usr/local/cuda-9.0/bin/..//include/crt/host_config.h:119:2: error: #error -- unsupported GNU version! gcc versions later than 6 are not supported! #error -- unsupported GNU version! gcc versions later than 6 are not supported! ^~~~~ x86_64-linux-gnu-gcc: error: /home/vankhoa/code/video-object-removal/inpainting/lib/channelnorm_package/src/ChannelNorm_kernel.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 "/home/vankhoa/contrib/py36/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 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 31, in ffi.build() File "/home/vankhoa/contrib/py36/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/vankhoa/contrib/py36/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/vankhoa/contrib/py36/lib/python3.6/site-packages/cffi/api.py", line 723, in compile compiler_verbose=verbose, debug=debug, **kwds) File "/home/vankhoa/contrib/py36/lib/python3.6/site-packages/cffi/recompiler.py", line 1526, in recompile compiler_verbose, debug) File "/home/vankhoa/contrib/py36/lib/python3.6/site-packages/cffi/ffiplatform.py", line 22, in compile outputfilename = _build(tmpdir, ext, compiler_verbose, debug) File "/home/vankhoa/contrib/py36/lib/python3.6/site-packages/cffi/ffiplatform.py", line 58, in _build raise VerificationError('%s: %s' % (e.class.name, e)) cffi.VerificationError: LinkError: command 'x86_64-linux-gnu-gcc' failed with exit status 1 Compiling correlation kernels by nvcc... rm: cannot remove 'correlation_cuda_kernel.o': No such file or directory In file included from /usr/local/cuda-9.0/bin/..//include/host_config.h:50:0, from /usr/local/cuda-9.0/bin/..//include/cuda_runtime.h:78, from :0: /usr/local/cuda-9.0/bin/..//include/crt/host_config.h:119:2: error: #error -- unsupported GNU version! gcc versions later than 6 are not supported! #error -- unsupported GNU version! gcc versions later than 6 are not supported! ^~~~~ x86_64-linux-gnu-gcc: error: /home/vankhoa/code/video-object-removal/inpainting/models/correlation_package/src/correlation_cuda_kernel.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 "/home/vankhoa/contrib/py36/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 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 31, in ffi.build() File "/home/vankhoa/contrib/py36/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/vankhoa/contrib/py36/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/vankhoa/contrib/py36/lib/python3.6/site-packages/cffi/api.py", line 723, in compile compiler_verbose=verbose, debug=debug, **kwds) File "/home/vankhoa/contrib/py36/lib/python3.6/site-packages/cffi/recompiler.py", line 1526, in recompile compiler_verbose, debug) File "/home/vankhoa/contrib/py36/lib/python3.6/site-packages/cffi/ffiplatform.py", line 22, in compile outputfilename = _build(tmpdir, ext, compiler_verbose, debug) File "/home/vankhoa/contrib/py36/lib/python3.6/site-packages/cffi/ffiplatform.py", line 58, in _build raise VerificationError('%s: %s' % (e.class.name, e)) cffi.VerificationError: LinkError: command 'x86_64-linux-gnu-gcc' failed with exit status 1

vankhoa21991 avatar Jul 23 '19 21:07 vankhoa21991

met the same error

HulkMaker avatar Jul 29 '19 09:07 HulkMaker

Same here. Also Ubuntu 18 and 1050

Vimy avatar Aug 01 '19 16:08 Vimy

同样的问题

xiaosongdeyx001 avatar Aug 13 '19 10:08 xiaosongdeyx001

The error is pretty clear...

"#error -- unsupported GNU version! gcc versions later than 6 are not supported!"

nVidia CUDA is notorious for only supporting specific version of gcc. This is a CUDA issue, not specific to the video-object-removal project.

ulatekh avatar Mar 29 '20 23:03 ulatekh