linux-headers make kernel script fails with fatal error: classmap.h: No such file or directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
It looks like in most Ubuntu Linux kernel, building kernel scripts
in /usr/scr/
The security/
CONFIG_
lab@test-
CONFIG_
CONFIG_
# CONFIG_
CONFIG_
CONFIG_
CONFIG_
CONFIG_
CONFIG_
lab@test-
[sudo] password for lab:
SYNC include/
HOSTCC scripts/
HOSTCC scripts/
HOSTCC scripts/
HOSTCC scripts/
LEX scripts/
YACC scripts/
HOSTCC scripts/
HOSTCC scripts/
HOSTCC scripts/
HOSTCC scripts/
HOSTCC scripts/
HOSTCC scripts/
HOSTLD scripts/
6^[[18~ HOSTCC scripts/
YACC scripts/
HOSTCC scripts/
LEX scripts/
HOSTCC scripts/
HOSTLD scripts/
HOSTCC scripts/
scripts/
18 | #include "classmap.h"
| ^~~~~~~~~~~~
compilation terminated.
make[3]: *** [scripts/
make[2]: *** [scripts/
make[1]: *** [scripts/
make: *** [Makefile:1209: scripts] Error 2
lab@test-
lab@test-server:~$ uname -a
Linux test-server 5.15.0-43-generic #46-Ubuntu SMP Tue Jul 12 10:30:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
lab@test-server:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04 LTS
Release: 22.04
Codename: jammy
lab@test-server:~$ cat /proc/version_
Ubuntu 5.15.0-
Should security/
I've tried with the following kernels:
Ubuntu 20.04 5.4.0-120-generic amd64 kernel
Ubuntu 20.04 5.4.0-64-generic arm64 kernel
Ubuntu 22.04 5.15.0-43-generic amd64 kernel
Ubuntu 20.04 custom build arm64 Ubuntu-
An old Debian Bug report
https:/
where they have a fix to copy the selinux headers to /usr/src to ship
https:/
https:/
Thanks
- Jiandi
---
ProblemType: Bug
AlsaDevices:
total 0
crw-rw----+ 1 root audio 116, 1 Aug 9 12:12 seq
crw-rw----+ 1 root audio 116, 33 Aug 9 12:12 timer
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
ApportVersion: 2.20.11-0ubuntu82
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CRDA: N/A
DistroRelease: Ubuntu 22.04
InstallationDate: Installed on 2022-08-09 (3 days ago)
InstallationMedia: Ubuntu-Server 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220421)
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
MachineType: To be filled by O.E.M. To be filled by O.E.M.
Package: linux (not installed)
PciMultimedia:
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcFB: 0 astdrmfb
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
RelatedPackageV
linux-
linux-
linux-firmware 20220329.
RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
Tags: jammy uec-images
Uname: Linux 5.15.0-43-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 10/06/2021
dmi.bios.release: 0.2
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 0.02
dmi.board.
dmi.board.name: To be filled by O.E.M.
dmi.board.vendor: To be filled by O.E.M.
dmi.board.version: To be filled by O.E.M.
dmi.chassis.
dmi.chassis.type: 2
dmi.chassis.vendor: To be filled by O.E.M.
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.family: DGXA100
dmi.product.name: To be filled by O.E.M.
dmi.product.sku: Default string
dmi.product.
dmi.sys.vendor: To be filled by O.E.M.
Changed in linux (Ubuntu): | |
status: | Incomplete → Confirmed |
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 1986378
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.