Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 904821 - dev-libs/rocm-opencl-runtime miss dependency
Summary: dev-libs/rocm-opencl-runtime miss dependency
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Craig Andrews
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-04-22 12:35 UTC by Yevgeny Filatov
Modified: 2023-07-05 18:22 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dependency patch (rocm-opencl-runtime-5.4.3-fix-dependency.patch,335 bytes, patch)
2023-04-22 12:47 UTC, Yevgeny Filatov
Details | Diff
fixed ebuild (rocm-opencl-runtime-5.4.3-r1.ebuild,3.77 KB, text/plain)
2023-04-22 12:48 UTC, Yevgeny Filatov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yevgeny Filatov 2023-04-22 12:35:20 UTC
For building dev-libs/rocm-opencl-runtime required dev-util/opencl-headers

otherwise, an error occurs

>>> Configuring source in /var/calculate/tmp/portage/dev-libs/rocm-opencl-runtime-5.4.3/work/ROCm-OpenCL-Runtime-rocm-5.4.3 ...
 * Source directory (CMAKE_USE_DIR): "/var/calculate/tmp/portage/dev-libs/rocm-opencl-runtime-5.4.3/work/ROCm-OpenCL-Runtime-rocm-5.4.3"
 * Build directory  (BUILD_DIR):     "/var/calculate/tmp/portage/dev-libs/rocm-opencl-runtime-5.4.3/work/ROCm-OpenCL-Runtime-rocm-5.4.3_build"
cmake -C /var/calculate/tmp/portage/dev-libs/rocm-opencl-runtime-5.4.3/work/ROCm-OpenCL-Runtime-rocm-5.4.3_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -Wno-dev -DROCCLR_PATH=/var/calculate/tmp/portage/dev-libs/rocm-opencl-runtime-5.4.3/work/ROCclr-rocm-5.4.3 -DAMD_OPENCL_PATH=/var/calculate/tmp/portage/dev-libs/rocm-opencl-runtime-5.4.3/work/ROCm-OpenCL-Runtime-rocm-5.4.3 -DROCM_PATH=/usr -DBUILD_TESTS=OFF -DEMU_ENV=ON -DBUILD_ICD=OFF -DFILE_REORG_BACKWARD_COMPATIBILITY=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=/var/calculate/tmp/portage/dev-libs/rocm-opencl-runtime-5.4.3/work/ROCm-OpenCL-Runtime-rocm-5.4.3_build/gentoo_toolchain.cmake /var/calculate/tmp/portage/dev-libs/rocm-opencl-runtime-5.4.3/work/ROCm-OpenCL-Runtime-rocm-5.4.3
loading initial cache file /var/calculate/tmp/portage/dev-libs/rocm-opencl-runtime-5.4.3/work/ROCm-OpenCL-Runtime-rocm-5.4.3_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 12.2.1
-- The CXX compiler identification is GNU 12.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc - 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/x86_64-pc-linux-gnu-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for CL_VERSION_3_0
-- Looking for CL_VERSION_3_0 - not found
-- Looking for CL_VERSION_2_2
-- Looking for CL_VERSION_2_2 - not found
-- Looking for CL_VERSION_2_1
-- Looking for CL_VERSION_2_1 - not found
-- Looking for CL_VERSION_2_0
-- Looking for CL_VERSION_2_0 - not found
-- Looking for CL_VERSION_1_2
-- Looking for CL_VERSION_1_2 - not found
-- Looking for CL_VERSION_1_1
-- Looking for CL_VERSION_1_1 - not found
-- Looking for CL_VERSION_1_0
-- Looking for CL_VERSION_1_0 - not found
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find OpenCL (missing: OpenCL_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake/Modules/FindOpenCL.cmake:163 (find_package_handle_standard_args)
  CMakeLists.txt:27 (find_package)


Reproducible: Always
Comment 1 Yevgeny Filatov 2023-04-22 12:47:50 UTC
Created attachment 860522 [details, diff]
dependency patch
Comment 2 Yevgeny Filatov 2023-04-22 12:48:25 UTC
Created attachment 860523 [details]
fixed ebuild
Comment 3 Larry the Git Cow gentoo-dev 2023-07-05 18:22:41 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0977961d2c9dc71439815a4b6e3e9b0adead86d

commit e0977961d2c9dc71439815a4b6e3e9b0adead86d
Author:     Yiyang Wu <xgreenlandforwyy@gmail.com>
AuthorDate: 2023-04-28 12:35:29 +0000
Commit:     Craig Andrews <candrews@gentoo.org>
CommitDate: 2023-07-05 18:22:28 +0000

    dev-libs/rocm-opencl-runtime: add missing build dependency
    
    dev-util/opencl-headers should be one of build dependencies
    
    Closes: https://bugs.gentoo.org/904821
    Suggested-by: Yevgeny Filatov <itspec.ru@gmail.com>
    Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/30790
    Signed-off-by: Craig Andrews <candrews@gentoo.org>

 dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.1.3.ebuild    | 3 ++-
 dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.3.3-r1.ebuild | 3 ++-
 dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.4.3.ebuild    | 3 ++-
 dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-9999.ebuild     | 3 ++-
 4 files changed, 8 insertions(+), 4 deletions(-)