Kernel build broken with source code of v5.0.0-37

Yinbo.Wang at microchip.com Yinbo.Wang at microchip.com
Wed Jan 29 01:08:58 UTC 2020


Hi,
    I am running Ubuntu 18.04.3 with kernel version v5.0.0-23 shipped as a package. I downloaded the lasted 5.0.0-37 source code with command "apt install linux-source-5.0.0" and the source code resides at /usr/src/linux-source-5.0.0.
    I followed the build instructions on https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel to build the kernel, and ends up I always got errors as below:

II: dkms-build downloading spl (spl-dkms_0.7.12-1ubuntu3_all.deb)
II: dkms-build building spl
Error! DKMS tree already contains: spl-0.7.12
You cannot add the same module/version combo more than once.
DKMS make.log for spl-0.7.12 for kernel 5.0.0-37-generic (x86_64)
Fri Jan 24 12:32:41 PST 2020
make[1]: Entering directory '<<DKMSDIR>>/build/spl/0.7.12/build'
make  all-recursive
...
make[1]: Leaving directory '<<DKMSDIR>>/build/spl/0.7.12/build'
debian/rules.d/2-binary-arch.mk:112: recipe for target 'install-generic' failed
make: *** [install-generic] Error 1

    I spent quite effort but could not solve the issue. Could you please advise how to deal with it?

    BTW, I have no issue with the traditional way of make to build from the same source tree.

Thanks,
-Yinbo

From: Yinbo Wang - C62070
Sent: Wednesday, January 22, 2020 4:40 PM
To: kernel-team at lists.ubuntu.com
Subject: Where I can get source code of v5.0.0-23 or the latest release of v5.0.0

Hi,
    I am currently running Ubuntu 18.04.3, with kernel version v5.0.0-23 shipped with the package. I need the relevant kernel source code for my development.
    I found and downloaded the diff for 5.0.0-23 from https://launchpad.net/ubuntu/+source/linux-hwe/5.0.0-23.24~18.04.1 but its SUBLEVEL (which is 15) in Makefile indicates it will be built as v5.0.15 not v5.0.0-23. I am very confused here, could you explain?
    If I use "apt source" command as below, I always get 5.3.0 package, which is not what I want, how can I fix it?

$ apt-get source linux-image-5.0.0-23-generic
Reading package lists... Done
Picking 'linux-signed-hwe' as source package instead of 'linux-image-5.0.0-23-generic'
Need to get 13.7 kB of source archives.
Get:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/main linux-signed-hwe 5.3.0-26.28~18.04.1 (dsc) [1,862 B]
Get:2 http://us.archive.ubuntu.com/ubuntu bionic-updates/main linux-signed-hwe 5.3.0-26.28~18.04.1 (tar) [11.8 kB]
Fetched 13.7 kB in 0s (42.7 kB/s)
dpkg-source: info: extracting linux-signed-hwe in linux-signed-hwe-5.3.0
dpkg-source: info: unpacking linux-signed-hwe_5.3.0-26.28~18.04.1.tar.xz

    As the result, how can I get source code of v5.0.0-23 or the latest kernel source code release for v5.0.0 for Ubuntu?
    Thank you so much in advance for your help!

Thanks,
-Yinbo

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20200129/a4221280/attachment-0001.html>


More information about the kernel-team mailing list