I’m currently following the guide on PyTorch for Jetson
and have installed pytorch 1.12.0 and python 3,8. However, when i tried to install torchvision v0.13.0 from using git clone and using python setup.py install --user, i get this issue
[11/16] c++ -MMD -MF /mnt/ssd1/home/brushlessdc/torchvision/build/temp.linux-aarch64-cpython-38/mnt/ssd1/home/brushlessdc/torchvision/torchvision/csrc/io/decoder/decoder.o.d -pthread -B /mnt/ssd1/home/brushlessdc/anaconda3/compiler_compat -Wl,–sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/mnt/ssd1/home/brushlessdc/torchvision/torchvision/csrc/io/decoder -I/mnt/ssd1/home/brushlessdc/torchvision/torchvision/csrc/io/video_reader -I/mnt/ssd1/home/brushlessdc/torchvision/torchvision/csrc/io/video -I/mnt/ssd1/home/brushlessdc/torchvision/torchvision/csrc -I/mnt/ssd1/home/brushlessdc/anaconda3/include -I/mnt/ssd1/home/brushlessdc/anaconda3/include/aarch64-linux-gnu -I/mnt/ssd1/home/brushlessdc/torchvision/torchvision/csrc -I/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/torch/include -I/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/torch/include/TH -I/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/torch/include -I/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/torch/include/TH -I/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/torch/include/THC -I/mnt/ssd1/home/brushlessdc/anaconda3/include/python3.8 -c -c /mnt/ssd1/home/brushlessdc/torchvision/torchvision/csrc/io/decoder/decoder.cpp -o /mnt/ssd1/home/brushlessdc/torchvision/build/temp.linux-aarch64-cpython-38/mnt/ssd1/home/brushlessdc/torchvision/torchvision/csrc/io/decoder/decoder.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H ‘-DPYBIND11_COMPILER_TYPE=“_gcc”’ ‘-DPYBIND11_STDLIB=“_libstdcpp”’ ‘-DPYBIND11_BUILD_ABI=“_cxxabi1013”’ -DTORCH_EXTENSION_NAME=video_reader -D_GLIBCXX_USE_CXX11_ABI=1
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File “/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/torch/utils/cpp_extension.py”, line 1726, in _run_ninja_build
subprocess.run(
File “/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/subprocess.py”, line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command ‘[‘ninja’, ‘-v’]’ returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “setup.py”, line 514, in
setup(
File “/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/setuptools/init.py”, line 117, in setup
return distutils.core.setup(**attrs)
File “/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/setuptools/_distutils/core.py”, line 183, in setup
return run_commands(dist)
File “/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/setuptools/_distutils/core.py”, line 199, in run_commands
dist.run_commands()
File “/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/setuptools/_distutils/dist.py”, line 954, in run_commands
self.run_command(cmd)
File “/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/setuptools/dist.py”, line 950, in run_command
super().run_command(command)
File “/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/setuptools/_distutils/dist.py”, line 973, in run_command
cmd_obj.run()
File “/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/setuptools/command/install.py”, line 97, in run
self.do_egg_install()
File “/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/setuptools/command/install.py”, line 149, in do_egg_install
self.run_command(‘bdist_egg’)
File “/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/setuptools/_distutils/cmd.py”, line 316, in run_command
self.distribution.run_command(command)
File “/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/setuptools/dist.py”, line 950, in run_command
super().run_command(command)
File “/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/setuptools/_distutils/dist.py”, line 973, in run_command
cmd_obj.run()
File “/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/setuptools/command/bdist_egg.py”, line 168, in run
cmd = self.call_command(‘install_lib’, warn_dir=False)
File “/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/setuptools/command/bdist_egg.py”, line 154, in call_command
self.run_command(cmdname)
File “/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/setuptools/_distutils/cmd.py”, line 316, in run_command
self.distribution.run_command(command)
File “/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/setuptools/dist.py”, line 950, in run_command
super().run_command(command)
File “/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/setuptools/_distutils/dist.py”, line 973, in run_command
cmd_obj.run()
File “/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/setuptools/command/install_lib.py”, line 19, in run
self.build()
File “/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/setuptools/_distutils/command/install_lib.py”, line 110, in build
self.run_command(‘build_ext’)
File “/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/setuptools/_distutils/cmd.py”, line 316, in run_command
self.distribution.run_command(command)
File “/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/setuptools/dist.py”, line 950, in run_command
super().run_command(command)
File “/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/setuptools/_distutils/dist.py”, line 973, in run_command
cmd_obj.run()
File “/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/setuptools/command/build_ext.py”, line 98, in run
_build_ext.run(self)
File “/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/Cython/Distutils/old_build_ext.py”, line 186, in run
_build_ext.build_ext.run(self)
File “/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py”, line 359, in run
self.build_extensions()
File “/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/torch/utils/cpp_extension.py”, line 741, in build_extensions
build_ext.build_extensions(self)
File “/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/Cython/Distutils/old_build_ext.py”, line 195, in build_extensions
_build_ext.build_ext.build_extensions(self)
File “/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py”, line 476, in build_extensions
self._build_extensions_serial()
File “/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py”, line 502, in _build_extensions_serial
self.build_extension(ext)
File “/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/setuptools/command/build_ext.py”, line 263, in build_extension
_build_ext.build_extension(self, ext)
File “/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py”, line 557, in build_extension
objects = self.compiler.compile(
File “/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/torch/utils/cpp_extension.py”, line 562, in unix_wrap_ninja_compile
_write_ninja_file_and_compile_objects(
File “/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/torch/utils/cpp_extension.py”, line 1405, in _write_ninja_file_and_compile_objects
_run_ninja_build(
File “/mnt/ssd1/home/brushlessdc/anaconda3/lib/python3.8/site-packages/torch/utils/cpp_extension.py”, line 1742, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension