Unable to build lttng module on 4.4/4.15 KVM kernel

Bug #1760647 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Fix Released
Undecided
Po-Hsu Lin
linux-kvm (Ubuntu)
Won't Fix
Undecided
Unassigned
Nominated for Bionic by Po-Hsu Lin
Xenial
Won't Fix
Undecided
Unassigned

Bug Description

Tested with the lttng module in -proposed (2.8.0-1ubuntu1~16.04.5), it looks like this is the CONFIG issue.

Build log:

DKMS make.log for lttng-modules-2.8.0 for kernel 4.4.0-1019-kvm (x86_64)
Mon Apr 2 17:05:48 UTC 2018
make: Entering directory '/usr/src/linux-headers-4.4.0-1019-kvm'
/var/lib/dkms/lttng-modules/2.8.0/build/Makefile:12: *** The option CONFIG_TRACEPOINTS needs to be enabled in your kernel configuration. Stop.
Makefile:1423: recipe for target '_module_/var/lib/dkms/lttng-modules/2.8.0/build' failed
make: *** [_module_/var/lib/dkms/lttng-modules/2.8.0/build] Error 2
make: Leaving directory '/usr/src/linux-headers-4.4.0-1019-kvm'

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-image-4.4.0-1019-kvm 4.4.0-1019.24
ProcVersionSignature: User Name 4.4.0-1019.24-kvm 4.4.98
Uname: Linux 4.4.0-1019-kvm x86_64
ApportVersion: 2.20.1-0ubuntu2.15
Architecture: amd64
Date: Mon Apr 2 16:38:25 2018
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: linux-kvm
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

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 1760647

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.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Po-Hsu Lin (cypressyew) wrote : Re: Unable to build lttng module on 4.4 X-KVM

Also affecting 4.15 KVM kernel:
    Error! Bad return status for module build on kernel: 4.15.0-1003-kvm (x86_64)

tags: added: bionic
summary: - Unable to build lttng module on 4.4 X-KVM
+ Unable to build lttng module on 4.4/4.15 KVM kernel
Revision history for this message
Khaled El Mously (kmously) wrote :

@Po-Hsu Lin : Is this a regression? I get the same build error all the way back to the first 4.4 kvm kernel (I haven't tried the 4.15 kvm kernel):

DKMS make.log for lttng-modules-2.8.0 for kernel 4.4.0-1004-kvm (x86_64)
Wed Jul 4 04:44:45 UTC 2018
make: Entering directory '/usr/src/linux-headers-4.4.0-1004-kvm'
/var/lib/dkms/lttng-modules/2.8.0/build/Makefile:12: *** The option CONFIG_TRACEPOINTS needs to be enabled in your kernel configuration. Stop.
Makefile:1420: recipe for target '_module_/var/lib/dkms/lttng-modules/2.8.0/build' failed
make: *** [_module_/var/lib/dkms/lttng-modules/2.8.0/build] Error 2
make: Leaving directory '/usr/src/linux-headers-4.4.0-1004-kvm'

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Hi Khaled,

this is not a regression, I think we can start from building a test kernel with CONFIG_TRACEPOINTS enabled.

As the error message states that:
    The option CONFIG_TRACEPOINTS needs to be enabled in your kernel configuration.

Thanks

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

After discussion with Kamal, we will disable this test instead of enabling that CONFIG_TRACEPOINTS for KVM kernels.
Thanks

Changed in linux-kvm (Ubuntu):
status: New → Won't Fix
no longer affects: linux (Ubuntu)
Changed in ubuntu-kernel-tests:
status: New → In Progress
no longer affects: linux (Ubuntu Xenial)
Changed in ubuntu-kernel-tests:
assignee: nobody → Po-Hsu Lin (cypressyew)
Po-Hsu Lin (cypressyew)
Changed in linux-kvm (Ubuntu Xenial):
status: New → Won't Fix
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
Changed in ubuntu-kernel-tests:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.