compilation error when dealing with the Kernel
leonardowolf opened this issue · 7 comments
I'm guessing that since the kernel got updated, the default scripts which were "hard-coded" to k 5.4 won't work anymore
INSTALL /home/munin/Projecs/lichee_project/unf_buildroot/buildroot-2022.05.1/output/build/linux-headers-v5.11-nano-3/usr/include
>>> linux-headers v5.11-nano-3 Building
>>> linux-headers v5.11-nano-3 Installing to staging directory
(cd /home/munin/Projecs/lichee_project/unf_buildroot/buildroot-2022.05.1/output/build/linux-headers-v5.11-nano-3; PATH="/home/munin/Projecs/lichee_project/unf_buildroot/buildroot-2022.05.1/output/host/bin:/home/munin/Projecs/lichee_project/unf_buildroot/buildroot-2022.05.1/output/host/sbin:/home/munin/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi/bin" /usr/bin/make ARCH=arm HOSTCC="/usr/bin/gcc" HOSTCFLAGS="" HOSTCXX="/usr/bin/g++" INSTALL_HDR_PATH=/home/munin/Projecs/lichee_project/unf_buildroot/buildroot-2022.05.1/output/host/arm-buildroot-linux-gnueabi/sysroot/usr headers_install)
INSTALL /home/munin/Projecs/lichee_project/unf_buildroot/buildroot-2022.05.1/output/host/arm-buildroot-linux-gnueabi/sysroot/usr/include
if ! support/scripts/check-kernel-headers.sh /home/munin/Projecs/lichee_project/unf_buildroot/buildroot-2022.05.1/output/build /home/munin/Projecs/lichee_project/unf_buildroot/buildroot-2022.05.1/output/host/arm-buildroot-linux-gnueabi/sysroot 5.4 strict; then exit 1; fi
Incorrect selection of kernel headers: expected 5.4.x, got 5.11.x
make[1]: *** [package/pkg-generic.mk:333: /home/munin/Projecs/lichee_project/unf_buildroot/buildroot-2022.05.1/output/build/linux-headers-v5.11-nano-3/.stamp_staging_installed] Error 1
make: *** [Makefile:84: _all] Error 2
I'm trying to solve that one myself too, but any help would be appreciated
Hi Leonardo, yes please update with results if you find something. I am slowly working through my open source issues backlog currently (had a bit of an overloaded summer!), and will try to get to the Lichee Pi related stuff in the next couple weeks.
Issue: build fails with "Incorrect selection of kernel headers: expected 5.4.x, got 5.11.x"
Solution:
make menuconfig > Toolchain ---> > Custom kernel headers series (5.4.x) ---> > change from 5.4.x to 5.11.x and save
Hi I can confirm this builds OK once the header is updated as described. I would be grateful if the maintainer could update the repo and close this ticket.
Thanks in advance
Peter
Thanks for looking into this! Since these issues are due to updated Buildroot version I will try to find a time to update my local install as well and incorporate the above changes. For now, I will tweak the docs to mention these caveats.
Hi @peterbmckinley, thanks for the invite! I am not currently working with embedded boards much, and generally a bit stretched with work unfortunately. Are you building a new devboard?