tp-smapi-dkms 0.41-1: tp-smapi kernel module failed to build [make: Makefile: No such file or directory]

Bug #1069432 reported by Aleksandr Panzin
174
This bug affects 40 people
Affects Status Importance Assigned to Milestone
tp-smapi (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

While trying to install 3.7 rc2 mainline kernel.

ProblemType: Package
DistroRelease: Ubuntu 12.10
Package: tp-smapi-dkms 0.41-1
Uname: Linux 3.5.7-030507-generic x86_64
ApportVersion: 2.6.1-0ubuntu4
Architecture: amd64
DKMSKernelVersion: 3.7.0-030700rc2-generic
Date: Sun Oct 21 17:33:57 2012
DuplicateSignature:
 DKMS make.log for tp-smapi-0.41 for kernel 3.7.0-030700rc2-generic (x86_64)
 make: Entering directory `/usr/src/linux-headers-3.7.0-030700rc2-generic'
 make: Makefile: No such file or directory
 make: *** No rule to make target `Makefile'. Stop.
 make: Leaving directory `/usr/src/linux-headers-3.7.0-030700rc2-generic'
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta amd64 (20120301)
MarkForUpload: True
PackageArchitecture: all
PackageVersion: 0.41-1
SourcePackage: tp-smapi
Title: tp-smapi-dkms 0.41-1: tp-smapi kernel module failed to build
UpgradeStatus: Upgraded to quantal on 2012-10-12 (8 days ago)

Revision history for this message
Aleksandr Panzin (jalexoid) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in tp-smapi (Ubuntu):
status: New → Confirmed
Revision history for this message
Elliot (elliot-wolk) wrote :

same on 12.10.

installing with m-a from tp-smapi-source fails.

new to kernel 3.7, module-assistant says:
Bad luck, the kernel headers for the target kernel version could
                       │ not be found and you did not specify other valid
                       │ kernel headers to use.
                       │ However, you can install the header files for your kernel which
                       │ are provided by the linux-headers-3.7.0-4-generic package. For
                       │ most modules packages, these files are perfectly sufficient
                       │ without having the original kernel source.

this is from 'm-a a-i tp-smapi -f'. of course, linux-headers-3.7.0-4-generic is, in fact, installed.
the same precise setup succeeds on 3.6.3.

running make on the source in tp-smapi-source produces this error:
wolke:/usr/src/modules/tp-smapi$ sudo make
make -C /usr/src/modules/tp-smapi M=/usr/src/modules/tp-smapi O=/usr/src/modules/tp-smapi modules
make[1]: Entering directory `/usr/src/modules/tp-smapi'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/usr/src/modules/tp-smapi'
make: *** [modules] Error 2

Revision history for this message
martin suchanek (martin-suc) wrote :

as well for raring 13.04 development branch

Revision history for this message
Daniel Dietrich (shaddowy2) wrote :

Happend for me while installing the linux-lowlatency meta package (kernel version 3.8.0.12.5), @ raring 13.04.

Revision history for this message
Jose Celestino (japc) wrote :

The kernel generic headers is missing the version.h file.

A workaround is to link as follows:

ln -s /usr/src/linux-headers-`uname -r`/include/generated/uapi/linux/version.h /lib/modules/`uname -r`/build/include/linux/

Revision history for this message
martin suchanek (martin-suc) wrote :

May I ask:
Why not use /usr/include/linux/version.h (I used it) ?
And how to calculate LINUX_VERSION_CODE number according to kernel version ?
thank you.

Revision history for this message
Jose Celestino (japc) wrote :

The macro is on version.h:

#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))

Rolf Leggewie (r0lf)
Changed in tp-smapi (Ubuntu):
importance: Undecided → Medium
summary: - tp-smapi-dkms 0.41-1: tp-smapi kernel module failed to build
+ tp-smapi-dkms 0.41-1: tp-smapi kernel module failed to build [make:
+ Makefile: No such file or directory]
tags: added: precise trusty xenial
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.