Skip to content

Some issues while run CMAKE_PREFIX_PATH=$CONDA_PREFIX/lib/python3.9/site-packages/pybind11/share/cmake/pybind11 bash build_all_conda.sh #394

@ZIHNN

Description

@ZIHNN

In fact,my CUDA toolkit is 12.0,and my GPU is 2080ti.I can't find a totally suitable torch to match my CUDA,so I was suggested to download torch 210-cu118,and I have changed common.h and build_all_conda.sh.My issue is as 1.Is it neccessary for me to change my CUDA toolkit? But I met a new issue2 when attempting to download CUDA toolkit 11.8:

1.-- The C compiler identification is GNU 13.3.0
-- The CXX compiler identification is GNU 13.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning (dev) at CMakeLists.txt:10 (find_package):
Policy CMP0167 is not set: The FindBoost module is removed. Run "cmake
--help-policy CMP0167" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

This warning is for project developers. Use -Wno-dev to suppress it.

-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.83.0/BoostConfig.cmake (found version "1.83.0") found components: system program_options
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
CMake Warning (dev) at /home/tianzh/anaconda3/envs/foundationpose/lib/python3.9/site-packages/pybind11/share/cmake/pybind11/FindPythonLibsNew.cmake:101 (message):
Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
are removed. Run "cmake --help-policy CMP0148" for policy details. Use
the cmake_policy command to set the policy and suppress this warning, or
preferably upgrade to using FindPython, either by calling it explicitly
before pybind11, or by setting PYBIND11_FINDPYTHON ON before pybind11.
Call Stack (most recent call first):
/home/tianzh/anaconda3/envs/foundationpose/lib/python3.9/site-packages/pybind11/share/cmake/pybind11/pybind11Tools.cmake:50 (find_package)
/home/tianzh/anaconda3/envs/foundationpose/lib/python3.9/site-packages/pybind11/share/cmake/pybind11/pybind11Common.cmake:192 (include)
/home/tianzh/anaconda3/envs/foundationpose/lib/python3.9/site-packages/pybind11/share/cmake/pybind11/pybind11Config.cmake:250 (include)
CMakeLists.txt:13 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found PythonInterp: /home/tianzh/anaconda3/envs/foundationpose/bin/python (found suitable version "3.9.25", minimum required is "3.6")
-- Found PythonLibs: /home/tianzh/anaconda3/envs/foundationpose/lib/libpython3.9.so
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- Found pybind11: /home/tianzh/anaconda3/envs/foundationpose/lib/python3.9/site-packages/pybind11/include (found version "2.12.0")
-- Configuring done (0.6s)
-- Generating done (0.0s)
-- Build files have been written to: /home/tianzh/桌面/FoundationPose/mycpp/build
[ 66%] Building CXX object CMakeFiles/mycpp.dir/src/app/pybind_api.cpp.o
[ 66%] Building CXX object CMakeFiles/mycpp.dir/src/Utils.cpp.o
/home/tianzh/桌面/FoundationPose/mycpp/src/app/pybind_api.cpp: In function ‘vectorMatrix4f cluster_poses(float, float, const vectorMatrix4f&, const vectorMatrix4f&)’:
/home/tianzh/桌面/FoundationPose/mycpp/src/app/pybind_api.cpp:26:38: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘std::vector<Eigen::Matrix<float, 4, 4>, Eigen::aligned_allocator<Eigen::Matrix<float, 4, 4> > >::size_type’ {aka ‘long unsigned int’} [-Wformat=]
26 | printf("num original candidates = %d\n",poses_in.size());
| ~^ ~~~~~~~~~~~~~~~
| | |
| int std::vector<Eigen::Matrix<float, 4, 4>, Eigen::aligned_allocator<Eigen::Matrix<float, 4, 4> > >::size_type {aka long unsigned int}
| %ld
/home/tianzh/桌面/FoundationPose/mycpp/src/app/pybind_api.cpp:66:42: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘std::vector<Eigen::Matrix<float, 4, 4>, Eigen::aligned_allocator<Eigen::Matrix<float, 4, 4> > >::size_type’ {aka ‘long unsigned int’} [-Wformat=]
66 | printf("num of pose after clustering: %d\n",poses_out.size());
| ~^ ~~~~~~~~~~~~~~~~
| | |
| int std::vector<Eigen::Matrix<float, 4, 4>, Eigen::aligned_allocator<Eigen::Matrix<float, 4, 4> > >::size_type {aka long unsigned int}
| %ld
[100%] Linking CXX shared module mycpp.cpython-39-x86_64-linux-gnu.so
lto-wrapper: warning: using serial compilation of 2 LTRANS jobs
lto-wrapper: note: see the ‘-flto’ option documentation for more information
[100%] Built target mycpp
Obtaining file:///home/tianzh/%E6%A1%8C%E9%9D%A2/FoundationPose/bundlesdf/mycuda
Checking if build backend supports build_editable ... done
Preparing editable metadata (pyproject.toml) ... done
Building wheels for collected packages: common
Building editable for common (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building editable for common (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [77 lines of output]
/home/tianzh/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/dist.py:266: UserWarning: Unknown distribution option: 'extra_cflags'
warnings.warn(msg)
/home/tianzh/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/dist.py:266: UserWarning: Unknown distribution option: 'extra_cuda_cflags'
warnings.warn(msg)
running editable_wheel
creating /tmp/pip-ephem-wheel-cache-rdz2xyfq/wheels/a5/ad/31/ebf69c88a01800ed58e8ae3b7946cef78dfef31a45e8e7db98/tmpbraglugg/.tmp-avt7vfga/common.egg-info
writing /tmp/pip-ephem-wheel-cache-rdz2xyfq/wheels/a5/ad/31/ebf69c88a01800ed58e8ae3b7946cef78dfef31a45e8e7db98/tmpbraglugg/.tmp-avt7vfga/common.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-ephem-wheel-cache-rdz2xyfq/wheels/a5/ad/31/ebf69c88a01800ed58e8ae3b7946cef78dfef31a45e8e7db98/tmpbraglugg/.tmp-avt7vfga/common.egg-info/dependency_links.txt
writing top-level names to /tmp/pip-ephem-wheel-cache-rdz2xyfq/wheels/a5/ad/31/ebf69c88a01800ed58e8ae3b7946cef78dfef31a45e8e7db98/tmpbraglugg/.tmp-avt7vfga/common.egg-info/top_level.txt
writing manifest file '/tmp/pip-ephem-wheel-cache-rdz2xyfq/wheels/a5/ad/31/ebf69c88a01800ed58e8ae3b7946cef78dfef31a45e8e7db98/tmpbraglugg/.tmp-avt7vfga/common.egg-info/SOURCES.txt'
reading manifest file '/tmp/pip-ephem-wheel-cache-rdz2xyfq/wheels/a5/ad/31/ebf69c88a01800ed58e8ae3b7946cef78dfef31a45e8e7db98/tmpbraglugg/.tmp-avt7vfga/common.egg-info/SOURCES.txt'
writing manifest file '/tmp/pip-ephem-wheel-cache-rdz2xyfq/wheels/a5/ad/31/ebf69c88a01800ed58e8ae3b7946cef78dfef31a45e8e7db98/tmpbraglugg/.tmp-avt7vfga/common.egg-info/SOURCES.txt'
creating '/tmp/pip-ephem-wheel-cache-rdz2xyfq/wheels/a5/ad/31/ebf69c88a01800ed58e8ae3b7946cef78dfef31a45e8e7db98/tmpbraglugg/.tmp-avt7vfga/common-0.0.0.dist-info'
creating /tmp/pip-ephem-wheel-cache-rdz2xyfq/wheels/a5/ad/31/ebf69c88a01800ed58e8ae3b7946cef78dfef31a45e8e7db98/tmpbraglugg/.tmp-avt7vfga/common-0.0.0.dist-info/WHEEL
running build_ext
Traceback (most recent call last):
File "/home/tianzh/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/command/editable_wheel.py", line 155, in run
self._create_wheel_file(bdist_wheel)
File "/home/tianzh/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/command/editable_wheel.py", line 357, in _create_wheel_file
files, mapping = self._run_build_commands(dist_name, unpacked, lib, tmp)
File "/home/tianzh/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/command/editable_wheel.py", line 280, in _run_build_commands
self._run_build_subcommands()
File "/home/tianzh/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/command/editable_wheel.py", line 307, in _run_build_subcommands
self.run_command(name)
File "/home/tianzh/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
self.distribution.run_command(command)
File "/home/tianzh/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/dist.py", line 967, in run_command
super().run_command(command)
File "/home/tianzh/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/tianzh/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 91, in run
_build_ext.run(self)
File "/home/tianzh/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 359, in run
self.build_extensions()
File "/home/tianzh/anaconda3/envs/foundationpose/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 499, in build_extensions
_check_cuda_version(compiler_name, compiler_version)
File "/home/tianzh/anaconda3/envs/foundationpose/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 376, in _check_cuda_version
cuda_version_str = subprocess.check_output([nvcc, '--version']).strip().decode(*SUBPROCESS_DECODE_ARGS)
File "/home/tianzh/anaconda3/envs/foundationpose/lib/python3.9/subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/home/tianzh/anaconda3/envs/foundationpose/lib/python3.9/subprocess.py", line 505, in run
with Popen(*popenargs, **kwargs) as process:
File "/home/tianzh/anaconda3/envs/foundationpose/lib/python3.9/subprocess.py", line 951, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/home/tianzh/anaconda3/envs/foundationpose/lib/python3.9/subprocess.py", line 1837, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/cuda-11.8/bin/nvcc'
/home/tianzh/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/dist.py:988: _DebuggingTips: Problem in editable installation.
!!

          ********************************************************************************
          An error happened while installing `common` in editable mode.
  
          The following steps are recommended to help debug this problem:
  
          - Try to install the project normally, without using the editable mode.
            Does the error still persist?
            (If it does, try fixing the problem before attempting the editable mode).
          - If you are using binary extensions, make sure you have all OS-level
            dependencies installed (e.g. compilers, toolchains, binary libraries, ...).
          - Try the latest version of setuptools (maybe the error was already fixed).
          - If you (or your project dependencies) are using any setuptools extension
            or customization, make sure they support the editable mode.
  
          After following the steps above, if the problem still persists and
          you think this is related to how setuptools handles editable installations,
          please submit a reproducible example
          (see https://stackoverflow.com/help/minimal-reproducible-example) to:
  
              https://github.com/pypa/setuptools/issues
  
          See https://setuptools.pypa.io/en/latest/userguide/development_mode.html for details.
          ********************************************************************************
  
  !!
    cmd_obj.run()
  error: [Errno 2] No such file or directory: '/usr/local/cuda-11.8/bin/nvcc'
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building editable for common
Failed to build common
error: failed-wheel-build-for-install

× Failed to build installable wheels for some pyproject.toml based projects
╰─> common

  1. nvidia-kernel-common-560 : 冲突: nvidia-kernel-common
    nvidia-kernel-common-580 : 冲突: nvidia-kernel-common
    E: 错误,pkgProblemResolver::Resolve 发生故障,这可能是有软件包被要求保持现状的缘故。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions