DavidJS Posted April 28, 2022 Posted April 28, 2022 I compiled the Armbian on renegade board, based on mainline linux, compiling was stopped as the output: LD vmlinux.o MODPOST vmlinux.symvers MODINFO modules.builtin.modinfo GEN modules.builtin LD .tmp_vmlinux.kallsyms1 [ error ] ERROR in function compile_kernel [ main.sh:589 -> main.sh:490 -> compilation.sh:506 -> general.sh:0 ] [ error ] Kernel was not built [ @host ] [ o.k. ] Process terminated And the logs files are in the attachments. Today the linux kernel auto updates to 5.15.36, I haven't this issue using 5.15.35 before. Anybody know why? logs.zip
KingKoro Posted April 29, 2022 Posted April 29, 2022 I am having the exact same issue as you, trying to build for a NanoPi M4V2 with rockchip64-current 5.15.36 Kernel on an Ubuntu 21.04 VM (same version of gcc). At first I thought it was an error in my code as I was also creating a custom patch. However it seems to compile without an issue when building for rockchip64-edge (5.16.x Kernel). So I'd assume that this issue is probably a bug that will hopefully get addressed soon. In the meantime I would recommend building with a different Kernel Version like 5.16, if possible.
DavidJS Posted April 29, 2022 Author Posted April 29, 2022 It seems because the 5.15.36 have removed "__sync_filesystem" function, but there are still code uses this interface, so it is a bug of 5.15.36, hope it will be fixed soon.
DavidJS Posted April 29, 2022 Author Posted April 29, 2022 2 hours ago, KingKoro said: I am having the exact same issue as you, trying to build for a NanoPi M4V2 with rockchip64-current 5.15.36 Kernel on an Ubuntu 21.04 VM (same version of gcc). At first I thought it was an error in my code as I was also creating a custom patch. However it seems to compile without an issue when building for rockchip64-edge (5.16.x Kernel). So I'd assume that this issue is probably a bug that will hopefully get addressed soon. In the meantime I would recommend building with a different Kernel Version like 5.16, if possible. The armbian build auto get 5.15.36, how can I change to 5.16?
KingKoro Posted April 29, 2022 Posted April 29, 2022 vor einer Stunde schrieb DavidJS: The armbian build auto get 5.15.36, how can I change to 5.16? You have to enable Expert Mode in the Build Options with "EXPERT=yes" by passing it to the "./compile.sh" command as an additional argument. The possible arguments are all described here: https://docs.armbian.com/Developer-Guide_Build-Options/#hidden-options-for-advanced-users-default-values-are-marked-bold Afterwards, in the command prompt, you will have a third option available for the kernel version called "edge" (image above). Atleast for the NanoPi M4V2, "edge" is currently 5.16.20-rockchip64. Maybe, though I haven't tried it before, you can also try the "LIB_TAG" Build Option to choose a different branch from the linux-mainline repository.
Werner Posted April 29, 2022 Posted April 29, 2022 5 hours ago, KingKoro said: LIB_TAG This is not for kernel versions. This is for armbian build repository tags as mentioned in the documentation.
KingKoro Posted April 30, 2022 Posted April 30, 2022 vor 12 Stunden schrieb Werner: This is not for kernel versions. This is for armbian build repository tags as mentioned in the documentation. Thanks for the correction, seems like I mixed something up, sorry.
Recommended Posts