[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1035784: librocrand-dev: Missing Depends on libamdhip64-dev



Package: librocrand-dev
Version: 5.3.3-1
Severity: normal
X-Debbugs-Cc: cgmb@slerp.xyz

Dear Maintainer,

The librocrand-dev package is missing a dependency on libamdhip64-dev.

# What was done?

In a fresh Bookworm container,

    apt-get -y update
    apt-get -y install build-essential cmake librocrand-dev
    cat << 'EOF' > main.c
    #include <rocrand/rocrand.h>
    int main() {
      return 0;
    }
    EOF
    cat << 'EOF' > CMakeLists.txt
    cmake_minimum_required(VERSION 3.16)
    project(example LANGUAGES C)
    find_package(rocrand REQUIRED)
    add_executable(example main.c)
    target_link_libraries(example PRIVATE roc::rocrand)
    EOF
    cmake -S. -Bbuild
    gcc -c main.c


# What was seen?

    # cmake -S. -Bbuild
    -- The C compiler identification is GNU 12.2.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
    CMake Error at /usr/share/cmake-3.25/Modules/CMakeFindDependencyMacro.cmake:47 (find_package):
      By not providing "Findhip.cmake" in CMAKE_MODULE_PATH this project has
      asked CMake to find a package configuration file provided by "hip", but
      CMake did not find one.
    
      Could not find a package configuration file provided by "hip" with any of
      the following names:
    
        hipConfig.cmake
        hip-config.cmake
    
      Add the installation prefix of "hip" to CMAKE_PREFIX_PATH or set "hip_DIR"
      to a directory containing one of the above files.  If "hip" provides a
      separate development package or SDK, be sure it has been installed.
    Call Stack (most recent call first):
      /usr/lib/x86_64-linux-gnu/cmake/rocrand/rocrand-config.cmake:90 (find_dependency)
      CMakeLists.txt:3 (find_package)
    
    
    -- Configuring incomplete, errors occurred!

    # gcc -c main.c
    In file included from main.c:1:
    /usr/include/rocrand/rocrand.h:29:10: fatal error: hip/hip_runtime.h: No such file or directory
       29 | #include <hip/hip_runtime.h>
          |          ^~~~~~~~~~~~~~~~~~~
    compilation terminated.

# What was expected?

Installing librocrand-dev should be sufficient to ensure that
find_package(rocrand) is successful. Therefore, the librocrand-dev
package should depend on libamdhip64-dev.

-- System Information:
Debian Release: 12.0
  APT prefers testing-security
  APT policy: (500, 'testing-security'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-8-amd64 (SMP w/32 CPU threads; PREEMPT)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages librocrand-dev depends on:
ii  librocrand1  5.3.3-1

librocrand-dev recommends no packages.

librocrand-dev suggests no packages.

-- no debconf information


Reply to: