Jump to content

Headers compilation error


IgorS

Recommended Posts

With new python based build system there is error compiling headers while installing headers deb.

Im not sure is it because of new build system or the problem is in 6.1.15 kernel branch.

 

My compile command was:

./compile.sh BOARD=orangepione BRANCH=current BUILD_MINIMAL=no BUILD_DESKTOP=no KERNEL_ONLY=yes KERNEL_CONFIGURE=no COMPRESS_OUTPUTIMAGE=sha,img SKIP_EXTERNAL_TOOLCHAINS=no BUILD_KSRC=no PRIVATE_CCACHE=yes RELEASE=bionic ARTIFACT_IGNORE_CACHE=yes BUILD_KSRC=yes KERNEL_GIT=full

 

While installing i got:

igor@honeypot:~/trash/debs$ ls -1
armbian-config_23.05.0-trunk_all.deb
armbian-firmware_1-SA56ad-Bf566_all.deb
linux-dtb-current-sunxi_6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8_armhf.deb
linux-headers-current-sunxi_6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8_armhf.deb
linux-image-current-sunxi_6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8_armhf.deb
linux-u-boot-orangepione-current_2022.07-Se092-P12e0-Be261_armhf.deb
igor@honeypot:~/trash/debs$ sudo dpkg -i *
[sudo] password for igor:             
(Reading database ... 107907 files and directories currently installed.)
Preparing to unpack armbian-config_23.05.0-trunk_all.deb ...
Unpacking armbian-config (23.05.0-trunk) over (23.02.0-82) ...
dpkg: warning: downgrading armbian-firmware from 23.02.0-82 to 1-SA56ad-Bf566
Preparing to unpack armbian-firmware_1-SA56ad-Bf566_all.deb ...
Unpacking armbian-firmware (1-SA56ad-Bf566) over (23.02.0-82) ...
dpkg: warning: downgrading linux-dtb-current-sunxi from 23.02.0-82 to 6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8
Preparing to unpack linux-dtb-current-sunxi_6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8_armhf.deb ...
Armbian 'linux-dtb-current-sunxi' for '6.1.15-sunxi': 'preinst' starting.
+ rm -rf /boot/dtb
+ rm -rf /boot/dtb-6.1.15-sunxi
+ set +x
Armbian 'linux-dtb-current-sunxi' for '6.1.15-sunxi': 'preinst' finishing.
Unpacking linux-dtb-current-sunxi (6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8) over (23.02.0-82) ...
dpkg: warning: downgrading linux-headers-current-sunxi from 23.02.0-82 to 6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8
Preparing to unpack linux-headers-current-sunxi_6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8_armhf.deb ...
Armbian 'linux-headers-current-sunxi' for '6.1.15-sunxi': 'preinst' starting.
+ [[ -d /usr/src/linux-headers-6.1.15-sunxi ]]
+ set +x
Armbian 'linux-headers-current-sunxi' for '6.1.15-sunxi': 'preinst' finishing.
Unpacking linux-headers-current-sunxi (6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8) over (23.02.0-82) ...
dpkg: warning: downgrading linux-image-current-sunxi from 23.02.0-82 to 6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8
Preparing to unpack linux-image-current-sunxi_6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8_armhf.deb ...
Armbian 'linux-image-current-sunxi' for '6.1.15-sunxi': 'preinst' starting.
+ export 'DEB_MAINT_PARAMS=upgrade 23.02.0-82 6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8'
+ DEB_MAINT_PARAMS='upgrade 23.02.0-82 6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8'
+ export INITRD=Yes
+ INITRD=Yes
+ test -d /etc/kernel/preinst.d
+ run-parts --arg=6.1.15-sunxi --arg=/boot/vmlinuz-6.1.15-sunxi /etc/kernel/preinst.d
update-initramfs: Deleting /boot/initrd.img-5.15.93-sunxi
Removing obsolete file uInitrd-5.15.93-sunxi
+ mountpoint -q /boot
+ set +x
Armbian 'linux-image-current-sunxi' for '6.1.15-sunxi': 'preinst' finishing.
Unpacking linux-image-current-sunxi (6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8) over (23.02.0-82) ...
Preparing to unpack linux-u-boot-orangepione-current_2022.07-Se092-P12e0-Be261_armhf.deb ...
Unpacking linux-u-boot-orangepione-current (2022.07-Se092-P12e0-Be261) over (23.02.0-82) ...
Setting up armbian-config (23.05.0-trunk) ...
Setting up armbian-firmware (1-SA56ad-Bf566) ...
Setting up linux-dtb-current-sunxi (6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8) ...
Armbian 'linux-dtb-current-sunxi' for '6.1.15-sunxi': 'postinst' starting.
+ cd /boot
+ ln -sfT dtb-6.1.15-sunxi dtb
+ set +x
Armbian 'linux-dtb-current-sunxi' for '6.1.15-sunxi': 'postinst' finishing.
Setting up linux-headers-current-sunxi (6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8) ...
Armbian 'linux-headers-current-sunxi' for '6.1.15-sunxi': 'postinst' starting.
+ cd /usr/src/linux-headers-6.1.15-sunxi
++ grep -c processor /proc/cpuinfo
+ NCPU=4
+ echo 'Compiling kernel-headers tools (6.1.15-sunxi) using 4 CPUs - please wait ...'
Compiling kernel-headers tools (6.1.15-sunxi) using 4 CPUs - please wait ...
+ yes ''
+ make ARCH=arm oldconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/confdata.o
  HOSTCC  scripts/kconfig/expr.o
  LEX     scripts/kconfig/lexer.lex.c
  YACC    scripts/kconfig/parser.tab.[ch]
  HOSTCC  scripts/kconfig/lexer.lex.o
  HOSTCC  scripts/kconfig/menu.o
  HOSTCC  scripts/kconfig/parser.tab.o
  HOSTCC  scripts/kconfig/preprocess.o
  HOSTCC  scripts/kconfig/symbol.o
  HOSTCC  scripts/kconfig/util.o
  HOSTLD  scripts/kconfig/conf
#
# configuration written to .config
#
+ make ARCH=arm -j4 scripts
  SYNC    include/config/auto.conf.cmd
  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.[ch]
  HOSTCC  scripts/dtc/libfdt/fdt.o
  HOSTCC  scripts/dtc/libfdt/fdt_ro.o
  HOSTCC  scripts/dtc/libfdt/fdt_wip.o
  HOSTCC  scripts/dtc/libfdt/fdt_sw.o
  HOSTCC  scripts/dtc/libfdt/fdt_rw.o
  HOSTCC  scripts/dtc/libfdt/fdt_strerror.o
  HOSTCC  scripts/dtc/libfdt/fdt_empty_tree.o
  HOSTCC  scripts/dtc/libfdt/fdt_addresses.o
  HOSTCC  scripts/dtc/libfdt/fdt_overlay.o
  HOSTCC  scripts/dtc/fdtoverlay.o
  HOSTCC  scripts/dtc/dtc-lexer.lex.o
  HOSTCC  scripts/dtc/dtc-parser.tab.o
  HOSTLD  scripts/dtc/fdtoverlay
  HOSTLD  scripts/dtc/dtc
  HOSTCC  scripts/bin2c
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/recordmcount
  HOSTCC  scripts/selinux/genheaders/genheaders
  HOSTCC  scripts/selinux/mdp/mdp
  HOSTCC  scripts/sorttable
  HOSTCC  scripts/asn1_compiler
  HOSTCC  scripts/insert-sys-cert
+ make ARCH=arm -j4 M=scripts/mod/
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  CC      scripts/mod/devicetable-offsets.s
  UPD     scripts/mod/devicetable-offsets.h
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTCC  scripts/mod/file2alias.o
  HOSTLD  scripts/mod/modpost
  MODPOST scripts/mod/Module.symvers
+ make ARCH=arm -j4 tools/objtool
  DESCEND objtool
  HOSTCC  /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/fixdep.o
  HOSTLD  /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/fixdep-in.o
  LINK    /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/fixdep
  CC      /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/weak.o
  CC      /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/check.o
  MKDIR   /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/arch/arm/
  LD      /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/arch/arm/objtool-in.o
  CC      /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/special.o
  CC      /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/exec-cmd.o
check.c:11:10: fatal error: arch/elf.h: No such file or directory
   11 | #include <arch/elf.h>
      |          ^~~~~~~~~~~~
compilation terminated.
make[3]: *** [/usr/src/linux-headers-6.1.15-sunxi/tools/build/Makefile.build:97: /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/check.o] Error 1
make[3]: *** Waiting for unfinished jobs....
special.c:14:10: fatal error: arch/special.h: No such file or directory
   14 | #include <arch/special.h>
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
  CC      /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/help.o
make[3]: *** [/usr/src/linux-headers-6.1.15-sunxi/tools/build/Makefile.build:97: /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/special.o] Error 1
  CC      /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/pager.o
make[2]: *** [Makefile:54: /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/objtool-in.o] Error 2
make[2]: *** Waiting for unfinished jobs....
  CC      /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/parse-options.o
  CC      /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/run-command.o
  CC      /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/sigchain.o
  CC      /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/subcmd-config.o
  LD      /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/libsubcmd-in.o
  AR      /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/libsubcmd.a
make[1]: *** [Makefile:73: objtool] Error 2
make: *** [Makefile:1437: tools/objtool] Error 2
dpkg: error processing package linux-headers-current-sunxi (--install):
 installed linux-headers-current-sunxi package post-installation script subprocess returned error exit status 2
Setting up linux-image-current-sunxi (6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8) ...
Armbian 'linux-image-current-sunxi' for '6.1.15-sunxi': 'postinst' starting.
+ export 'DEB_MAINT_PARAMS=configure 23.02.0-82'
+ DEB_MAINT_PARAMS='configure 23.02.0-82'
+ export INITRD=Yes
+ INITRD=Yes
+ test -d /etc/kernel/postinst.d
+ run-parts --arg=6.1.15-sunxi --arg=/boot/vmlinuz-6.1.15-sunxi /etc/kernel/postinst.d
update-initramfs: Generating /boot/initrd.img-6.1.15-sunxi
update-initramfs: Converting to u-boot format
+ echo 'Armbian: update last-installed kernel symlink to '\''zImage'\''...'
Armbian: update last-installed kernel symlink to 'zImage'...
+ ln -sfv vmlinuz-6.1.15-sunxi /boot/zImage
'/boot/zImage' -> 'vmlinuz-6.1.15-sunxi'
+ touch /boot/.next
+ set +x
Armbian 'linux-image-current-sunxi' for '6.1.15-sunxi': 'postinst' finishing.
Setting up linux-u-boot-orangepione-current (2022.07-Se092-P12e0-Be261) ...
Errors were encountered while processing:
 linux-headers-current-sunxi

 

Link to comment
Share on other sites

21 час назад, IgorS сказал:

check.c:11:10: fatal error: arch/elf.h: No such file or directory
   11 | #include <arch/elf.h>

sudo apt install libelf-dev

 

The full set of tools will be installed by dependencies for these three packages when they are installed.

build-essential kmod debhelper devscripts

Link to comment
Share on other sites

Thanks @going,

and this I have to install on every machine in order to be possible install headers?

It looks strange to me, I never have any such problems  with old build system, last kernel built with it was 6.1.11.

I have several OrangePi's (One, Plus2E, PC2, Prime, ZeroPlus) and I allways build kernels for all of them, without need for this packages until new build system.

 

Link to comment
Share on other sites

@IgorS I can't comment on that.
Let's try to figure out what you got with the collected packages.

Please publish what the team will print:

dpkg --info linux-headers-current-sunxi_6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8_armhf.deb

 

 

Link to comment
Share on other sites

@going Thanks for helping.

libelf-dev was installed.

There is new try with more informations:

igor@honeypot:~/trash/debs$ ls -1
armbian-config_23.05.0-85_all.deb
armbian-firmware_1-SA56ad-Bf566_all.deb
kernel-sunxi-current_6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8.tar
linux-dtb-current-sunxi_6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8_armhf.deb
linux-headers-current-sunxi_6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8_armhf.deb
linux-image-current-sunxi_6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8_armhf.deb
linux-u-boot-orangepione-current_2022.07-Se092-P12e0-Be261_armhf.deb

igor@honeypot:~/trash/debs$ sudo apt install libelf-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libelf-dev is already the newest version (0.176-1.1build1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

igor@honeypot:~/trash/debs$ lsb_release -a
No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 20.04.5 LTS
Release:    20.04
Codename:    focal

igor@honeypot:~/trash/debs$ sudo dpkg -i *
(Reading database ... 107907 files and directories currently installed.)
Preparing to unpack armbian-config_23.05.0-85_all.deb ...
Unpacking armbian-config (23.05.0-85) over (23.02.0-82) ...
dpkg: warning: downgrading armbian-firmware from 23.02.0-82 to 1-SA56ad-Bf566
Preparing to unpack armbian-firmware_1-SA56ad-Bf566_all.deb ...
Unpacking armbian-firmware (1-SA56ad-Bf566) over (23.02.0-82) ...
dpkg-deb: error: 'kernel-sunxi-current_6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8.tar' is not a Debian format archive
dpkg: error processing archive kernel-sunxi-current_6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8.tar (--install):
 dpkg-deb --control subprocess returned error exit status 2
dpkg: warning: downgrading linux-dtb-current-sunxi from 23.02.0-82 to 6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8
Preparing to unpack linux-dtb-current-sunxi_6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8_armhf.deb ...
Armbian 'linux-dtb-current-sunxi' for '6.1.15-sunxi': 'preinst' starting.
+ rm -rf /boot/dtb
+ rm -rf /boot/dtb-6.1.15-sunxi
+ set +x
Armbian 'linux-dtb-current-sunxi' for '6.1.15-sunxi': 'preinst' finishing.
Unpacking linux-dtb-current-sunxi (6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8) over (23.02.0-82) ...
dpkg: warning: downgrading linux-headers-current-sunxi from 23.02.0-82 to 6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8
Preparing to unpack linux-headers-current-sunxi_6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8_armhf.deb ...
Armbian 'linux-headers-current-sunxi' for '6.1.15-sunxi': 'preinst' starting.
+ [[ -d /usr/src/linux-headers-6.1.15-sunxi ]]
+ set +x
Armbian 'linux-headers-current-sunxi' for '6.1.15-sunxi': 'preinst' finishing.
Unpacking linux-headers-current-sunxi (6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8) over (23.02.0-82) ...
dpkg: warning: downgrading linux-image-current-sunxi from 23.02.0-82 to 6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8
Preparing to unpack linux-image-current-sunxi_6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8_armhf.deb ...
Armbian 'linux-image-current-sunxi' for '6.1.15-sunxi': 'preinst' starting.
+ export 'DEB_MAINT_PARAMS=upgrade 23.02.0-82 6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8'
+ DEB_MAINT_PARAMS='upgrade 23.02.0-82 6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8'
+ export INITRD=Yes
+ INITRD=Yes
+ test -d /etc/kernel/preinst.d
+ run-parts --arg=6.1.15-sunxi --arg=/boot/vmlinuz-6.1.15-sunxi /etc/kernel/preinst.d
update-initramfs: Deleting /boot/initrd.img-5.15.93-sunxi
Removing obsolete file uInitrd-5.15.93-sunxi
+ mountpoint -q /boot
+ set +x
Armbian 'linux-image-current-sunxi' for '6.1.15-sunxi': 'preinst' finishing.
Unpacking linux-image-current-sunxi (6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8) over (23.02.0-82) ...
Preparing to unpack linux-u-boot-orangepione-current_2022.07-Se092-P12e0-Be261_armhf.deb ...
Unpacking linux-u-boot-orangepione-current (2022.07-Se092-P12e0-Be261) over (23.02.0-82) ...
Setting up armbian-config (23.05.0-85) ...
Setting up armbian-firmware (1-SA56ad-Bf566) ...
Setting up linux-dtb-current-sunxi (6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8) ...
Armbian 'linux-dtb-current-sunxi' for '6.1.15-sunxi': 'postinst' starting.
+ cd /boot
+ ln -sfT dtb-6.1.15-sunxi dtb
+ set +x
Armbian 'linux-dtb-current-sunxi' for '6.1.15-sunxi': 'postinst' finishing.
Setting up linux-headers-current-sunxi (6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8) ...
Armbian 'linux-headers-current-sunxi' for '6.1.15-sunxi': 'postinst' starting.
+ cd /usr/src/linux-headers-6.1.15-sunxi
++ grep -c processor /proc/cpuinfo
+ NCPU=4
+ echo 'Compiling kernel-headers tools (6.1.15-sunxi) using 4 CPUs - please wait ...'
Compiling kernel-headers tools (6.1.15-sunxi) using 4 CPUs - please wait ...
+ yes ''
+ make ARCH=arm oldconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/confdata.o
  HOSTCC  scripts/kconfig/expr.o
  LEX     scripts/kconfig/lexer.lex.c
  YACC    scripts/kconfig/parser.tab.[ch]
  HOSTCC  scripts/kconfig/lexer.lex.o
  HOSTCC  scripts/kconfig/menu.o
  HOSTCC  scripts/kconfig/parser.tab.o
  HOSTCC  scripts/kconfig/preprocess.o
  HOSTCC  scripts/kconfig/symbol.o
  HOSTCC  scripts/kconfig/util.o
  HOSTLD  scripts/kconfig/conf
#
# configuration written to .config
#
+ make ARCH=arm -j4 scripts
  SYNC    include/config/auto.conf.cmd
  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.[ch]
  HOSTCC  scripts/dtc/libfdt/fdt.o
  HOSTCC  scripts/dtc/libfdt/fdt_ro.o
  HOSTCC  scripts/dtc/libfdt/fdt_wip.o
  HOSTCC  scripts/dtc/libfdt/fdt_sw.o
  HOSTCC  scripts/dtc/libfdt/fdt_rw.o
  HOSTCC  scripts/dtc/libfdt/fdt_strerror.o
  HOSTCC  scripts/dtc/libfdt/fdt_empty_tree.o
  HOSTCC  scripts/dtc/libfdt/fdt_addresses.o
  HOSTCC  scripts/dtc/libfdt/fdt_overlay.o
  HOSTCC  scripts/dtc/fdtoverlay.o
  HOSTCC  scripts/dtc/dtc-lexer.lex.o
  HOSTCC  scripts/dtc/dtc-parser.tab.o
  HOSTLD  scripts/dtc/fdtoverlay
  HOSTLD  scripts/dtc/dtc
  HOSTCC  scripts/bin2c
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/recordmcount
  HOSTCC  scripts/selinux/genheaders/genheaders
  HOSTCC  scripts/selinux/mdp/mdp
  HOSTCC  scripts/sorttable
  HOSTCC  scripts/asn1_compiler
  HOSTCC  scripts/insert-sys-cert
+ make ARCH=arm -j4 M=scripts/mod/
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  CC      scripts/mod/devicetable-offsets.s
  MKELF   scripts/mod/elfconfig.h
  UPD     scripts/mod/devicetable-offsets.h
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTCC  scripts/mod/file2alias.o
  HOSTLD  scripts/mod/modpost
  MODPOST scripts/mod/Module.symvers
+ make ARCH=arm -j4 tools/objtool
  DESCEND objtool
  HOSTCC  /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/fixdep.o
  HOSTLD  /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/fixdep-in.o
  LINK    /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/fixdep
  CC      /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/weak.o
  CC      /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/check.o
  MKDIR   /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/arch/arm/
  LD      /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/arch/arm/objtool-in.o
  CC      /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/special.o
  CC      /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/exec-cmd.o
check.c:11:10: fatal error: arch/elf.h: No such file or directory
   11 | #include <arch/elf.h>
      |          ^~~~~~~~~~~~
compilation terminated.
special.c:14:10: fatal error: arch/special.h: No such file or directory
   14 | #include <arch/special.h>
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [/usr/src/linux-headers-6.1.15-sunxi/tools/build/Makefile.build:97: /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/check.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [/usr/src/linux-headers-6.1.15-sunxi/tools/build/Makefile.build:97: /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/special.o] Error 1
  CC      /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/help.o
  CC      /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/pager.o
make[2]: *** [Makefile:54: /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/objtool-in.o] Error 2
make[2]: *** Waiting for unfinished jobs....
  CC      /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/parse-options.o
  CC      /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/run-command.o
  CC      /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/sigchain.o
  CC      /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/subcmd-config.o
  LD      /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/libsubcmd-in.o
  AR      /usr/src/linux-headers-6.1.15-sunxi/tools/objtool/libsubcmd.a
make[1]: *** [Makefile:73: objtool] Error 2
make: *** [Makefile:1437: tools/objtool] Error 2
dpkg: error processing package linux-headers-current-sunxi (--install):
 installed linux-headers-current-sunxi package post-installation script subprocess returned error exit status 2
Setting up linux-image-current-sunxi (6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8) ...
Armbian 'linux-image-current-sunxi' for '6.1.15-sunxi': 'postinst' starting.
+ export 'DEB_MAINT_PARAMS=configure 23.02.0-82'
+ DEB_MAINT_PARAMS='configure 23.02.0-82'
+ export INITRD=Yes
+ INITRD=Yes
+ test -d /etc/kernel/postinst.d
+ run-parts --arg=6.1.15-sunxi --arg=/boot/vmlinuz-6.1.15-sunxi /etc/kernel/postinst.d
update-initramfs: Generating /boot/initrd.img-6.1.15-sunxi
update-initramfs: Converting to u-boot format
+ echo 'Armbian: update last-installed kernel symlink to '\''zImage'\''...'
Armbian: update last-installed kernel symlink to 'zImage'...
+ ln -sfv vmlinuz-6.1.15-sunxi /boot/zImage
'/boot/zImage' -> 'vmlinuz-6.1.15-sunxi'
+ touch /boot/.next
+ set +x
Armbian 'linux-image-current-sunxi' for '6.1.15-sunxi': 'postinst' finishing.
Setting up linux-u-boot-orangepione-current (2022.07-Se092-P12e0-Be261) ...
Errors were encountered while processing:
 kernel-sunxi-current_6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8.tar
 linux-headers-current-sunxi

 

igor@honeypot:~/trash/debs$ dpkg --info linux-headers-current-sunxi_6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8_armhf.deb 
 new Debian package, version 2.0.
 size 90777792 bytes: control archive=10240 bytes.
     753 bytes,    11 lines      control              
     712 bytes,    18 lines   *  postinst             #!/bin/bash
     442 bytes,    13 lines   *  preinst              #!/bin/bash
     425 bytes,    13 lines   *  prerm                #!/bin/bash
 Version: 6.1.15-S4261-D4dc8-Pd2ed-C54bbHfe66-Bd6b8
 Maintainer: Igor Pecovnik <igor.pecovnik@****l.com>
 Section: devel
 Package: linux-headers-current-sunxi
 Architecture: armhf
 Provides: linux-headers, linux-headers-armbian, armbian-current
 Depends: make, gcc, libc6-dev, bison, flex, libssl-dev, libelf-dev
 Description: Armbian Linux current headers version "6.1.15" git revision "42616e0f09fb4e9a6c59892a227f7bdefbd2d6d3" codename "Hurr durr Ima ninja sloth" drivers hash "4dc8886c42c815ac" patches hash "d2ed4fa5f44d9273" .config hash "54bb989b8503c440" .config hook hash "fe661159ee64825e" framework bash hash "d6b88a4bb72d3422"
  This package provides kernel header files for 6.1.15-sunxi
  .
  This is useful for DKMS and building of external modules.

 

Packages were built with:

./compile.sh BOARD=orangepione BRANCH=current BUILD_MINIMAL=no BUILD_DESKTOP=no KERNEL_ONLY=yes KERNEL_CONFIGURE=no COMPRESS_OUTPUTIMAGE=sha,img SKIP_EXTERNAL_TOOLCHAINS=no BUILD_KSRC=no PRIVATE_CCACHE=yes RELEASE=bionic ARTIFACT_IGNORE_CACHE=yes BUILD_KSRC=yes KERNEL_GIT=full

 

Edited by IgorS
Link to comment
Share on other sites

56 минут назад, IgorS сказал:

Depends: make, gcc, libc6-dev, bison, flex, libssl-dev, libelf-dev

Very strange. Dependencies are spelled out.
This means that the packages needed to build the headers are installed.


Today, @rpardini Ricardo is in charge of building kernel packages. Maybe he can clarify the situation here on the forum.
Or you can open a discussion of the issue directly on github.

Link to comment
Share on other sites

The header package has been unpacked and I assume that the target directory has remained in place. Only compilation failed. Please check it out:

cd /usr/src/linux-headers-6.1.15-sunxi/
find include/ -name elf.h
find arch/ -name elf.h

 

Please tell me, for what purpose do you use kernel headers? This is my simple curiosity.

Edited by going
add find
Link to comment
Share on other sites

@going Found following:

igor@honeypot:~/trash/debs$ pushd /usr/src/linux-headers-6.1.15-sunxi/
/usr/src/linux-headers-6.1.15-sunxi ~/trash/debs
igor@honeypot:/usr/src/linux-headers-6.1.15-sunxi$ find include/ -name elf.h
include/linux/elf.h
include/uapi/linux/elf.h
igor@honeypot:/usr/src/linux-headers-6.1.15-sunxi$ find arch/ -name elf.h
arch/csky/include/asm/elf.h
arch/openrisc/include/asm/elf.h
arch/openrisc/include/uapi/asm/elf.h
arch/xtensa/include/asm/elf.h
arch/arm/include/asm/elf.h
arch/loongarch/include/asm/elf.h
arch/parisc/include/asm/elf.h
arch/alpha/include/asm/elf.h
arch/riscv/include/asm/elf.h
arch/riscv/include/uapi/asm/elf.h
arch/sparc/include/asm/elf.h
arch/microblaze/include/asm/elf.h
arch/microblaze/include/uapi/asm/elf.h
arch/arc/include/asm/elf.h
arch/arc/include/uapi/asm/elf.h
arch/x86/include/asm/elf.h
arch/mips/include/asm/elf.h
arch/nios2/include/asm/elf.h
arch/nios2/include/uapi/asm/elf.h
arch/s390/include/asm/elf.h
arch/hexagon/include/asm/elf.h
arch/arm64/include/asm/elf.h
arch/sh/include/asm/elf.h
arch/powerpc/include/asm/elf.h
arch/powerpc/include/uapi/asm/elf.h
arch/m68k/include/asm/elf.h
arch/ia64/include/asm/elf.h
igor@honeypot:/usr/src/linux-headers-6.1.15-sunxi$ find include/ -name special.h
igor@honeypot:/usr/src/linux-headers-6.1.15-sunxi$ find arch/ -name special.h
igor@honeypot:/usr/src/linux-headers-6.1.15-sunxi$ 

 

Link to comment
Share on other sites

I have just collected kernel packages in my sandbox, on the master branch. And installed them on a clean system.
After installing the unsatisfied dependencies, the process of installing and compiling the kernel headers was successful.

 

For the new version of the kernel build process, something is clearly wrong. The compilation process cannot find the headers.
I can assume that not all dependencies are registered.

 

Unfortunately, I can't help in this matter.

11 часов назад, going сказал:

Or you can open a discussion of the issue directly on github.

 

I do not know who this one is special.h
 

Link to comment
Share on other sites

14 часов назад, going сказал:

I do not know who this one is special.h
 

I found where it can be found.

please show me:

igor@honeypot:/usr/src/linux-headers-6.1.15-sunxi$ find ./ -name special.h

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines