Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 726314 - linux-info.eclass: Unable to determine any Linux Kernel version
Summary: linux-info.eclass: Unable to determine any Linux Kernel version
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-30 16:57 UTC by Thomas Schneider
Modified: 2020-06-01 18:31 UTC (History)
0 users

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


Attachments
die.env (die.env,234.34 KB, text/plain)
2020-05-30 17:00 UTC, Thomas Schneider
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Schneider 2020-05-30 16:57:49 UTC
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.
Comment 1 Thomas Schneider 2020-05-30 17:00:40 UTC
Created attachment 642776 [details]
die.env
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2020-06-01 18:31:32 UTC
(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.