Can't build 6.6 kernel for x86_64

Philip Prindeville philipp_subx at redfish-solutions.com
Thu Jul 11 19:51:24 PDT 2024


Was able to get a build with:

--- a/kernel-config
+++ b/kernel-config
@@ -35,6 +35,8 @@ CONFIG_CHR_DEV_SG=m
 CONFIG_CLZ_TAB=y
 CONFIG_COREDUMP=y
 CONFIG_CRASH_DUMP=y
+CONFIG_CRASH_HOTPLUG=y
+CONFIG_CRASH_MAX_MEMORY_RANGES=8192
 CONFIG_CRYPTO_ABLK_HELPER=y
 CONFIG_CRYPTO_AKCIPHER=y
 CONFIG_CRYPTO_AKCIPHER2=y
@@ -67,6 +69,8 @@ CONFIG_CRYPTO_HW=y
 CONFIG_CRYPTO_JITTERENTROPY=y
 CONFIG_CRYPTO_KPP=y
 CONFIG_CRYPTO_KPP2=y
+# CONFIG_CRYPTO_MANAGER_DISABLE_TESTS is not set
+# CONFIG_CRYPTO_MANAGER_EXTRA_TESTS is not set
 CONFIG_CRYPTO_MD5=m
 CONFIG_CRYPTO_NULL=y
 CONFIG_CRYPTO_POLY1305=y


> On Jul 10, 2024, at 9:55 PM, Philip Prindeville <philipp_subx at redfish-solutions.com> wrote:
> 
> Hi,
> 
> I rebased Sunday to HEAD on master because it had been over a year since I updated my firmware, and I'm thinking either the config is broken or I missed a step.
> 
> I have a env/kernel-config file but after I rebased, reindexed with "scripts/feeds update -i && scripts/feeds install -a", and did "make oldconfig defconfig", nothing in my kernel-config seemed to change.
> 
> And when I built, I got this:
> 
> ...
> + x86_64-openwrt-linux-musl-ld -m elf_x86_64 -z noexecstack --no-warn-rwx-segments -z max-page-size=0x200000 --build-id=sha1 -X --orphan-handling=warn --script=./arch/x86/kernel/vmlinux.lds --strip-debug -o .tmp_vmlinux.kallsyms1 --whole-archive vmlinux.a .vmlinux.export.o init/version-timestamp.o --no-whole-archive --start-group --end-group
> x86_64-openwrt-linux-musl-ld: drivers/crypto/intel/qat/qat_common/qat_comp_algs.o: in function `qat_comp_algs_register':
> /home/philipp/lede/build_dir/target-x86_64_musl/linux-x86_64/linux-6.6.36/drivers/crypto/intel/qat/qat_common/qat_comp_algs.c:478:(.text+0xbec): undefined reference to `crypto_register_acomps'
> x86_64-openwrt-linux-musl-ld: drivers/crypto/intel/qat/qat_common/qat_comp_algs.o: in function `qat_comp_algs_unregister':
> /home/philipp/lede/build_dir/target-x86_64_musl/linux-x86_64/linux-6.6.36/drivers/crypto/intel/qat/qat_common/qat_comp_algs.c:487:(.text+0xc48): undefined reference to `crypto_unregister_acomps'
> make[7]: *** [scripts/Makefile.vmlinux:37: vmlinux] Error 1
> make[6]: *** [/home/philipp/lede/build_dir/target-x86_64_musl/linux-x86_64/linux-6.6.36/Makefile:1164: vmlinux] Error 2
> make[5]: *** [Makefile:234: __sub-make] Error 2
> make[5]: Leaving directory '/home/philipp/lede/build_dir/target-x86_64_musl/linux-x86_64/linux-6.6.36'
> make[4]: *** [Makefile:26: /home/philipp/lede/build_dir/target-x86_64_musl/linux-x86_64/linux-6.6.36/.modules] Error 2
> make[4]: Leaving directory '/home/philipp/lede/target/linux/x86'
> make[3]: *** [Makefile:11: compile] Error 2
> make[3]: Leaving directory '/home/philipp/lede/target/linux'
> time: target/linux/compile#2821.60#261.82#3080.51
>    ERROR: target/linux failed to build.
> make[2]: *** [target/Makefile:32: target/linux/compile] Error 1
> make[2]: Leaving directory '/home/philipp/lede'
> make[1]: *** [target/Makefile:25: /home/philipp/lede/staging_dir/target-x86_64_musl/stamp/.target_compile] Error 2
> make[1]: Leaving directory '/home/philipp/lede'
> make: *** [/home/philipp/lede/include/toplevel.mk:248: world] Error 2
> 
> 
> I unset "CONFIG_PACKAGE_kmod-crypto-acompress" in my .config and set "CONFIG_CRYPTO_ACOMP2=y" in my kernel-config, but no joy.
> 
> What am I missing?  And what are the steps to refresh your kernel config after a rebase?
> 
> Thanks,
> 
> -Philip
> 




More information about the openwrt-devel mailing list