SkiffOS: Incorrect selection of kernel headers: expected 5.9.x, got 5.11.x

Trying to build for RockPro64 SoC, using Docker on an Intel Mac to try to build SkiffOS I am getting the following error:

>>> linux-headers custom Installing to staging directory
(cd /home/buildroot/skiff/workspaces/default/build/linux-headers-custom; PATH="/home/buildroot/skiff/workspaces/default/host/bin:/home/buildroot/skiff/workspaces/default/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" /usr/bin/make -j5 ARCH=arm64 HOSTCC="/home/buildroot/skiff/workspaces/default/host/bin/ccache /usr/bin/gcc" HOSTCFLAGS="" HOSTCXX="/home/buildroot/skiff/workspaces/default/host/bin/ccache /usr/bin/g++" INSTALL_HDR_PATH=/home/buildroot/skiff/workspaces/default/host/aarch64-buildroot-linux-gnu/sysroot/usr headers_install)
  INSTALL /home/buildroot/skiff/workspaces/default/host/aarch64-buildroot-linux-gnu/sysroot/usr/include
if ! support/scripts/check-kernel-headers.sh  /home/buildroot/skiff/workspaces/default/build  /home/buildroot/skiff/workspaces/default/host/aarch64-buildroot-linux-gnu/sysroot  5.9 strict; then exit 1; fi
Incorrect selection of kernel headers: expected 5.9.x, got 5.11.x
make[3]: *** [package/pkg-generic.mk:290: /home/buildroot/skiff/workspaces/default/build/linux-headers-custom/.stamp_staging_installed] Error 1
make[2]: *** [Makefile:23: _all] Error 2
make[2]: Leaving directory '/home/buildroot/skiff/workspaces/default'
make[1]: *** [Makefile:64: compile] Error 2
make[1]: Leaving directory '/home/buildroot/skiff/build'
make: *** [Makefile:2: compile] Error 2

As mentioned the build is attempted on an Intel Mac in Docker on branch 2021.02-rc3 using the following commands:

export SKIFF_CONFIG=apps/docker,apps/yacht,core/gentoo,pine64/rockpro64,skiff/core
make configure
make compile

The error occurs on the compile step.

I’m pretty sure I had a similar build error on the 2020.11.7 branch as well (at least it didn’t compile either).

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16 (8 by maintainers)

Most upvoted comments

@ootoovak Going to close this particular issue for now, please see https://github.com/skiffos/SkiffOS/issues/146 about the macos build & post there w/ any issues. Thanks again for testing.

Thanks for the info, I’ll try to replicate it following the same steps.

@ootoovak Just noticed that I didn’t push the commit, oops. It’s commit 14282178d7801738 - give it a try with that one applied.

You can’t just drop the common package and expect it to work. It’s needed.

Undo that change: git fetch origin; git checkout origin/master ./configs/pine64, delete your workspace (to clean) i.e. rm -rf ./workspaces/default and try again with SKIFF_CONFIG=pine64/rockpro64,core/gentoo,apps/yacht.

By the way: the error when building is printed just before the make[] portion of the output (before what you sent).

Hi, I was able to reproduce and also fix this issue by dropping a old config line in pine64/common. Please try again on latest master branch.