I built this package as a binpkg on another host, but when emerging on the target system without clang build dependency I receive an error: > clang does not support the BPF target. Please check LLVM_TARGETS. Reproducible: Always Actual Results: $ emerge -1G media-tv/v4l-utils This action requires superuser access... Would you like to add --pretend to options? [Yes/No] n [+]dbn@alf:~ $ sudo emerge -1G media-tv/v4l-utils * IMPORTANT: 2 news items need reading for repository 'gentoo'. * Use eselect news read to view new items. These are the packages that would be merged, in order: Calculating dependencies... done! [binary U ] media-libs/libv4l-1.20.0 [1.16.6] USE="-dvb%" [binary U ] media-tv/v4l-utils-1.20.0 [1.16.6] USE="udev%* -dvb%" Would you like to merge these packages? [Yes/No] >>> Running pre-merge checks for media-tv/v4l-utils-1.20.0 * ERROR: media-tv/v4l-utils-1.20.0::gentoo failed (pretend phase): * clang does not support the BPF target. Please check LLVM_TARGETS. * * Call stack: * ebuild.sh, line 125: Called pkg_pretend * environment, line 1922: Called die * The specific snippet of code: * ${clang} -target bpf -print-supported-cpus &> /dev/null || die "${clang} does not support the BPF target. Please check LLVM_TARGETS."; * * If you need support, post the output of `emerge --info '=media-tv/v4l-utils-1.20.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=media-tv/v4l-utils-1.20.0::gentoo'`. * The complete build log is located at '/var/tmp/portage/media-tv/v4l-utils-1.20.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-tv/v4l-utils-1.20.0/temp/environment'. * Working directory: '/var/tmp/portage/media-tv/v4l-utils-1.20.0/homedir' * S: '/var/tmp/portage/media-tv/v4l-utils-1.20.0/work/v4l-utils-1.20.0' >>> Failed to emerge media-tv/v4l-utils-1.20.0, Log file: >>> '/var/tmp/portage/media-tv/v4l-utils-1.20.0/temp/build.log' * Package: media-tv/v4l-utils-1.20.0 * Repository: gentoo * USE: udev amd64 abi_x86_64 opengl kernel_linux bpf elibc_glibc qt5 userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox * ERROR: media-tv/v4l-utils-1.20.0::gentoo failed (pretend phase): * clang does not support the BPF target. Please check LLVM_TARGETS. * * Call stack: * ebuild.sh, line 125: Called pkg_pretend * environment, line 1922: Called die * The specific snippet of code: * ${clang} -target bpf -print-supported-cpus &> /dev/null || die "${clang} does not support the BPF target. Please check LLVM_TARGETS."; * * If you need support, post the output of `emerge --info '=media-tv/v4l-utils-1.20.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=media-tv/v4l-utils-1.20.0::gentoo'`. * The complete build log is located at '/var/tmp/portage/media-tv/v4l-utils-1.20.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-tv/v4l-utils-1.20.0/temp/environment'. * Working directory: '/var/tmp/portage/media-tv/v4l-utils-1.20.0/homedir' * S: '/var/tmp/portage/media-tv/v4l-utils-1.20.0/work/v4l-utils-1.20.0' * Messages for package media-tv/v4l-utils-1.20.0: * ERROR: media-tv/v4l-utils-1.20.0::gentoo failed (pretend phase): * clang does not support the BPF target. Please check LLVM_TARGETS. * * Call stack: * ebuild.sh, line 125: Called pkg_pretend * environment, line 1922: Called die * The specific snippet of code: * ${clang} -target bpf -print-supported-cpus &> /dev/null || die "${clang} does not support the BPF target. Please check LLVM_TARGETS."; * * If you need support, post the output of `emerge --info '=media-tv/v4l-utils-1.20.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=media-tv/v4l-utils-1.20.0::gentoo'`. * The complete build log is located at '/var/tmp/portage/media-tv/v4l-utils-1.20.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-tv/v4l-utils-1.20.0/temp/environment'. * Working directory: '/var/tmp/portage/media-tv/v4l-utils-1.20.0/homedir' * S: '/var/tmp/portage/media-tv/v4l-utils-1.20.0/work/v4l-utils-1.20.0' Workaround is to install clang before emerging and remove afterwards: $ sudo emerge -1G sys-devel/clang $ sudo emerge -1G media-tv/v4l-utils $ sudo emerge -c sys-devel/clang sys-devel/clang-common --with-bdeps=n
Created attachment 680128 [details] emerge --info
Ah, sorry, forgot about binpkgs. Will fix in a bit.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63af976b818713e94e17f63c9c51a5d06c71eb1a commit 63af976b818713e94e17f63c9c51a5d06c71eb1a Author: James Le Cuirot <chewi@gentoo.org> AuthorDate: 2020-12-29 21:47:12 +0000 Commit: James Le Cuirot <chewi@gentoo.org> CommitDate: 2020-12-29 21:47:12 +0000 media-tv/v4l-utils: Don't perform clang target check in binpkgs Closes: https://bugs.gentoo.org/762328 Package-Manager: Portage-3.0.12, Repoman-3.0.1 Signed-off-by: James Le Cuirot <chewi@gentoo.org> media-tv/v4l-utils/v4l-utils-1.20.0.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)