Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 939908 - dev-libs/rocr-runtime-6.1.2 uses the wrong LLVM_SLOT
Summary: dev-libs/rocr-runtime-6.1.2 uses the wrong LLVM_SLOT
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sv. Lockal
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-20 18:50 UTC by Pablo Cholaky
Modified: 2024-09-20 19:19 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pablo Cholaky 2024-09-20 18:50:26 UTC
Hi,

ROCR Runtime uses the LLVM 19 even if 18 is specified. And of course, it fails.

[ebuild  N     ] dev-libs/rocr-runtime-6.1.2:0/6.1::gentoo  USE="-debug" LLVM_SLOT="18" 0 KiB

Total: 1 package (1 new), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] 

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-libs/rocr-runtime-6.1.2::gentoo
openpty failed: 'out of pty devices'
 * rocr-runtime-6.1.2.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                                                             [ ok ]
>>> Unpacking source...
>>> Unpacking rocr-runtime-6.1.2.tar.gz to /var/tmp/portage/dev-libs/rocr-runtime-6.1.2/work
>>> Source unpacked in /var/tmp/portage/dev-libs/rocr-runtime-6.1.2/work
>>> Preparing source in /var/tmp/portage/dev-libs/rocr-runtime-6.1.2/work/ROCR-Runtime-rocm-6.1.2/src ...
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/dev-libs/rocr-runtime-6.1.2/work/ROCR-Runtime-rocm-6.1.2/src"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/dev-libs/rocr-runtime-6.1.2/work/ROCR-Runtime-rocm-6.1.2/src_build"
 * Applying rocr-runtime-4.3.0_no-aqlprofiler.patch ...                                                                                                                                                                              [ ok ]
 * Applying rocr-runtime-5.7.1-extend-isa-compatibility-check.patch ...                                                                                                                                                              [ ok ]
 * Applying rocr-runtime-6.1.0-musl.patch ...                                                                                                                                                                                        [ ok ]
 * Applying rocr-runtime-6.1.0-ld-lld.patch ...                                                                                                                                                                                      [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-libs/rocr-runtime-6.1.2/work/ROCR-Runtime-rocm-6.1.2/src ...
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/dev-libs/rocr-runtime-6.1.2/work/ROCR-Runtime-rocm-6.1.2/src"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/dev-libs/rocr-runtime-6.1.2/work/ROCR-Runtime-rocm-6.1.2/src_build"
cmake -C /var/tmp/portage/dev-libs/rocr-runtime-6.1.2/work/ROCR-Runtime-rocm-6.1.2/src_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/dev-libs/rocr-runtime-6.1.2/work/ROCR-Runtime-rocm-6.1.2/src_build/gentoo_toolchain.cmake /var/tmp/portage/dev-libs/rocr-runtime-6.1.2/work/ROCR-Runtime-rocm-6.1.2/src
loading initial cache file /var/tmp/portage/dev-libs/rocr-runtime-6.1.2/work/ROCR-Runtime-rocm-6.1.2/src_build/gentoo_common_config.cmake
-- The C compiler identification is Clang 19.1.0
-- The CXX compiler identification is Clang 19.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/lib/llvm/19/bin/clang-19 - 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/lib/llvm/19/bin/clang++-19 - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
...

Reproducible: Always

Steps to Reproduce:
1. Try building
2. See the output
3. See the crash at the end due coding syntax
Actual Results:  
Takes LLVM19 for building

Expected Results:  
Take LLVM18 for building

Using default/linux/amd64/23.0/musl/llvm on a CHROOT environment.
Comment 1 Pablo Cholaky 2024-09-20 18:52:29 UTC
LLVM versions installed:

[N] dev-ml/llvm-ocaml ((~)19.1.0(0/19.1.0)): OCaml bindings for LLVM
[I] dev-util/spirv-llvm-translator (18.1.4(18)@09/20/24): Bi-directional translator between SPIR-V and LLVM IR
[N] sec-keys/openpgp-keys-llvm (18.1.6): OpenPGP keys used to sign LLVM releases
[I] sys-devel/llvm (18.1.8-r4(18/18.1)@09/20/24 19.1.0(19/19.1)@09/20/24): Low Level Virtual Machine
[I] sys-devel/llvm-common (19.1.0@09/20/24): Common files shared between multiple slots of LLVM
[I] sys-devel/llvm-toolchain-symlinks (18-r1(18)@09/20/24 19(19)@09/20/24): Symlinks to use LLVM on binutils-free system
[N] sys-devel/llvmgold ((~)19): LLVMgold plugin symlink for autoloading
[I] sys-libs/llvm-libunwind (19.1.0@09/20/24): C++ runtime stack unwinder from LLVM

Clang versions installed:

[I] sys-devel/clang (18.1.8(18/18.1)@09/20/24 19.1.0(19/19.1)@09/20/24): C language family frontend for LLVM
[I] sys-devel/clang-common (19.1.0@09/20/24): Common files shared between multiple slots of clang
[N] sys-devel/clang-crossdev-wrappers (--): Symlinks to a Clang crosscompiler
[I] sys-devel/clang-runtime (18.1.8(18)@09/20/24 19.1.0(19)@09/20/24): Meta-ebuild for clang runtime libraries
[I] sys-devel/clang-toolchain-symlinks (18(18)@09/20/24 19(19)@09/20/24): Symlinks to use Clang on GCC-free system