Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 763654 - media-tv/v4l-utils-1.20.0 : * clang does not support the BPF target. Please check LLVM_TARGETS.
Summary: media-tv/v4l-utils-1.20.0 : * clang does not support the BPF target. Please ...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: James Le Cuirot
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-05 08:27 UTC by Toralf Förster
Modified: 2021-01-19 07:08 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.79 KB, text/plain)
2021-01-05 08:27 UTC, Toralf Förster
Details
die.env (die.env,201.69 KB, text/plain)
2021-01-05 08:27 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,86.00 KB, text/plain)
2021-01-05 08:27 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,13.49 KB, application/x-bzip)
2021-01-05 08:27 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,1.28 KB, application/x-bzip)
2021-01-05 08:27 UTC, Toralf Förster
Details
media-tv:v4l-utils-1.20.0:20210104-234253.log (media-tv:v4l-utils-1.20.0:20210104-234253.log,1.29 KB, text/plain)
2021-01-05 08:27 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-01-05 08:27:06 UTC
 * ERROR: media-tv/v4l-utils-1.20.0::gentoo failed (pretend phase):
 *   clang does not support the BPF target. Please check LLVM_TARGETS.
 * 

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop-20210102-162234

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10.2.0 *
/usr/lib/llvm/11
11.0.0
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.9 (fallback)
Available Ruby profiles:
  [1]   ruby25 (with Rubygems)
  [2]   ruby26 (with Rubygems)
  [3]   ruby27 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.48.0 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.272_p10 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.8.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Mon Jan  4 11:05:12 PM UTC 2021

emerge -qpvO media-tv/v4l-utils
[ebuild  N    ] media-tv/v4l-utils-1.20.0  USE="bpf opengl qt5 udev -dvb"
Comment 1 Toralf Förster gentoo-dev 2021-01-05 08:27:07 UTC
Created attachment 681214 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-01-05 08:27:09 UTC
Created attachment 681217 [details]
die.env
Comment 3 Toralf Förster gentoo-dev 2021-01-05 08:27:10 UTC
Created attachment 681220 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-01-05 08:27:12 UTC
Created attachment 681223 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2021-01-05 08:27:13 UTC
Created attachment 681226 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2021-01-05 08:27:13 UTC
Created attachment 681229 [details]
media-tv:v4l-utils-1.20.0:20210104-234253.log
Comment 7 James Le Cuirot gentoo-dev 2021-01-05 09:14:14 UTC
This has most likely happened because you have an old version of clang installed with LLVM_TARGETS="BPF" but your latest installed version does not have it. This is what the check is supposed to guard against. Unfortunately there's no way to enforce this purely through Portage dependencies. :( I could iterate through numbered SLOTs with has_version but it wouldn't be pretty so I'd rather not. Unfortunately there's no ebuild helper to iterate through installed versions like portageq can.
Comment 8 Ashley Skye 2021-01-17 07:58:04 UTC
I'm seeing this issue with no clang/llvm installed and with the correct LLVM_TARGETS defined. In other words, portage should be pulling in the correct packages, but they are not installed now, and I get this error. That can't be what is intended. Should I have to to install clang first manually before installing this package? That seems counterintuitive to the idea of a package manager.
Comment 9 Larry the Git Cow gentoo-dev 2021-01-17 10:29:02 UTC
The bug has been referenced in the following commit(s):

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

commit 9eca9891419d58dde8eb284ed60a6dd71278e08f
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2021-01-17 10:27:16 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2021-01-17 10:27:16 +0000

    media-tv/v4l-utils: Only check Clang in pkg_pretend when installed
    
    I forgot that pkg_pretend() fires before dependencies are
    installed. We therefore need to check again in pkg_setup().
    
    Bug: https://bugs.gentoo.org/763654
    Package-Manager: Portage-3.0.13, Repoman-3.0.1
    Signed-off-by: James Le Cuirot <chewi@gentoo.org>

 media-tv/v4l-utils/v4l-utils-1.20.0.ebuild | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
Comment 10 Ashley Skye 2021-01-19 07:08:50 UTC
Thanks!