musl-cross-make icon indicating copy to clipboard operation
musl-cross-make copied to clipboard

question about kernel version!

Open phpstatic opened this issue 5 years ago • 3 comments
trafficstars

I build static PHP package with musl-cross-make.

If I build MUSL with kernel 4.19, will the binary work without problem on old kernel like 3.2?

The GLIBC has --enable=kernel= options, is MUSL need this ?

phpstatic avatar Feb 13 '20 14:02 phpstatic

musl does not use kernel headers whatsoever, and they have no bearing on what kernels you can run with. Installation of kernel headers is only a convenience feature since lots of low-level software (including a large number of busybox applets) depends on them. Older kernel headers are not compatible with a time64 userspace, so support for them was dropped recently from mcm.

richfelker avatar Feb 13 '20 15:02 richfelker

Thanks for the quick response.

On my test it work on old kernel, but I am not able to test them all and every corner case, so I confirm this here.

build with kernel 4.19.90, and it seems run well on 5.1.17 and 4.9.0.

phpstatic avatar Feb 13 '20 16:02 phpstatic

Unless the software you're building with musl is using the kernel headers, you really don't need to test at all. They are not used (or even available) when compiling musl or the gcc target libs, and only installed as an optional component. You can even set LINUX_VER blank in your config.mak and not install them at all if you want to check this.

richfelker avatar Feb 13 '20 18:02 richfelker