Greater than linux 5.4-rc4 headers -- Unable to build simple kernel module
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Cannot build a kernel module, errors in Linux headers using the current RC4 (also tried RC3, and daily) mainline kernel packages from http://
Am able to build against a 5.4-rc4 kernel level directly from upstream kernel git repo (on a different platform).
To recreate error:
Install linux headers, etc from current 5.4 RC. (used 5.4.0-050400rc4 dated 10/20 for this test)
--[/tmp/
EXTRA_CFLAGS +=
obj-m += conftest.o
-- [EOF] --
--[/tmp/
#include <linux/module.h>
void conftest(void)
{
}
MODULE_
-- [EOF] --
Command:
make -C /lib/modules/
make.log is attached.
Expected output (using above Makefile and conftest.c, performed a build on a system with 4.15.0-66 linux packages installed):
-- [expected output] --
make -C /lib/modules/
make: Entering directory '/usr/src/
CC [M] /tmp/builderr/
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/builderr/
LD [M] /tmp/builderr/
make: Leaving directory '/usr/src/
----
=========
lsb_release -rd
Description: Ubuntu 18.04.3 LTS
Release: 18.04
uname -a
Linux ubuntu_base 5.4.0-050400rc4
dpkg -l | grep "linux\-[a-z]*\-"
ii linux-headers-
ii linux-headers-
ii linux-image-
ri linux-libc-
ii linux-modules-
This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:
apport-collect 1849348
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.