open-mmlab / mmdeploy

OpenMMLab Model Deployment Framework
https://mmdeploy.readthedocs.io/en/latest/
Apache License 2.0
2.77k stars 634 forks source link

[Bug]nvidia docker nvcr.io/nvidia/l4t-jetpack:r35.3.1 Install MMCV ERROR #2351

Closed StochasticGame closed 1 year ago

StochasticGame commented 1 year ago

Checklist

Describe the bug

An error occurred during the installation according to the tutorial of jetson

run command MMCV_WITH_OPS=1 pip install -e . ` Obtaining file:/home/mmcv

Preparing metadata (setup.py) ... done

Requirement already satisfied: addict in /root/archiconda3/envs/mmdeploy/lib/python3.8/site-packages (from mmcv==2.0.0) (2.4.0)

Requirement already satisfied: mmengine>=0.2.0 in /root/archiconda3/envs/mmdeploy/lib/python3.8/site-packages (from mmcv==2.0.0) (0.8.4)

Requirement already satisfied: numpy in /root/archiconda3/envs/mmdeploy/lib/python3.8/site-packages (from mmcv==2.0.0) (1.24.4)

Requirement already satisfied: packaging in /root/archiconda3/envs/mmdeploy/lib/python3.8/site-packages (from mmcv==2.0.0) (23.1)

Requirement already satisfied: Pillow in /root/archiconda3/envs/mmdeploy/lib/python3.8/site-packages (from mmcv==2.0.0) (10.0.0)

Requirement already satisfied: pyyaml in /root/archiconda3/envs/mmdeploy/lib/python3.8/site-packages (from mmcv==2.0.0) (6.0.1)

Requirement already satisfied: yapf in /root/archiconda3/envs/mmdeploy/lib/python3.8/site-packages (from mmcv==2.0.0) (0.40.1)

Requirement already satisfied: rich in /root/archiconda3/envs/mmdeploy/lib/python3.8/site-packages (from mmengine>=0.2.0->mmcv==2.0.0) (13.5.2)

Requirement already satisfied: matplotlib in /root/archiconda3/envs/mmdeploy/lib/python3.8/site-packages (from mmengine>=0.2.0->mmcv==2.0.0) (3.7.2)

Requirement already satisfied: opencv-python>=3 in /root/archiconda3/envs/mmdeploy/lib/python3.8/site-packages (from mmengine>=0.2.0->mmcv==2.0.0) (4.8.0.76)

Requirement already satisfied: termcolor in /root/archiconda3/envs/mmdeploy/lib/python3.8/site-packages (from mmengine>=0.2.0->mmcv==2.0.0) (2.3.0)

Requirement already satisfied: tomli>=2.0.1 in /root/archiconda3/envs/mmdeploy/lib/python3.8/site-packages (from yapf->mmcv==2.0.0) (2.0.1)

Requirement already satisfied: platformdirs>=3.5.1 in /root/archiconda3/envs/mmdeploy/lib/python3.8/site-packages (from yapf->mmcv==2.0.0) (3.10.0)

Requirement already satisfied: importlib-metadata>=6.6.0 in /root/archiconda3/envs/mmdeploy/lib/python3.8/site-packages (from yapf->mmcv==2.0.0) (6.8.0)

Requirement already satisfied: zipp>=0.5 in /root/archiconda3/envs/mmdeploy/lib/python3.8/site-packages (from importlib-metadata>=6.6.0->yapf->mmcv==2.0.0) (3.16.2)

Requirement already satisfied: fonttools>=4.22.0 in /root/archiconda3/envs/mmdeploy/lib/python3.8/site-packages (from matplotlib->mmengine>=0.2.0->mmcv==2.0.0) (4.42.0)

Requirement already satisfied: importlib-resources>=3.2.0 in /root/archiconda3/envs/mmdeploy/lib/python3.8/site-packages (from matplotlib->mmengine>=0.2.0->mmcv==2.0.0) (6.0.1)

Requirement already satisfied: python-dateutil>=2.7 in /root/archiconda3/envs/mmdeploy/lib/python3.8/site-packages (from matplotlib->mmengine>=0.2.0->mmcv==2.0.0) (2.8.2)

Requirement already satisfied: pyparsing<3.1,>=2.3.1 in /root/archiconda3/envs/mmdeploy/lib/python3.8/site-packages (from matplotlib->mmengine>=0.2.0->mmcv==2.0.0) (3.0.9)

Requirement already satisfied: cycler>=0.10 in /root/archiconda3/envs/mmdeploy/lib/python3.8/site-packages (from matplotlib->mmengine>=0.2.0->mmcv==2.0.0) (0.11.0)

Requirement already satisfied: contourpy>=1.0.1 in /root/archiconda3/envs/mmdeploy/lib/python3.8/site-packages (from matplotlib->mmengine>=0.2.0->mmcv==2.0.0) (1.1.0)

Requirement already satisfied: kiwisolver>=1.0.1 in /root/archiconda3/envs/mmdeploy/lib/python3.8/site-packages (from matplotlib->mmengine>=0.2.0->mmcv==2.0.0) (1.4.4)

Requirement already satisfied: typing-extensions<5.0,>=4.0.0 in /root/archiconda3/envs/mmdeploy/lib/python3.8/site-packages (from rich->mmengine>=0.2.0->mmcv==2.0.0) (4.7.1)

Requirement already satisfied: markdown-it-py>=2.2.0 in /root/archiconda3/envs/mmdeploy/lib/python3.8/site-packages (from rich->mmengine>=0.2.0->mmcv==2.0.0) (3.0.0)

Requirement already satisfied: pygments<3.0.0,>=2.13.0 in /root/archiconda3/envs/mmdeploy/lib/python3.8/site-packages (from rich->mmengine>=0.2.0->mmcv==2.0.0) (2.16.1)

Requirement already satisfied: mdurl~=0.1 in /root/archiconda3/envs/mmdeploy/lib/python3.8/site-packages (from markdown-it-py>=2.2.0->rich->mmengine>=0.2.0->mmcv==2.0.0) (0.1.2)

Requirement already satisfied: six>=1.5 in /root/archiconda3/envs/mmdeploy/lib/python3.8/site-packages (from python-dateutil>=2.7->matplotlib->mmengine>=0.2.0->mmcv==2.0.0) (1.16.0)

Installing collected packages: mmcv

Running setup.py develop for mmcv

error: subprocess-exited-with-error

× python setup.py develop did not run successfully.

│ exit code: 1

╰─> [152 lines of output]

    running develop

    running egg_info

    writing mmcv.egg-info/PKG-INFO

    writing dependency_links to mmcv.egg-info/dependency_links.txt

    writing requirements to mmcv.egg-info/requires.txt

    writing top-level names to mmcv.egg-info/top_level.txt

    reading manifest file 'mmcv.egg-info/SOURCES.txt'

    reading manifest template 'MANIFEST.in'

    adding license file 'LICENSE'

    adding license file 'LICENSES.md'

    writing manifest file 'mmcv.egg-info/SOURCES.txt'

    running build_ext

    building 'mmcv._ext' extension

    /root/archiconda3/envs/mmdeploy/lib/python3.8/site-packages/setuptools/command/easy_install.py:144:

   EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.

    warnings.warn(

    /root/archiconda3/envs/mmdeploy/lib/python3.8/site-packages/setuptools/command/install.py:34: 

    SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.

    warnings.warn(

    Emitting ninja build file /home/mmcv/build/temp.linux-aarch64-cpython-38/build.ninja...

    Compiling objects...

    Using envvar MAX_JOBS (4) as the number of workers...

    1.11.1.git.kitware.jobserver-1

   ...

   ...

    ...

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/border_align.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/box_iou_rotated.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/carafe.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/carafe_naive.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/chamfer_distance.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/contour_expand.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/convex_iou.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/correlation.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cpu/active_rotated_filter.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cpu/bbox_overlaps_cpu.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cpu/bezier_align.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cpu/box_iou_quadri.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cpu/box_iou_rotated.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cpu/deform_conv.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cpu/modulated_deform_conv.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cpu/nms.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cpu/nms_quadri.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cpu/nms_rotated.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cpu/pixel_group.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cpu/points_in_boxes.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cpu/psamask.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cpu/roi_align.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cpu/roi_align_rotated.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cpu/rotated_feature_align.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cpu/sparse_indice.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cpu/sparse_maxpool.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cpu/sparse_reordering.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cpu/voxelization.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/active_rotated_filter_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/assign_score_withk_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/ball_query_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/bbox_overlaps_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/bezier_align_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/bias_act_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/border_align_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/box_iou_quadri_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/box_iou_rotated_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/carafe_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/carafe_naive_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/chamfer_distance_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/convex_iou.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/correlation_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/cudabind.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/deform_conv_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/deform_roi_pool_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/diff_iou_rotated_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/filtered_lrelu.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/focal_loss_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/furthest_point_sample_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/fused_bias_leakyrelu_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/fused_spconv_ops_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/gather_points_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/group_points_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/iou3d_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/knn_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/masked_conv2d_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/min_area_polygons.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/modulated_deform_conv_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/ms_deform_attn_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/nms_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/nms_quadri_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/nms_rotated_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/points_in_boxes_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/points_in_polygons_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/prroi_pool_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/psamask_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/riroi_align_rotated_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/roi_align_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/roi_align_rotated_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/roi_pool_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/roiaware_pool3d_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/roipoint_pool3d_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/rotated_feature_align_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/scatter_points_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/sparse_indice.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/sparse_maxpool.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/sparse_pool_ops_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/sparse_reordering.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/spconv_ops_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/stack_ball_query_cuda.o: 
   No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/stack_group_points_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/sync_bn_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/three_interpolate_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/three_nn_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/tin_shift_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/upfirdn2d_kernel.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/cuda/voxelization_cuda.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/deform_conv.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/deform_roi_pool.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/diff_iou_rotated.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/filtered_lrelu.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/focal_loss.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/furthest_point_sample.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/fused_bias_leakyrelu.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/fused_spconv_ops.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/gather_points.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/group_points.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/info.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/iou3d.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/knn.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/masked_conv2d.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/min_area_polygons.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/modulated_deform_conv.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/ms_deform_attn.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/nms.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/nms_quadri.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/nms_rotated.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/pixel_group.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/points_in_boxes.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/points_in_polygons.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/prroi_pool.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/psamask.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/pybind.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/riroi_align_rotated.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/roi_align.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/roi_align_rotated.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/roi_pool.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/roiaware_pool3d.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/roipoint_pool3d.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/rotated_feature_align.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/scatter_points.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/sparse_pool_ops.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/spconv_ops.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/sync_bn.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/three_interpolate.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/three_nn.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/tin_shift.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/upfirdn2d.o: No such file or directory

    g++: error: /home/mmcv/build/temp.linux-aarch64-cpython-38/./mmcv/ops/csrc/pytorch/voxelization.o: No such file or directory

    error: command '/usr/bin/g++' failed with exit code 1

    [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.

error: subprocess-exited-with-error`

Reproduction

`ninja: build stopped: subcommand failed.

Traceback (most recent call last):

  File "/root/archiconda3/envs/mmdeploy/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1893, in_run_ninja_build

    subprocess.run(

  File "/root/archiconda3/envs/mmdeploy/lib/python3.8/subprocess.py", line 516, in run

    raise CalledProcessError(retcode, process.args,

subprocess.CalledProcessError: Command '['ninja', '-v', '-j', '4']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:`

Because of the error above, I modified the relevant code according to ninja on the basis of the original tutorial

Environment

root@ubuntu:/project/mmdeploy# nvcc -V

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Sun_Oct_23_22:16:07_PDT_2022
Cuda compilation tools, release 11.4, V11.4.315
Build cuda_11.4.r11.4/compiler.31964100_0
------------------------------------------------------------------
root@ubuntu:/project/mmdeploy# gcc --version

gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
---------------------------------------------------------------------------
root@ubuntu:/project/mmdeploy# env

NVIDIA_VISIBLE_DEVICES=all
CONDA_EXE=/root/archiconda3/bin/conda
HOSTNAME=ubuntu
PYTHON_VERSION=3.8
CMAKE_VER=3.23.1
PWD=/project/mmdeploy
CONDA_PREFIX=/root/archiconda3/envs/mmdeploy
NVIDIA_DRIVER_CAPABILITIES=all
HOME=/root
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
CONDA_PROMPT_MODIFIER=(mmdeploy)
TERM=xterm
OPENBLAS_CORETYPE=ARMV8
CONDA_SHLVL=1
ARCH=aarch64
SHLVL=1
CONDA_PYTHON_EXE=/root/archiconda3/bin/python
LD_LIBRARY_PATH=/usr/local/cuda/lib64:
CONDA_DEFAULT_ENV=mmdeploy
CUDA_HOME=/usr/local/cuda
PATH=/root/archiconda3/envs/mmdeploy/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/archiconda3/bin
BUILD_VERSION=0.15.1
OLDPWD=/project
_=/usr/bin/env

pytorch version : 2.0.0+nv23.05
torchvision : v0.15.1

Error traceback

No response

RunningLeon commented 1 year ago

hi, for the installation of mmcv on jetson, could put it in mmcv repo: https://github.com/open-mmlab/mmcv/issues

StochasticGame commented 1 year ago

hi, for the installation of mmcv on jetson, could put it in mmcv repo: https://github.com/open-mmlab/mmcv/issues您好,对于在jetson上安装mmcv,可以将其放在mmcv存储库中:https://github.com/open-mmlab/mmcv/issues

Hello, can you provide docker based on jetpack5.0 or above? This would make deploying the project easier if possible. thanks for your work

RunningLeon commented 1 year ago

hi, currently we don't have much time to do this, maybe you can write a dockerfile based on l4t-pytorch and give us a PR after testing.

github-actions[bot] commented 1 year ago

This issue is marked as stale because it has been marked as invalid or awaiting response for 7 days without any further response. It will be closed in 5 days if the stale label is not removed or if there is no further response.

github-actions[bot] commented 1 year ago

This issue is closed because it has been stale for 5 days. Please open a new issue if you have similar issues or you have any new updates now.