linux-info (invoked by dev-qt/qtcore-5.15.0) fails to determine any Linux Kernel version: # cat /tmp/portage/dev-qt/qtcore-5.15.0/temp/build.log * Package: dev-qt/qtcore-5.15.0 * Repository: gentoo * Maintainer: qt@gentoo.org * Upstream: https://bugreports.qt.io/ * USE: abi_x86_64 amd64 elibc_glibc icu kernel_linux systemd userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox * Determining the location of the kernel source code * Found kernel source directory: * /scratch/linux * Could not detect kernel version. * Please ensure that /scratch/linux points to a complete set of Linux sources. * Unable to calculate Linux Kernel version for build, attempting to use running version * ERROR: dev-qt/qtcore-5.15.0::gentoo failed (pretend phase): * Unable to determine any Linux Kernel version, please report a bug * * Call stack: * ebuild.sh, line 125: Called pkg_pretend * qtcore-5.15.0.ebuild, line 52: Called kernel_is '-lt' '4' '11' * linux-info.eclass, line 386: Called linux-info_get_any_version * linux-info.eclass, line 662: Called die * The specific snippet of code: * die "Unable to determine any Linux Kernel version, please report a bug" * * If you need support, post the output of `emerge --info '=dev-qt/qtcore-5.15.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-qt/qtcore-5.15.0::gentoo'`. * The complete build log is located at '/tmp/portage/dev-qt/qtcore-5.15.0/temp/build.log'. * The ebuild environment file is located at '/tmp/portage/dev-qt/qtcore-5.15.0/temp/die.env'. * Working directory: '/tmp/portage/dev-qt/qtcore-5.15.0/homedir' * S: '/tmp/portage/dev-qt/qtcore-5.15.0/work/qtbase-everywhere-src-5.15.0' Said KBUILD_OUTPUT="/scratch/linux" does indeed not contain kernel sources, it is the output directory of an out-of-tree build (make -C /usr/src/linux O=/scratch/linux). It is however the output directory of linux-5.4.38, while the running kernel is 5.4.28 (.38 does not boot, another problem I have yet to investigate). This could be related to the issue, but the error message said to report a bug, so.
Created attachment 642776 [details] die.env
(In reply to Thomas Schneider from comment #0) > linux-info (invoked by dev-qt/qtcore-5.15.0) fails to determine any Linux > Kernel version: > > # cat /tmp/portage/dev-qt/qtcore-5.15.0/temp/build.log > * Package: dev-qt/qtcore-5.15.0 > * Repository: gentoo > * Maintainer: qt@gentoo.org > * Upstream: https://bugreports.qt.io/ > * USE: abi_x86_64 amd64 elibc_glibc icu kernel_linux systemd > userland_GNU > * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox > * Determining the location of the kernel source code > * Found kernel source directory: > * /scratch/linux > * Could not detect kernel version. > * Please ensure that /scratch/linux points to a complete set of Linux > sources. > * Unable to calculate Linux Kernel version for build, attempting to use > running version > * ERROR: dev-qt/qtcore-5.15.0::gentoo failed (pretend phase): > * Unable to determine any Linux Kernel version, please report a bug > * > * Call stack: > * ebuild.sh, line 125: Called pkg_pretend > * qtcore-5.15.0.ebuild, line 52: Called kernel_is '-lt' '4' '11' > * linux-info.eclass, line 386: Called linux-info_get_any_version > * linux-info.eclass, line 662: Called die > * The specific snippet of code: > * die "Unable to determine any Linux Kernel version, > please report a bug" > * > * If you need support, post the output of `emerge --info > '=dev-qt/qtcore-5.15.0::gentoo'`, > * the complete build log and the output of `emerge -pqv > '=dev-qt/qtcore-5.15.0::gentoo'`. > * The complete build log is located at > '/tmp/portage/dev-qt/qtcore-5.15.0/temp/build.log'. > * The ebuild environment file is located at > '/tmp/portage/dev-qt/qtcore-5.15.0/temp/die.env'. > * Working directory: '/tmp/portage/dev-qt/qtcore-5.15.0/homedir' > * S: '/tmp/portage/dev-qt/qtcore-5.15.0/work/qtbase-everywhere-src-5.15.0' > > Said KBUILD_OUTPUT="/scratch/linux" does indeed not contain kernel sources, > it is the output directory of an out-of-tree build (make -C /usr/src/linux > O=/scratch/linux). It is however the output directory of linux-5.4.38, > while the running kernel is 5.4.28 (.38 does not boot, another problem I > have yet to investigate). This could be related to the issue, but the error > message said to report a bug, so. It should point to the kernel sources directory, not the output directory.