Default: # emerge -1p llvm These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] sys-devel/llvm-common-12.0.0::gentoo 131,081 KiB [ebuild N ] sys-devel/llvm-12.0.0:12::gentoo USE="libffi ncurses test xml -debug -doc -exegesis -gold -libedit -xar -z3" LLVM_TARGETS="AMDGPU BPF NVPTX (X86) -AArch64 -ARC -ARM -AVR (-CSKY) -Hexagon -Lanai -MSP430 -Mips -PowerPC -RISCV -Sparc -SystemZ -VE -WebAssembly -XCore" 193 KiB Total: 2 packages (2 new), Size of downloads: 131,274 KiB Add to package.use: */* LLVM_TARGETS: ARM -NVPTX # emerge -1p llvm These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] sys-devel/llvm-common-12.0.0::gentoo 131,081 KiB [ebuild N ] sys-devel/llvm-12.0.0:12::gentoo USE="libffi ncurses test xml -debug -doc -exegesis -gold -libedit -xar -z3" LLVM_TARGETS="AMDGPU ARM BPF NVPTX (X86) -AArch64 -ARC -AVR (-CSKY) -Hexagon -Lanai -MSP430 -Mips -PowerPC -RISCV -Sparc -SystemZ -VE -WebAssembly -XCore" 193 KiB Total: 2 packages (2 new), Size of downloads: 131,274 KiB Portage picks up the additional ARM target, but not the negation of the NVPTX target.
Have you tried to add it inside /etc/portage/profile/package.use.force too?
(In reply to Marco Scardovi (scardracs) from comment #1) > Have you tried to add it inside /etc/portage/profile/package.use.force too? No. I can get it to work with USE=-llvm_targets_NVPTX on the command line (or in package.use), but I just sort of expected portage to handle LLVM_TARGETS the same way it handles all other expansions.
This works for me: # # emerge -pvO llvm These are the packages that would be merged, in order: [ebuild R ] sys-devel/llvm-12.0.1:12::gentoo USE="libffi ncurses xml -debug -doc -exegesis -gold -libedit -test -xar -z3" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="AMDGPU BPF NVPTX (X86) -AArch64 -ARC -ARM -AVR -CSKY -Hexagon -Lanai -MSP430 -Mips -PowerPC -RISCV -Sparc -SystemZ -VE -WebAssembly -XCore" 0 KiB Total: 1 package (1 reinstall), Size of downloads: 0 KiB # echo "*/* LLVM_TARGETS: -AMDGPU" >> /etc/portage/package.use/test # emerge -pvO llvm These are the packages that would be merged, in order: [ebuild R ] sys-devel/llvm-12.0.1:12::gentoo USE="libffi ncurses xml -debug -doc -exegesis -gold -libedit -test -xar -z3" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="BPF NVPTX (X86) -AArch64 -AMDGPU* -ARC -ARM -AVR -CSKY -Hexagon -Lanai -MSP430 -Mips -PowerPC -RISCV -Sparc -SystemZ -VE -WebAssembly -XCore" 0 KiB Total: 1 package (1 reinstall), Size of downloads: 0 KiB #
Is it possible you have a later package.use entry which turns it back on? Can you check "grep -ri llvm_targets /etc/portage" output?
I know that's a necrobump, but for general info (as probably someone will come here again), you can look at [1] too. [1] https://forums.gentoo.org/viewtopic-p-8694149.html?sid=b6d1cfd02c9b2224094a7cb6591051f0