Error building torchvision from source
See original GitHub issueπ Describe the bug
Hello, I am trying to build custom docker image with torch & torchvision built from sources and getting this error:
RUN git clone --depth 1 -b main https://github.com/pytorch/vision.git && cd vision && FORCE_CUDA=1 DEBUG=1 pip install -v . && cd .. && rm -rf vision
---> Running in a3547b30a89f
Cloning into 'vision'...
Using pip 22.0.3 from /usr/local/lib/python3.8/dist-packages/pip (python 3.8)
Processing /workdir/vision
Installing build dependencies: started
Running command pip subprocess to install build dependencies
Collecting setuptools>=40.8.0
Downloading setuptools-60.9.1-py3-none-any.whl (1.1 MB)
ββββββββββββββββββββββββββββββββββββββββ 1.1/1.1 MB 2.5 MB/s eta 0:00:00
Collecting wheel
Downloading wheel-0.37.1-py2.py3-none-any.whl (35 kB)
Installing collected packages: wheel, setuptools
Successfully installed setuptools-60.9.1 wheel-0.37.1
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Running command Getting requirements to build wheel
No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda'
Building wheel torchvision-0.13.0a0+8bf46d4
Compile in debug mode
PNG found: False
Running build on conda-build: False
Running build on conda: False
JPEG found: False
NVJPEG found: True
Building torchvision with NVJPEG image support
FFmpeg found: True
ffmpeg include path: ['/usr/local/include', '/usr/local/include/x86_64-linux-gnu']
ffmpeg library_dir: ['/usr/local/lib', '/usr/local/lib/x86_64-linux-gnu']
video codec found: False
The installed version of ffmpeg is missing the header file 'bsf.h' which is required for GPU video decoding. Please install the latest ffmpeg from conda-forge channel: `conda install -c conda-forge ffmpeg`.
running egg_info
creating torchvision.egg-info
writing manifest file 'torchvision.egg-info/SOURCES.txt'
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no previously-included files matching '*.py[co]' found under directory '*'
writing manifest file 'torchvision.egg-info/SOURCES.txt'
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Running command Preparing metadata (pyproject.toml)
No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda'
Building wheel torchvision-0.13.0a0+8bf46d4
Compile in debug mode
PNG found: False
Running build on conda-build: False
Running build on conda: False
JPEG found: False
NVJPEG found: True
Building torchvision with NVJPEG image support
FFmpeg found: True
ffmpeg include path: ['/usr/local/include', '/usr/local/include/x86_64-linux-gnu']
ffmpeg library_dir: ['/usr/local/lib', '/usr/local/lib/x86_64-linux-gnu']
video codec found: False
The installed version of ffmpeg is missing the header file 'bsf.h' which is required for GPU video decoding. Please install the latest ffmpeg from conda-forge channel: `conda install -c conda-forge ffmpeg`.
running dist_info
creating /tmp/pip-modern-metadata-q7d2np88/torchvision.egg-info
writing manifest file '/tmp/pip-modern-metadata-q7d2np88/torchvision.egg-info/SOURCES.txt'
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no previously-included files matching '*.py[co]' found under directory '*'
writing manifest file '/tmp/pip-modern-metadata-q7d2np88/torchvision.egg-info/SOURCES.txt'
Preparing metadata (pyproject.toml): finished with status 'done'
Requirement already satisfied: typing-extensions in /usr/local/lib/python3.8/dist-packages (from torchvision==0.13.0a0+8bf46d4) (4.0.1)
Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in /usr/local/lib/python3.8/dist-packages (from torchvision==0.13.0a0+8bf46d4) (9.0.1)
Requirement already satisfied: requests in /usr/local/lib/python3.8/dist-packages (from torchvision==0.13.0a0+8bf46d4) (2.27.1)
Requirement already satisfied: numpy in /usr/local/lib/python3.8/dist-packages (from torchvision==0.13.0a0+8bf46d4) (1.21.5)
Requirement already satisfied: torch in /usr/local/lib/python3.8/dist-packages (from torchvision==0.13.0a0+8bf46d4) (1.12.0a0+gite421492)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests->torchvision==0.13.0a0+8bf46d4) (2019.11.28)
Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3/dist-packages (from requests->torchvision==0.13.0a0+8bf46d4) (2.8)
Requirement already satisfied: charset-normalizer~=2.0.0 in /usr/local/lib/python3.8/dist-packages (from requests->torchvision==0.13.0a0+8bf46d4) (2.0.11)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/lib/python3/dist-packages (from requests->torchvision==0.13.0a0+8bf46d4) (1.25.8)
Building wheels for collected packages: torchvision
Building wheel for torchvision (pyproject.toml): started
Running command Building wheel for torchvision (pyproject.toml)
No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda'
Building wheel torchvision-0.13.0a0+8bf46d4
Compile in debug mode
PNG found: False
Running build on conda-build: False
Running build on conda: False
JPEG found: False
NVJPEG found: True
Building torchvision with NVJPEG image support
FFmpeg found: True
ffmpeg include path: ['/usr/local/include', '/usr/local/include/x86_64-linux-gnu']
ffmpeg library_dir: ['/usr/local/lib', '/usr/local/lib/x86_64-linux-gnu']
video codec found: False
The installed version of ffmpeg is missing the header file 'bsf.h' which is required for GPU video decoding. Please install the latest ffmpeg from conda-forge channel: `conda install -c conda-forge ffmpeg`.
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/torchvision
copying torchvision/_internally_replaced_utils.py -> build/lib.linux-x86_64-3.8/torchvision
copying torchvision/version.py -> build/lib.linux-x86_64-3.8/torchvision
copying torchvision/extension.py -> build/lib.linux-x86_64-3.8/torchvision
copying torchvision/__init__.py -> build/lib.linux-x86_64-3.8/torchvision
copying torchvision/utils.py -> build/lib.linux-x86_64-3.8/torchvision
creating build/lib.linux-x86_64-3.8/torchvision/prototype
copying torchvision/prototype/__init__.py -> build/lib.linux-x86_64-3.8/torchvision/prototype
creating build/lib.linux-x86_64-3.8/torchvision/transforms
copying torchvision/transforms/autoaugment.py -> build/lib.linux-x86_64-3.8/torchvision/transforms
copying torchvision/transforms/_functional_video.py -> build/lib.linux-x86_64-3.8/torchvision/transforms
copying torchvision/transforms/functional_pil.py -> build/lib.linux-x86_64-3.8/torchvision/transforms
copying torchvision/transforms/transforms.py -> build/lib.linux-x86_64-3.8/torchvision/transforms
copying torchvision/transforms/__init__.py -> build/lib.linux-x86_64-3.8/torchvision/transforms
copying torchvision/transforms/functional.py -> build/lib.linux-x86_64-3.8/torchvision/transforms
copying torchvision/transforms/_transforms_video.py -> build/lib.linux-x86_64-3.8/torchvision/transforms
copying torchvision/transforms/functional_tensor.py -> build/lib.linux-x86_64-3.8/torchvision/transforms
creating build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/dtd.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/country211.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/svhn.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/vision.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/coco.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/food101.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/cityscapes.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/lsun.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/flickr.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/fgvc_aircraft.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/fer2013.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/stanford_cars.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/kinetics.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/hmdb51.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/phototour.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/gtsrb.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/video_utils.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/imagenet.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/sun397.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/ucf101.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/sbu.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/__init__.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/places365.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/flowers102.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/sbd.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/stl10.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/oxford_iiit_pet.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/cifar.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/_optical_flow.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/lfw.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/eurosat.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/omniglot.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/pcam.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/kitti.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/folder.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/inaturalist.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/mnist.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/semeion.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/rendered_sst2.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/voc.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/clevr.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/utils.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/widerface.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/caltech.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/fakedata.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/celeba.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
copying torchvision/datasets/usps.py -> build/lib.linux-x86_64-3.8/torchvision/datasets
creating build/lib.linux-x86_64-3.8/torchvision/io
copying torchvision/io/image.py -> build/lib.linux-x86_64-3.8/torchvision/io
copying torchvision/io/_video_opt.py -> build/lib.linux-x86_64-3.8/torchvision/io
copying torchvision/io/__init__.py -> build/lib.linux-x86_64-3.8/torchvision/io
copying torchvision/io/video.py -> build/lib.linux-x86_64-3.8/torchvision/io
copying torchvision/io/_load_gpu_decoder.py -> build/lib.linux-x86_64-3.8/torchvision/io
creating build/lib.linux-x86_64-3.8/torchvision/ops
copying torchvision/ops/boxes.py -> build/lib.linux-x86_64-3.8/torchvision/ops
copying torchvision/ops/_register_onnx_ops.py -> build/lib.linux-x86_64-3.8/torchvision/ops
copying torchvision/ops/ps_roi_pool.py -> build/lib.linux-x86_64-3.8/torchvision/ops
copying torchvision/ops/_box_convert.py -> build/lib.linux-x86_64-3.8/torchvision/ops
copying torchvision/ops/stochastic_depth.py -> build/lib.linux-x86_64-3.8/torchvision/ops
copying torchvision/ops/deform_conv.py -> build/lib.linux-x86_64-3.8/torchvision/ops
copying torchvision/ops/focal_loss.py -> build/lib.linux-x86_64-3.8/torchvision/ops
copying torchvision/ops/__init__.py -> build/lib.linux-x86_64-3.8/torchvision/ops
copying torchvision/ops/misc.py -> build/lib.linux-x86_64-3.8/torchvision/ops
copying torchvision/ops/giou_loss.py -> build/lib.linux-x86_64-3.8/torchvision/ops
copying torchvision/ops/roi_pool.py -> build/lib.linux-x86_64-3.8/torchvision/ops
copying torchvision/ops/ps_roi_align.py -> build/lib.linux-x86_64-3.8/torchvision/ops
copying torchvision/ops/feature_pyramid_network.py -> build/lib.linux-x86_64-3.8/torchvision/ops
copying torchvision/ops/roi_align.py -> build/lib.linux-x86_64-3.8/torchvision/ops
copying torchvision/ops/poolers.py -> build/lib.linux-x86_64-3.8/torchvision/ops
copying torchvision/ops/_utils.py -> build/lib.linux-x86_64-3.8/torchvision/ops
creating build/lib.linux-x86_64-3.8/torchvision/models
copying torchvision/models/feature_extraction.py -> build/lib.linux-x86_64-3.8/torchvision/models
copying torchvision/models/squeezenet.py -> build/lib.linux-x86_64-3.8/torchvision/models
copying torchvision/models/googlenet.py -> build/lib.linux-x86_64-3.8/torchvision/models
copying torchvision/models/mobilenet.py -> build/lib.linux-x86_64-3.8/torchvision/models
copying torchvision/models/densenet.py -> build/lib.linux-x86_64-3.8/torchvision/models
copying torchvision/models/__init__.py -> build/lib.linux-x86_64-3.8/torchvision/models
copying torchvision/models/mnasnet.py -> build/lib.linux-x86_64-3.8/torchvision/models
copying torchvision/models/mobilenetv3.py -> build/lib.linux-x86_64-3.8/torchvision/models
copying torchvision/models/alexnet.py -> build/lib.linux-x86_64-3.8/torchvision/models
copying torchvision/models/vgg.py -> build/lib.linux-x86_64-3.8/torchvision/models
copying torchvision/models/mobilenetv2.py -> build/lib.linux-x86_64-3.8/torchvision/models
copying torchvision/models/shufflenetv2.py -> build/lib.linux-x86_64-3.8/torchvision/models
copying torchvision/models/resnet.py -> build/lib.linux-x86_64-3.8/torchvision/models
copying torchvision/models/vision_transformer.py -> build/lib.linux-x86_64-3.8/torchvision/models
copying torchvision/models/convnext.py -> build/lib.linux-x86_64-3.8/torchvision/models
copying torchvision/models/inception.py -> build/lib.linux-x86_64-3.8/torchvision/models
copying torchvision/models/regnet.py -> build/lib.linux-x86_64-3.8/torchvision/models
copying torchvision/models/efficientnet.py -> build/lib.linux-x86_64-3.8/torchvision/models
copying torchvision/models/_utils.py -> build/lib.linux-x86_64-3.8/torchvision/models
creating build/lib.linux-x86_64-3.8/torchvision/prototype/transforms
copying torchvision/prototype/transforms/_presets.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/transforms
copying torchvision/prototype/transforms/__init__.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/transforms
creating build/lib.linux-x86_64-3.8/torchvision/prototype/datasets
copying torchvision/prototype/datasets/generate_category_files.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets
copying torchvision/prototype/datasets/benchmark.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets
copying torchvision/prototype/datasets/__init__.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets
copying torchvision/prototype/datasets/_folder.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets
copying torchvision/prototype/datasets/_home.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets
copying torchvision/prototype/datasets/_api.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets
creating build/lib.linux-x86_64-3.8/torchvision/prototype/features
copying torchvision/prototype/features/_feature.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/features
copying torchvision/prototype/features/_encoded.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/features
copying torchvision/prototype/features/_bounding_box.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/features
copying torchvision/prototype/features/__init__.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/features
copying torchvision/prototype/features/_image.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/features
copying torchvision/prototype/features/_segmentation_mask.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/features
copying torchvision/prototype/features/_label.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/features
creating build/lib.linux-x86_64-3.8/torchvision/prototype/utils
copying torchvision/prototype/utils/__init__.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/utils
copying torchvision/prototype/utils/_internal.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/utils
creating build/lib.linux-x86_64-3.8/torchvision/prototype/models
copying torchvision/prototype/models/squeezenet.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models
copying torchvision/prototype/models/googlenet.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models
copying torchvision/prototype/models/mobilenet.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models
copying torchvision/prototype/models/densenet.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models
copying torchvision/prototype/models/__init__.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models
copying torchvision/prototype/models/mnasnet.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models
copying torchvision/prototype/models/mobilenetv3.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models
copying torchvision/prototype/models/_meta.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models
copying torchvision/prototype/models/alexnet.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models
copying torchvision/prototype/models/vgg.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models
copying torchvision/prototype/models/mobilenetv2.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models
copying torchvision/prototype/models/shufflenetv2.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models
copying torchvision/prototype/models/resnet.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models
copying torchvision/prototype/models/vision_transformer.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models
copying torchvision/prototype/models/convnext.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models
copying torchvision/prototype/models/_api.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models
copying torchvision/prototype/models/inception.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models
copying torchvision/prototype/models/regnet.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models
copying torchvision/prototype/models/efficientnet.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models
copying torchvision/prototype/models/_utils.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models
creating build/lib.linux-x86_64-3.8/torchvision/prototype/transforms/functional
copying torchvision/prototype/transforms/functional/_augment.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/transforms/functional
copying torchvision/prototype/transforms/functional/_geometry.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/transforms/functional
copying torchvision/prototype/transforms/functional/__init__.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/transforms/functional
copying torchvision/prototype/transforms/functional/_color.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/transforms/functional
copying torchvision/prototype/transforms/functional/_misc.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/transforms/functional
copying torchvision/prototype/transforms/functional/_utils.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/transforms/functional
creating build/lib.linux-x86_64-3.8/torchvision/prototype/transforms/kernels
copying torchvision/prototype/transforms/kernels/_augment.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/transforms/kernels
copying torchvision/prototype/transforms/kernels/_meta_conversion.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/transforms/kernels
copying torchvision/prototype/transforms/kernels/_geometry.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/transforms/kernels
copying torchvision/prototype/transforms/kernels/_type_conversion.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/transforms/kernels
copying torchvision/prototype/transforms/kernels/__init__.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/transforms/kernels
copying torchvision/prototype/transforms/kernels/_color.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/transforms/kernels
copying torchvision/prototype/transforms/kernels/_misc.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/transforms/kernels
creating build/lib.linux-x86_64-3.8/torchvision/prototype/datasets/_builtin
copying torchvision/prototype/datasets/_builtin/dtd.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets/_builtin
copying torchvision/prototype/datasets/_builtin/svhn.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets/_builtin
copying torchvision/prototype/datasets/_builtin/coco.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets/_builtin
copying torchvision/prototype/datasets/_builtin/fer2013.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets/_builtin
copying torchvision/prototype/datasets/_builtin/gtsrb.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets/_builtin
copying torchvision/prototype/datasets/_builtin/imagenet.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets/_builtin
copying torchvision/prototype/datasets/_builtin/__init__.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets/_builtin
copying torchvision/prototype/datasets/_builtin/sbd.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets/_builtin
copying torchvision/prototype/datasets/_builtin/oxford_iiit_pet.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets/_builtin
copying torchvision/prototype/datasets/_builtin/cifar.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets/_builtin
copying torchvision/prototype/datasets/_builtin/pcam.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets/_builtin
copying torchvision/prototype/datasets/_builtin/mnist.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets/_builtin
copying torchvision/prototype/datasets/_builtin/semeion.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets/_builtin
copying torchvision/prototype/datasets/_builtin/voc.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets/_builtin
copying torchvision/prototype/datasets/_builtin/clevr.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets/_builtin
copying torchvision/prototype/datasets/_builtin/caltech.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets/_builtin
copying torchvision/prototype/datasets/_builtin/cub200.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets/_builtin
copying torchvision/prototype/datasets/_builtin/celeba.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets/_builtin
creating build/lib.linux-x86_64-3.8/torchvision/prototype/datasets/utils
copying torchvision/prototype/datasets/utils/_resource.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets/utils
copying torchvision/prototype/datasets/utils/_dataset.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets/utils
copying torchvision/prototype/datasets/utils/__init__.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets/utils
copying torchvision/prototype/datasets/utils/_internal.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets/utils
copying torchvision/prototype/datasets/utils/_query.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets/utils
creating build/lib.linux-x86_64-3.8/torchvision/prototype/models/quantization
copying torchvision/prototype/models/quantization/googlenet.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models/quantization
copying torchvision/prototype/models/quantization/mobilenet.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models/quantization
copying torchvision/prototype/models/quantization/__init__.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models/quantization
copying torchvision/prototype/models/quantization/mobilenetv3.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models/quantization
copying torchvision/prototype/models/quantization/mobilenetv2.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models/quantization
copying torchvision/prototype/models/quantization/shufflenetv2.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models/quantization
copying torchvision/prototype/models/quantization/resnet.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models/quantization
copying torchvision/prototype/models/quantization/inception.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models/quantization
creating build/lib.linux-x86_64-3.8/torchvision/prototype/models/optical_flow
copying torchvision/prototype/models/optical_flow/__init__.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models/optical_flow
copying torchvision/prototype/models/optical_flow/raft.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models/optical_flow
creating build/lib.linux-x86_64-3.8/torchvision/prototype/models/video
copying torchvision/prototype/models/video/__init__.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models/video
copying torchvision/prototype/models/video/resnet.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models/video
creating build/lib.linux-x86_64-3.8/torchvision/prototype/models/segmentation
copying torchvision/prototype/models/segmentation/deeplabv3.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models/segmentation
copying torchvision/prototype/models/segmentation/fcn.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models/segmentation
copying torchvision/prototype/models/segmentation/__init__.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models/segmentation
copying torchvision/prototype/models/segmentation/lraspp.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models/segmentation
creating build/lib.linux-x86_64-3.8/torchvision/prototype/models/detection
copying torchvision/prototype/models/detection/retinanet.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models/detection
copying torchvision/prototype/models/detection/mask_rcnn.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models/detection
copying torchvision/prototype/models/detection/__init__.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models/detection
copying torchvision/prototype/models/detection/ssdlite.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models/detection
copying torchvision/prototype/models/detection/fcos.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models/detection
copying torchvision/prototype/models/detection/keypoint_rcnn.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models/detection
copying torchvision/prototype/models/detection/faster_rcnn.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models/detection
copying torchvision/prototype/models/detection/ssd.py -> build/lib.linux-x86_64-3.8/torchvision/prototype/models/detection
creating build/lib.linux-x86_64-3.8/torchvision/datasets/samplers
copying torchvision/datasets/samplers/clip_sampler.py -> build/lib.linux-x86_64-3.8/torchvision/datasets/samplers
copying torchvision/datasets/samplers/__init__.py -> build/lib.linux-x86_64-3.8/torchvision/datasets/samplers
creating build/lib.linux-x86_64-3.8/torchvision/models/quantization
copying torchvision/models/quantization/googlenet.py -> build/lib.linux-x86_64-3.8/torchvision/models/quantization
copying torchvision/models/quantization/mobilenet.py -> build/lib.linux-x86_64-3.8/torchvision/models/quantization
copying torchvision/models/quantization/__init__.py -> build/lib.linux-x86_64-3.8/torchvision/models/quantization
copying torchvision/models/quantization/mobilenetv3.py -> build/lib.linux-x86_64-3.8/torchvision/models/quantization
copying torchvision/models/quantization/mobilenetv2.py -> build/lib.linux-x86_64-3.8/torchvision/models/quantization
copying torchvision/models/quantization/shufflenetv2.py -> build/lib.linux-x86_64-3.8/torchvision/models/quantization
copying torchvision/models/quantization/resnet.py -> build/lib.linux-x86_64-3.8/torchvision/models/quantization
copying torchvision/models/quantization/utils.py -> build/lib.linux-x86_64-3.8/torchvision/models/quantization
copying torchvision/models/quantization/inception.py -> build/lib.linux-x86_64-3.8/torchvision/models/quantization
creating build/lib.linux-x86_64-3.8/torchvision/models/optical_flow
copying torchvision/models/optical_flow/__init__.py -> build/lib.linux-x86_64-3.8/torchvision/models/optical_flow
copying torchvision/models/optical_flow/raft.py -> build/lib.linux-x86_64-3.8/torchvision/models/optical_flow
copying torchvision/models/optical_flow/_utils.py -> build/lib.linux-x86_64-3.8/torchvision/models/optical_flow
creating build/lib.linux-x86_64-3.8/torchvision/models/video
copying torchvision/models/video/__init__.py -> build/lib.linux-x86_64-3.8/torchvision/models/video
copying torchvision/models/video/resnet.py -> build/lib.linux-x86_64-3.8/torchvision/models/video
creating build/lib.linux-x86_64-3.8/torchvision/models/segmentation
copying torchvision/models/segmentation/deeplabv3.py -> build/lib.linux-x86_64-3.8/torchvision/models/segmentation
copying torchvision/models/segmentation/fcn.py -> build/lib.linux-x86_64-3.8/torchvision/models/segmentation
copying torchvision/models/segmentation/__init__.py -> build/lib.linux-x86_64-3.8/torchvision/models/segmentation
copying torchvision/models/segmentation/segmentation.py -> build/lib.linux-x86_64-3.8/torchvision/models/segmentation
copying torchvision/models/segmentation/_utils.py -> build/lib.linux-x86_64-3.8/torchvision/models/segmentation
copying torchvision/models/segmentation/lraspp.py -> build/lib.linux-x86_64-3.8/torchvision/models/segmentation
creating build/lib.linux-x86_64-3.8/torchvision/models/detection
copying torchvision/models/detection/retinanet.py -> build/lib.linux-x86_64-3.8/torchvision/models/detection
copying torchvision/models/detection/mask_rcnn.py -> build/lib.linux-x86_64-3.8/torchvision/models/detection
copying torchvision/models/detection/anchor_utils.py -> build/lib.linux-x86_64-3.8/torchvision/models/detection
copying torchvision/models/detection/rpn.py -> build/lib.linux-x86_64-3.8/torchvision/models/detection
copying torchvision/models/detection/backbone_utils.py -> build/lib.linux-x86_64-3.8/torchvision/models/detection
copying torchvision/models/detection/image_list.py -> build/lib.linux-x86_64-3.8/torchvision/models/detection
copying torchvision/models/detection/__init__.py -> build/lib.linux-x86_64-3.8/torchvision/models/detection
copying torchvision/models/detection/ssdlite.py -> build/lib.linux-x86_64-3.8/torchvision/models/detection
copying torchvision/models/detection/fcos.py -> build/lib.linux-x86_64-3.8/torchvision/models/detection
copying torchvision/models/detection/transform.py -> build/lib.linux-x86_64-3.8/torchvision/models/detection
copying torchvision/models/detection/generalized_rcnn.py -> build/lib.linux-x86_64-3.8/torchvision/models/detection
copying torchvision/models/detection/keypoint_rcnn.py -> build/lib.linux-x86_64-3.8/torchvision/models/detection
copying torchvision/models/detection/roi_heads.py -> build/lib.linux-x86_64-3.8/torchvision/models/detection
copying torchvision/models/detection/_utils.py -> build/lib.linux-x86_64-3.8/torchvision/models/detection
copying torchvision/models/detection/faster_rcnn.py -> build/lib.linux-x86_64-3.8/torchvision/models/detection
copying torchvision/models/detection/ssd.py -> build/lib.linux-x86_64-3.8/torchvision/models/detection
copying torchvision/prototype/datasets/_builtin/cifar100.categories -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets/_builtin
copying torchvision/prototype/datasets/_builtin/sbd.categories -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets/_builtin
copying torchvision/prototype/datasets/_builtin/caltech101.categories -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets/_builtin
copying torchvision/prototype/datasets/_builtin/caltech256.categories -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets/_builtin
copying torchvision/prototype/datasets/_builtin/dtd.categories -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets/_builtin
copying torchvision/prototype/datasets/_builtin/cub200.categories -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets/_builtin
copying torchvision/prototype/datasets/_builtin/oxford-iiit-pet.categories -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets/_builtin
copying torchvision/prototype/datasets/_builtin/imagenet.categories -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets/_builtin
copying torchvision/prototype/datasets/_builtin/coco.categories -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets/_builtin
copying torchvision/prototype/datasets/_builtin/voc.categories -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets/_builtin
copying torchvision/prototype/datasets/_builtin/cifar10.categories -> build/lib.linux-x86_64-3.8/torchvision/prototype/datasets/_builtin
running build_ext
creating /workdir/vision/build/temp.linux-x86_64-3.8
creating /workdir/vision/build/temp.linux-x86_64-3.8/workdir
creating /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision
creating /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision
creating /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc
creating /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops
creating /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/autocast
creating /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/autograd
creating /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/cpu
creating /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/cuda
creating /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/quantized
creating /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/quantized/cpu
Emitting ninja build file /workdir/vision/build/temp.linux-x86_64-3.8/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
1.10.0
x86_64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/autocast/deform_conv2d_kernel.o /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/autocast/nms_kernel.o /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/autocast/ps_roi_align_kernel.o /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/autocast/ps_roi_pool_kernel.o /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/autocast/roi_align_kernel.o /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/autocast/roi_pool_kernel.o /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/autograd/deform_conv2d_kernel.o /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/autograd/ps_roi_align_kernel.o /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/autograd/ps_roi_pool_kernel.o /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/autograd/roi_align_kernel.o /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/autograd/roi_pool_kernel.o /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/cpu/deform_conv2d_kernel.o /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/cpu/nms_kernel.o /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/cpu/ps_roi_align_kernel.o /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/cpu/ps_roi_pool_kernel.o /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/cpu/roi_align_kernel.o /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/cpu/roi_pool_kernel.o /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/cuda/deform_conv2d_kernel.o /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/cuda/nms_kernel.o /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/cuda/ps_roi_align_kernel.o /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/cuda/ps_roi_pool_kernel.o /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/cuda/roi_align_kernel.o /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/cuda/roi_pool_kernel.o /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/deform_conv2d.o /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/nms.o /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/ps_roi_align.o /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/ps_roi_pool.o /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/quantized/cpu/qnms_kernel.o /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/quantized/cpu/qroi_align_kernel.o /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/roi_align.o /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/roi_pool.o /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/vision.o -L/usr/local/lib/python3.8/dist-packages/torch/lib -L/usr/local/cuda/lib64 -L/usr/lib -lc10 -ltorch -ltorch_cpu -ltorch_python -lcudart -lc10_cuda -ltorch_cuda -o build/lib.linux-x86_64-3.8/torchvision/_C.so
x86_64-linux-gnu-g++: error: /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/autocast/deform_conv2d_kernel.o: No such file or directory
x86_64-linux-gnu-g++: error: /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/autocast/nms_kernel.o: No such file or directory
x86_64-linux-gnu-g++: error: /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/autocast/ps_roi_align_kernel.o: No such file or directory
x86_64-linux-gnu-g++: error: /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/autocast/ps_roi_pool_kernel.o: No such file or directory
x86_64-linux-gnu-g++: error: /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/autocast/roi_align_kernel.o: No such file or directory
x86_64-linux-gnu-g++: error: /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/autocast/roi_pool_kernel.o: No such file or directory
x86_64-linux-gnu-g++: error: /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/autograd/deform_conv2d_kernel.o: No such file or directory
x86_64-linux-gnu-g++: error: /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/autograd/ps_roi_align_kernel.o: No such file or directory
x86_64-linux-gnu-g++: error: /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/autograd/ps_roi_pool_kernel.o: No such file or directory
x86_64-linux-gnu-g++: error: /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/autograd/roi_align_kernel.o: No such file or directory
x86_64-linux-gnu-g++: error: /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/autograd/roi_pool_kernel.o: No such file or directory
x86_64-linux-gnu-g++: error: /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/cpu/deform_conv2d_kernel.o: No such file or directory
x86_64-linux-gnu-g++: error: /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/cpu/nms_kernel.o: No such file or directory
x86_64-linux-gnu-g++: error: /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/cpu/ps_roi_align_kernel.o: No such file or directory
x86_64-linux-gnu-g++: error: /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/cpu/ps_roi_pool_kernel.o: No such file or directory
x86_64-linux-gnu-g++: error: /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/cpu/roi_align_kernel.o: No such file or directory
x86_64-linux-gnu-g++: error: /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/cpu/roi_pool_kernel.o: No such file or directory
x86_64-linux-gnu-g++: error: /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/cuda/deform_conv2d_kernel.o: No such file or directory
x86_64-linux-gnu-g++: error: /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/cuda/nms_kernel.o: No such file or directory
x86_64-linux-gnu-g++: error: /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/cuda/ps_roi_align_kernel.o: No such file or directory
x86_64-linux-gnu-g++: error: /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/cuda/ps_roi_pool_kernel.o: No such file or directory
x86_64-linux-gnu-g++: error: /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/cuda/roi_align_kernel.o: No such file or directory
x86_64-linux-gnu-g++: error: /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/cuda/roi_pool_kernel.o: No such file or directory
x86_64-linux-gnu-g++: error: /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/deform_conv2d.o: No such file or directory
x86_64-linux-gnu-g++: error: /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/nms.o: No such file or directory
x86_64-linux-gnu-g++: error: /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/ps_roi_align.o: No such file or directory
x86_64-linux-gnu-g++: error: /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/ps_roi_pool.o: No such file or directory
x86_64-linux-gnu-g++: error: /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/quantized/cpu/qnms_kernel.o: No such file or directory
x86_64-linux-gnu-g++: error: /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/quantized/cpu/qroi_align_kernel.o: No such file or directory
x86_64-linux-gnu-g++: error: /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/roi_align.o: No such file or directory
x86_64-linux-gnu-g++: error: /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/ops/roi_pool.o: No such file or directory
x86_64-linux-gnu-g++: error: /workdir/vision/build/temp.linux-x86_64-3.8/workdir/vision/torchvision/csrc/vision.o: No such file or directory
error: command '/usr/bin/x86_64-linux-gnu-g++' failed with exit code 1
error: subprocess-exited-with-error
Versions
Here is my Dockerfile for custom image:
FROM nvidia/cuda:11.5.1-cudnn8-devel-ubuntu20.04
ENV LANG C.UTF-8
ENV DEBIAN_FRONTEND noninteractive
ENV NVIDIA_DRIVER_CAPABILITIES video,compute,utility
ENV PYTHONPATH $PYTHONPATH:/workdir
WORKDIR /workdir
# Install python and apt-get packages
RUN apt-get update && apt -y upgrade &&\
apt-get -y install \
software-properties-common \
build-essential yasm nasm ninja-build \
unzip git wget curl nano vim tmux \
sysstat libtcmalloc-minimal4 pkgconf \
autoconf libtool flex bison \
libsm6 libxext6 libxrender1 libgl1-mesa-glx \
libx264-dev libsndfile1 libmp3lame-dev libssl-dev \
python3 python3-dev python3-pip \
liblapack-dev libopenblas-dev gfortran &&\
ln -s /usr/bin/python3 /usr/bin/python &&\
apt-get clean &&\
apt-get -y autoremove &&\
rm -rf /var/lib/apt/lists/* &&\
rm -rf /var/cache/apt/archives/*
# Install CMake
RUN CMAKE_VERSION=3.22.2 &&\
wget https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}.tar.gz &&\
tar -zxvf cmake-${CMAKE_VERSION}.tar.gz &&\
cd cmake-${CMAKE_VERSION} &&\
./bootstrap &&\
make && make install &&\
cd .. && rm -rf cmake-${CMAKE_VERSION} cmake-${CMAKE_VERSION}.tar.gz
# Install pip and setuptools
RUN pip3 install --upgrade --no-cache-dir \
pip==22.0.3 \
setuptools==59.5.0 \
packaging==21.3
# Build nvidia codec headers
RUN git clone --depth 1 -b sdk/11.0 --single-branch https://git.videolan.org/git/ffmpeg/nv-codec-headers.git &&\
cd nv-codec-headers && make install &&\
cd .. && rm -rf nv-codec-headers
# Build FFmpeg with NVENC support
RUN git clone --depth 1 -b release/5.0 --single-branch https://github.com/FFmpeg/FFmpeg.git &&\
cd FFmpeg &&\
mkdir ffmpeg_build && cd ffmpeg_build &&\
../configure \
--enable-cuda \
--enable-cuvid \
--enable-shared \
--disable-static \
--disable-doc \
--extra-cflags=-I/usr/local/cuda/include \
--extra-ldflags=-L/usr/local/cuda/lib64 \
--enable-gpl \
--enable-libx264 \
--enable-libmp3lame \
--extra-libs=-lpthread \
--enable-openssl \
--enable-nonfree \
--nvccflags="-arch=sm_52 \
-gencode=arch=compute_52,code=sm_52 \
-gencode=arch=compute_60,code=sm_60 \
-gencode=arch=compute_61,code=sm_61 \
-gencode=arch=compute_70,code=sm_70 \
-gencode=arch=compute_75,code=sm_75 \
-gencode=arch=compute_80,code=sm_80 \
-gencode=arch=compute_86,code=sm_86 \
-gencode=arch=compute_86,code=compute_86" &&\
make -j$(nproc) && make install && ldconfig &&\
cd ../.. && rm -rf FFmpeg
# Install python packages
RUN pip3 install --no-cache-dir \
numpy==1.21.5 \
opencv-python==4.5.5.62 \
scipy==1.7.3 \
matplotlib==3.5.1 \
pandas==1.4.0 \
scikit-learn==1.0.2 \
scikit-image==0.19.1 \
Pillow==9.0.1 \
librosa==0.8.1 \
albumentations==1.1.0 \
pyzmq==22.3.0 \
Cython==0.29.27 \
numba==0.55.1 \
requests==2.27.1 \
psutil==5.9.0 \
pydantic==1.9.0 \
PyYAML==6.0 \
notebook==6.4.8 \
ipywidgets==7.6.5 \
tqdm==4.62.3 \
pytest==6.2.5 \
pytest-cov==3.0.0 \
mypy==0.931 \
pre-commit==2.17.0 \
flake8==4.0.1
ENV TORCH_CUDA_ARCH_LIST 5.2;6.0;6.1;7.0;7.5;8.0;8.6
# Build MAGMA
COPY docker/magma/make.inc make.inc
RUN MAGMA_VERSION=2.6.1 &&\
ln -s /usr/local/cuda/lib64/libcudart.so /usr/lib/libcudart.so &&\
wget http://icl.utk.edu/projectsfiles/magma/downloads/magma-${MAGMA_VERSION}.tar.gz &&\
tar -xzf magma-${MAGMA_VERSION}.tar.gz &&\
cp make.inc magma-${MAGMA_VERSION} &&\
cd magma-${MAGMA_VERSION} &&\
make -j$(nproc) && make install &&\
cd .. && rm -rf magma-${MAGMA_VERSION} magma-${MAGMA_VERSION}.tar.gz make.inc
# Install PyTorch
RUN git clone --depth 1 -b master --single-branch https://github.com/pytorch/pytorch.git &&\
cd pytorch &&\
git submodule sync && git submodule update --init --recursive && \
TORCH_NVCC_FLAGS="-Xfatbin -compress-all" && \
TORCH_CUDA_ARCH_LIST="${TORCH_CUDA_ARCH_LIST}" && \
USE_CUDA=ON && \
pip install -v . && \
cd .. && rm -rf pytorch
# Hack to fix small bug
RUN sed -i "s/, '-v'/, '--version'/" \
"/usr/local/lib/python3.8/dist-packages/torch/utils/cpp_extension.py"
# Install torchvision
RUN git clone --depth 1 -b main https://github.com/pytorch/vision.git &&\
cd vision && \
FORCE_CUDA=1 DEBUG=1 pip install -v . &&\
cd .. && rm -rf vision
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:14 (4 by maintainers)
Top Results From Across the Web
Issue Building Torchvision from Source - PyTorch Forums
I'm building torch and torchvision from source since my system is fixed to CUDA 10.0 unfortunately and I need torch 1.6+ I am...
Read more >Speed Up PyTorch by Building from Source on Ubuntu 18.04
First, let's build the torchvision library from source. cd ~ git clone git@github.com:pytorch/vision.git cd vision python setup.py install.
Read more >Installation β detectron2 0.6 documentation
If the error comes from detectron2 or torchvision that you built manually from source, remove files you built ( build/ , **/*.so )...
Read more >torchvision - PyPI
We don't officially support building from source using pip, but if you do, you'll need to use the --no-build-isolation flag. In case building...
Read more >python - Even though I have install right version of pytorch and ...
This can happen if your PyTorch and torchvision versions are incompatible, or if you had errors while compiling torchvision from source.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@lezwon Cython isnβt a build dependency of torchvision. Looks like for some reason your system tried to build numpy from source, and building numpy from source requires Cython. But you shouldnβt need to build numpy from source to install torchvision.
Cython wasnβt reason of my issue too since Iβve installed it previously.