Your message dated Thu, 13 May 2021 22:12:57 +0200 with message-id <YJ2ISR/DDexm6qLc@eldamar.lan> and subject line Re: Bug#988367: linux-headers 4.19.165 '"make scripts" results fatal error: classmap.h: No such file or directory' has caused the Debian Bug report #988367, regarding linux-headers 4.19.165 '"make scripts" results fatal error: classmap.h: No such file or directory' to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org immediately.) -- 988367: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=988367 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: submit@bugs.debian.org
- Subject: linux-headers 4.19.165 '"make scripts" results fatal error: classmap.h: No such file or directory'
- From: Arul pandiyan <arulcse2008@gmail.com>
- Date: Tue, 11 May 2021 16:53:08 +0530
- Message-id: <CABkV8dd1WJ8N8pBG-pxQGL64Kp_AV6e7-njk1ByBpdt5pPwByw@mail.gmail.com>
Package: linux-headers
Version: 4.19.165-cip41-rt18
When "make scripts" are triggered from /usr/src/linux-header-${uname -r} directory.
It fails to build the scripts due to the unavailability of selinux headers. Below are the logs
root@localhost:~# cd /usr/src/linux-headers-4.19.165-cip41-rt18+mel6
root@localhost:/usr/src/linux-headers-4.19.165-cip41-rt18+mel6# wget https://raw.githubusercontent.com/armbian/build/master/patch/misc/headers-debian-byteshift.patch -O - | sudo patch -p1
sudo: unable to resolve host localhost.localdomain: Name or service not known
--2021-05-11 08:18:27-- https://raw.githubusercontent.com/armbian/build/master/patch/misc/headers-debian-byteshift.patch
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.111.133, 185.199.108.133, 185.199.110.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3591 (3.5K) [text/plain]
Saving to: ‘STDOUT’
- 100%[===================>] 3.51K --.-KB/s in 0s
2021-05-11 08:18:27 (11.5 MB/s) - written to stdout [3591/3591]
patching file tools/include/tools/be_byteshift.h
patching file tools/include/tools/le_byteshift.h
root@iot2050:/usr/src/linux-headers-4.19.165-cip41-rt18+mel6# make scripts
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
YACC scripts/kconfig/zconf.tab.c
LEX scripts/kconfig/zconf.lex.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --syncconfig Kconfig
HOSTCC scripts/dtc/dtc.o
HOSTCC scripts/dtc/flattree.o
HOSTCC scripts/dtc/fstree.o
HOSTCC scripts/dtc/data.o
HOSTCC scripts/dtc/livetree.o
HOSTCC scripts/dtc/treesource.o
HOSTCC scripts/dtc/srcpos.o
HOSTCC scripts/dtc/checks.o
HOSTCC scripts/dtc/util.o
LEX scripts/dtc/dtc-lexer.lex.c
YACC scripts/dtc/dtc-parser.tab.h
HOSTCC scripts/dtc/dtc-lexer.lex.o
YACC scripts/dtc/dtc-parser.tab.c
HOSTCC scripts/dtc/dtc-parser.tab.o
HOSTLD scripts/dtc/dtc
HOSTCC scripts/dtc/fdtoverlay.o
HOSTCC scripts/dtc/libfdt/fdt.o
HOSTCC scripts/dtc/libfdt/fdt_rw.o
HOSTCC scripts/dtc/libfdt/fdt_sw.o
HOSTCC scripts/dtc/libfdt/fdt_empty_tree.o
HOSTCC scripts/dtc/libfdt/fdt_overlay.o
HOSTCC scripts/dtc/libfdt/fdt_wip.o
HOSTCC scripts/dtc/libfdt/fdt_strerror.o
HOSTCC scripts/dtc/libfdt/fdt_ro.o
HOSTCC scripts/dtc/libfdt/fdt_addresses.o
HOSTLD scripts/dtc/fdtoverlay
YACC scripts/genksyms/parse.tab.h
HOSTCC scripts/genksyms/genksyms.o
YACC scripts/genksyms/parse.tab.c
HOSTCC scripts/genksyms/parse.tab.o
LEX scripts/genksyms/lex.lex.c
HOSTCC scripts/genksyms/lex.lex.o
HOSTLD scripts/genksyms/genksyms
HOSTCC scripts/mod/mk_elfconfig
CC scripts/mod/empty.o
MKELF scripts/mod/elfconfig.h
CC scripts/mod/devicetable-offsets.s
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
HOSTCC scripts/selinux/genheaders/genheaders
scripts/selinux/genheaders/genheaders.c:18:10: fatal error: classmap.h: No such file or directory
#include "classmap.h"
^~~~~~~~~~~~
compilation terminated.
make[3]: *** [scripts/Makefile.host:90: scripts/selinux/genheaders/genheaders] Error 1
make[2]: *** [scripts/Makefile.build:544: scripts/selinux/genheaders] Error 2
make[1]: *** [scripts/Makefile.build:544: scripts/selinux] Error 2
make: *** [Makefile:1092: scripts] Error 2
root@iot2050:/usr/src/linux-headers-4.19.165-cip41-rt18+mel6#
I had pushed the PR(https://github.com/ilbers/isar/pull/67) where corresponding headers can be copied to linux-headers.
I am using Debian buster, kernel 4.19.165-cip41-rt18.
Regards
Arulpandiyan V
--- End Message ---
--- Begin Message ---
- To: Arul pandiyan <arulcse2008@gmail.com>, 988367-done@bugs.debian.org
- Subject: Re: Bug#988367: linux-headers 4.19.165 '"make scripts" results fatal error: classmap.h: No such file or directory'
- From: Salvatore Bonaccorso <carnil@debian.org>
- Date: Thu, 13 May 2021 22:12:57 +0200
- Message-id: <YJ2ISR/DDexm6qLc@eldamar.lan>
- In-reply-to: <CABkV8dd1WJ8N8pBG-pxQGL64Kp_AV6e7-njk1ByBpdt5pPwByw@mail.gmail.com>
- References: <CABkV8dd1WJ8N8pBG-pxQGL64Kp_AV6e7-njk1ByBpdt5pPwByw@mail.gmail.com>
Hi On Tue, May 11, 2021 at 04:53:08PM +0530, Arul pandiyan wrote: > Package: linux-headers > Version: 4.19.165-cip41-rt18 > > When "make scripts" are triggered from /usr/src/linux-header-${uname -r} > directory. > It fails to build the scripts due to the unavailability of selinux headers. > Below are the logs > root@localhost:~# cd /usr/src/linux-headers-4.19.165-cip41-rt18+mel6 > root@localhost:/usr/src/linux-headers-4.19.165-cip41-rt18+mel6# wget > https://raw.githubusercontent.com/armbian/build/master/patch/misc/headers-debian-byteshift.patch > -O - | sudo patch -p1 > sudo: unable to resolve host localhost.localdomain: Name or service not > known > --2021-05-11 08:18:27-- > https://raw.githubusercontent.com/armbian/build/master/patch/misc/headers-debian-byteshift.patch > Resolving raw.githubusercontent.com (raw.githubusercontent.com)... > 185.199.111.133, 185.199.108.133, 185.199.110.133, ... > Connecting to raw.githubusercontent.com > (raw.githubusercontent.com)|185.199.111.133|:443... > connected. > HTTP request sent, awaiting response... 200 OK > Length: 3591 (3.5K) [text/plain] > Saving to: ‘STDOUT’ > > - 100%[===================>] 3.51K --.-KB/s in 0s > > 2021-05-11 08:18:27 (11.5 MB/s) - written to stdout [3591/3591] > > patching file tools/include/tools/be_byteshift.h > patching file tools/include/tools/le_byteshift.h > root@iot2050:/usr/src/linux-headers-4.19.165-cip41-rt18+mel6# make scripts > HOSTCC scripts/basic/fixdep > HOSTCC scripts/kconfig/conf.o > YACC scripts/kconfig/zconf.tab.c > LEX scripts/kconfig/zconf.lex.c > HOSTCC scripts/kconfig/zconf.tab.o > HOSTLD scripts/kconfig/conf > scripts/kconfig/conf --syncconfig Kconfig > HOSTCC scripts/dtc/dtc.o > HOSTCC scripts/dtc/flattree.o > HOSTCC scripts/dtc/fstree.o > HOSTCC scripts/dtc/data.o > HOSTCC scripts/dtc/livetree.o > HOSTCC scripts/dtc/treesource.o > HOSTCC scripts/dtc/srcpos.o > HOSTCC scripts/dtc/checks.o > HOSTCC scripts/dtc/util.o > LEX scripts/dtc/dtc-lexer.lex.c > YACC scripts/dtc/dtc-parser.tab.h > HOSTCC scripts/dtc/dtc-lexer.lex.o > YACC scripts/dtc/dtc-parser.tab.c > HOSTCC scripts/dtc/dtc-parser.tab.o > HOSTLD scripts/dtc/dtc > HOSTCC scripts/dtc/fdtoverlay.o > HOSTCC scripts/dtc/libfdt/fdt.o > HOSTCC scripts/dtc/libfdt/fdt_rw.o > HOSTCC scripts/dtc/libfdt/fdt_sw.o > HOSTCC scripts/dtc/libfdt/fdt_empty_tree.o > HOSTCC scripts/dtc/libfdt/fdt_overlay.o > HOSTCC scripts/dtc/libfdt/fdt_wip.o > HOSTCC scripts/dtc/libfdt/fdt_strerror.o > HOSTCC scripts/dtc/libfdt/fdt_ro.o > HOSTCC scripts/dtc/libfdt/fdt_addresses.o > HOSTLD scripts/dtc/fdtoverlay > YACC scripts/genksyms/parse.tab.h > HOSTCC scripts/genksyms/genksyms.o > YACC scripts/genksyms/parse.tab.c > HOSTCC scripts/genksyms/parse.tab.o > LEX scripts/genksyms/lex.lex.c > HOSTCC scripts/genksyms/lex.lex.o > HOSTLD scripts/genksyms/genksyms > HOSTCC scripts/mod/mk_elfconfig > CC scripts/mod/empty.o > MKELF scripts/mod/elfconfig.h > CC scripts/mod/devicetable-offsets.s > HOSTCC scripts/mod/modpost.o > HOSTCC scripts/mod/file2alias.o > HOSTCC scripts/mod/sumversion.o > HOSTLD scripts/mod/modpost > HOSTCC scripts/selinux/genheaders/genheaders > scripts/selinux/genheaders/genheaders.c:18:10: fatal error: classmap.h: No > such file or directory > #include "classmap.h" > ^~~~~~~~~~~~ > compilation terminated. > make[3]: *** [scripts/Makefile.host:90: > scripts/selinux/genheaders/genheaders] Error 1 > make[2]: *** [scripts/Makefile.build:544: scripts/selinux/genheaders] Error > 2 > make[1]: *** [scripts/Makefile.build:544: scripts/selinux] Error 2 > make: *** [Makefile:1092: scripts] Error 2 > root@iot2050:/usr/src/linux-headers-4.19.165-cip41-rt18+mel6# > > I had pushed the PR(https://github.com/ilbers/isar/pull/67) where > corresponding headers can be copied to linux-headers. > > I am using Debian buster, kernel 4.19.165-cip41-rt18. > Regards > Arulpandiyan V Please see https://kernel-team.pages.debian.net/kernel-handbook/ch-common-tasks.html#s-common-building for building a custom kernel based from the Debian kernel source. Instead https://kernel-team.pages.debian.net/kernel-handbook/ch-common-tasks.html#s-common-out-of-tree for only out-of-tree kernel modules. Hope this helps, Regards, Salvatore
--- End Message ---