Hi Folks - between Saturday & Sunday the “rescue” has gone from bad, to worse, to major disaster. Abandoning the attempts to restore from 9.4.2 backup, I ran a fresh DietPi install over the 128GB drive and started from scratch.
The “recipe” for this wondrous music playback calls for compiling a very specific kernel from kernel.org (https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.19.17.tar.gz). The original “author” of this concoction specified many obscure settings to make in the config before compiling - no fun to redo when the compile job fails, and needs to resume from the top.
When I first did this a year ago, the compile went smoothly and I got on with the rest of the tinkering adjustments just fine.
Not so today. For some reason, both apt-utils and bison were missing, thus preventing make menuconfig from running. Installed them both and continued. In case it holds a clue this is from a good run:
root@DietPi:~/linux-5.19.17# make menuconfig
HOSTCC scripts/basic/fixdep
UPD scripts/kconfig/mconf-cfg
HOSTCC scripts/kconfig/mconf.o
HOSTCC scripts/kconfig/lxdialog/checklist.o
HOSTCC scripts/kconfig/lxdialog/inputbox.o
HOSTCC scripts/kconfig/lxdialog/menubox.o
HOSTCC scripts/kconfig/lxdialog/textbox.o
HOSTCC scripts/kconfig/lxdialog/util.o
HOSTCC scripts/kconfig/lxdialog/yesno.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/mconf
#
# using defaults found in /boot/config-6.1.0-21-amd64
#
.config:9250:warning: symbol value 'm' invalid for ANDROID_BINDER_IPC
*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.
Then came the compile failures - two times now. First fatal error: #include <openssl/opensslv.h> was not found. Installed that with apt-get install libssl-dev and began again.
Next, two fatal errors in one go, as seen here:
root@DietPi:~/linux-5.19.17# make
SYNC include/config/auto.conf.cmd
HOSTCC scripts/kconfig/conf.o
HOSTLD scripts/kconfig/conf
SYSHDR arch/x86/include/generated/uapi/asm/unistd_32.h
SYSHDR arch/x86/include/generated/uapi/asm/unistd_64.h
SYSHDR arch/x86/include/generated/uapi/asm/unistd_x32.h
SYSTBL arch/x86/include/generated/asm/syscalls_32.h
SYSHDR arch/x86/include/generated/asm/unistd_32_ia32.h
SYSHDR arch/x86/include/generated/asm/unistd_64_x32.h
SYSTBL arch/x86/include/generated/asm/syscalls_64.h
SYSTBL arch/x86/include/generated/asm/syscalls_x32.h
HYPERCALLS arch/x86/include/generated/asm/xen-hypercalls.h
HOSTCC arch/x86/tools/relocs_32.o
HOSTCC arch/x86/tools/relocs_64.o
HOSTCC arch/x86/tools/relocs_common.o
HOSTLD arch/x86/tools/relocs
HOSTCC scripts/genksyms/genksyms.o
YACC scripts/genksyms/parse.tab.[ch]
HOSTCC scripts/genksyms/parse.tab.o
LEX scripts/genksyms/lex.lex.c
HOSTCC scripts/genksyms/lex.lex.o
HOSTLD scripts/genksyms/genksyms
HOSTCC scripts/selinux/genheaders/genheaders
HOSTCC scripts/selinux/mdp/mdp
HOSTCC scripts/bin2c
HOSTCC scripts/kallsyms
HOSTCC scripts/sorttable
HOSTCC scripts/asn1_compiler
HOSTCC scripts/sign-file
WRAP arch/x86/include/generated/uapi/asm/bpf_perf_event.h
WRAP arch/x86/include/generated/uapi/asm/errno.h
WRAP arch/x86/include/generated/uapi/asm/fcntl.h
WRAP arch/x86/include/generated/uapi/asm/ioctl.h
WRAP arch/x86/include/generated/uapi/asm/ioctls.h
WRAP arch/x86/include/generated/uapi/asm/ipcbuf.h
WRAP arch/x86/include/generated/uapi/asm/param.h
WRAP arch/x86/include/generated/uapi/asm/poll.h
WRAP arch/x86/include/generated/uapi/asm/resource.h
WRAP arch/x86/include/generated/uapi/asm/socket.h
WRAP arch/x86/include/generated/uapi/asm/sockios.h
WRAP arch/x86/include/generated/uapi/asm/termbits.h
WRAP arch/x86/include/generated/uapi/asm/termios.h
WRAP arch/x86/include/generated/uapi/asm/types.h
WRAP arch/x86/include/generated/asm/early_ioremap.h
WRAP arch/x86/include/generated/asm/export.h
WRAP arch/x86/include/generated/asm/mcs_spinlock.h
WRAP arch/x86/include/generated/asm/irq_regs.h
WRAP arch/x86/include/generated/asm/kmap_size.h
WRAP arch/x86/include/generated/asm/local64.h
WRAP arch/x86/include/generated/asm/mmiowb.h
WRAP arch/x86/include/generated/asm/module.lds.h
WRAP arch/x86/include/generated/asm/platform-feature.h
WRAP arch/x86/include/generated/asm/rwonce.h
WRAP arch/x86/include/generated/asm/unaligned.h
UPD include/config/kernel.release
UPD include/generated/uapi/linux/version.h
UPD include/generated/utsrelease.h
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/modpost.o
CC scripts/mod/devicetable-offsets.s
UPD scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
CC kernel/bounds.s
UPD include/generated/bounds.h
UPD include/generated/timeconst.h
CC arch/x86/kernel/asm-offsets.s
UPD include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
CALL scripts/atomic/check-atomics.sh
DESCEND objtool
<stdin>:1:10: fatal error: libelf.h: No such file or directory
compilation terminated.
HOSTCC /root/linux-5.19.17/tools/objtool/fixdep.o
HOSTLD /root/linux-5.19.17/tools/objtool/fixdep-in.o
LINK /root/linux-5.19.17/tools/objtool/fixdep
CC /root/linux-5.19.17/tools/objtool/exec-cmd.o
CC /root/linux-5.19.17/tools/objtool/help.o
CC /root/linux-5.19.17/tools/objtool/pager.o
CC /root/linux-5.19.17/tools/objtool/parse-options.o
CC /root/linux-5.19.17/tools/objtool/run-command.o
CC /root/linux-5.19.17/tools/objtool/sigchain.o
CC /root/linux-5.19.17/tools/objtool/subcmd-config.o
LD /root/linux-5.19.17/tools/objtool/libsubcmd-in.o
AR /root/linux-5.19.17/tools/objtool/libsubcmd.a
CC /root/linux-5.19.17/tools/objtool/arch/x86/special.o
In file included from /root/linux-5.19.17/tools/objtool/include/objtool/objtool.h:13,
from /root/linux-5.19.17/tools/objtool/include/objtool/arch.h:11,
from /root/linux-5.19.17/tools/objtool/include/objtool/check.h:11,
from /root/linux-5.19.17/tools/objtool/include/objtool/special.h:10,
from arch/x86/special.c:4:
/root/linux-5.19.17/tools/objtool/include/objtool/elf.h:10:10: fatal error: gelf.h: No such file or directory
10 | #include <gelf.h>
| ^~~~~~~~
compilation terminated.
make[4]: *** [/root/linux-5.19.17/tools/build/Makefile.build:97: /root/linux-5.19.17/tools/objtool/arch/x86/special.o] Error 1
make[3]: *** [/root/linux-5.19.17/tools/build/Makefile.build:139: arch/x86] Error 2
make[2]: *** [Makefile:54: /root/linux-5.19.17/tools/objtool/objtool-in.o] Error 2
make[1]: *** [Makefile:73: objtool] Error 2
make: *** [Makefile:1347: tools/objtool] Error 2
root@DietPi:~/linux-5.19.17#
Gee, could this be happening because this kernel (linux-5.19.17) is so “old” ? If it won’t compile now, I’m back to restoring my backup. Please help the noobie help himself
.
Thank you.