Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
libclc building fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Blind_Sniper
Guru
Guru


Joined: 20 Apr 2018
Posts: 359

PostPosted: Sun Jul 21, 2024 11:40 am    Post subject: libclc building fails Reply with quote

Hi there!
emerge fails to update system:
Code:
>>> Emerging (1 of 16) dev-libs/libclc-17.0.6::gentoo
 * llvm-project-17.0.6.src.tar.xz BLAKE2B SHA512 size ;-) ...                                                                                                  [ ok ]
 * ERROR: dev-libs/libclc-17.0.6::gentoo failed (setup phase):
 *   No LLVM slot <= 17 satisfying the package's dependencies found installed!
 *
 * Call stack:
 *              ebuild.sh, line 136:  Called pkg_setup
 *   libclc-17.0.6.ebuild, line  56:  Called llvm_pkg_setup
 *            llvm.eclass, line 202:  Called get_llvm_slot '17'
 *            llvm.eclass, line 161:  Called die
 * The specific snippet of code:
 *      die "No LLVM slot${1:+ <= ${1}} satisfying the package's dependencies found installed!"
 *
 * If you need support, post the output of `emerge --info '=dev-libs/libclc-17.0.6::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/libclc-17.0.6::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/libclc-17.0.6/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/libclc-17.0.6/temp/die.env'.
 * Working directory: '/var/tmp/portage/dev-libs/libclc-17.0.6/empty'
 * S: '/var/tmp/portage/dev-libs/libclc-17.0.6/work/libclc'

>>> Failed to emerge dev-libs/libclc-17.0.6, Log file:

>>>  '/var/tmp/portage/dev-libs/libclc-17.0.6/temp/build.log'

 * Messages for package dev-libs/libclc-17.0.6:

 * ERROR: dev-libs/libclc-17.0.6::gentoo failed (setup phase):
 *   No LLVM slot <= 17 satisfying the package's dependencies found installed!
 *
 * Call stack:
 *              ebuild.sh, line 136:  Called pkg_setup
 *   libclc-17.0.6.ebuild, line  56:  Called llvm_pkg_setup
 *            llvm.eclass, line 202:  Called get_llvm_slot '17'
 *            llvm.eclass, line 161:  Called die
 * The specific snippet of code:
 *      die "No LLVM slot${1:+ <= ${1}} satisfying the package's dependencies found installed!"
 *
 * If you need support, post the output of `emerge --info '=dev-libs/libclc-17.0.6::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/libclc-17.0.6::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/libclc-17.0.6/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/libclc-17.0.6/temp/die.env'.
 * Working directory: '/var/tmp/portage/dev-libs/libclc-17.0.6/empty'
 * S: '/var/tmp/portage/dev-libs/libclc-17.0.6/work/libclc'


Code:
emerge --info llvm

sys-devel/llvm-16.0.6::gentoo was built with the following:
USE="binutils-plugin libffi ncurses zstd -debug -doc -exegesis -libedit -test -verify-sig -xar -xml -z3" LLVM_TARGETS="(AArch64) (AMDGPU) (ARM) (AVR) (BPF) (Hexagon) (Lanai) (LoongArch) (MSP430) (Mips) (NVPTX) (PowerPC) (RISCV) (Sparc) (SystemZ) (VE) (WebAssembly) (X86) (XCore) (-ARC) (-CSKY) (-DirectX) (-M68k) (-SPIRV) (-Xtensa)"


sys-devel/llvm-17.0.6::gentoo was built with the following:
USE="binutils-plugin libffi ncurses zstd -debug -debuginfod -doc -exegesis -libedit -test -verify-sig -xar -xml -z3" LLVM_TARGETS="(AArch64) (AMDGPU) (ARM) (AVR) (BPF) (Hexagon) (Lanai) (LoongArch) (MSP430) (Mips) (NVPTX) (PowerPC) (RISCV) (Sparc) (SystemZ) (VE) (WebAssembly) (X86) (XCore) -ARC -CSKY -DirectX -M68k -SPIRV -Xtensa"


Code:
emerge -pqv '=dev-libs/libclc-17.0.6::gentoo'

 * IMPORTANT: config file '/etc/portage/package.use/package.use' needs updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.
[ebuild  N    ] dev-libs/libclc-17.0.6  USE="spirv -verify-sig" VIDEO_CARDS="-nvidia -r600 -radeonsi"


Tried to disable spirv flag for libclc - it doesn't help. Emerge complains that spirv flag should be enabled and refuses to compile libclc

What kind of llvm emerge needs for building libclc?
_________________
GNU is Not Usable
Back to top
View user's profile Send private message
bstaletic
Guru
Guru


Joined: 05 Apr 2014
Posts: 313

PostPosted: Mon Jul 22, 2024 6:06 pm    Post subject: Reply with quote

According to the libclc-17.0.6.ebuild, you are expected to have a clang compiler from either of the slots from 13 to 17, and the corresponding spirv-llvm-translator.
Both of those are libclc's BDEPENDs. Are you trying to emerge libclc without its dependencies?
Back to top
View user's profile Send private message
Blind_Sniper
Guru
Guru


Joined: 20 Apr 2018
Posts: 359

PostPosted: Tue Jul 23, 2024 10:08 am    Post subject: Reply with quote

Yes, I solved it already. I had my system free of clang till now, but now it became mandatory to have another one compiler. How much of compiler do we need? 5? 10? 20? Dedicated compiler for every f*cking library? Entire the rust compiler for one lib - librsvg, another clang compiler for another one lib - libclc.
Gentoo turns into bloatware :? Emerge pulls in few new packages every f*cking week. Eight new packages last week (related to clang)...
_________________
GNU is Not Usable
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22364

PostPosted: Tue Jul 23, 2024 12:02 pm    Post subject: Reply with quote

Gentoo passes through upstream's decisions. In the case of librsvg, upstream abandoned the no-Rust build, so either you stick with an outdated version (that likely has published CVEs by now) that works without Rust, you tolerate Rust, or you remove librsvg entirely (and everything which hard-depends on it). As I read the mesa ebuild, libclc is optional. If you don't want it, disable USE=opencl.
Back to top
View user's profile Send private message
Blind_Sniper
Guru
Guru


Joined: 20 Apr 2018
Posts: 359

PostPosted: Tue Jul 23, 2024 12:09 pm    Post subject: Reply with quote

Hu wrote:
As I read the mesa ebuild, libclc is optional. If you don't want it, disable USE=opencl.

I will try it, thanks!
_________________
GNU is Not Usable
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1941
Location: 127.0.0.1

PostPosted: Wed Jul 24, 2024 11:36 am    Post subject: Reply with quote

Hu wrote:
As I read the mesa ebuild, libclc is optional. If you don't want it, disable USE=opencl.

With newest versions of mesa (>=24.1.x), if you have VIDEO_CARDS="intel" on, dev-libs/libclc and dev-util/intel_clc are required.
This pulls in clang and llvm. See bug #936399 for details.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum