Your message dated Thu, 13 May 2021 22:12:57 +0200
with message-id <YJ2ISR/[email protected]>
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 [email protected]
immediately.)
--
988367: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=988367
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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 ---
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 ---