c-ward icon indicating copy to clipboard operation
c-ward copied to clipboard

Kernel version requirement

Open mokurin000 opened this issue 1 year ago • 2 comments

I found no kernel version requirement in code/issues/documentation of c-gull.

In some corner case, user may want a static-linked build for the low glibc version compability. Unfortunately, environments with an older glibc, often come with an old kernel. Should we add some tests for kernel version compability? Running qemu-system in github actions, e.g.

mokurin000 avatar Jan 03 '25 19:01 mokurin000

At the very least c-ward needs the oldest version supported by rustix which is currently Linux 3.2 which matches the minimum version necessary for the x86_64-unknown-linux-gnu target: https://github.com/bytecodealliance/rustix/?tab=readme-ov-file#minimum-linux-version Note that eyra reuses the x86_64-unknown-linux-gnu target and as such libstd uses several libc functions that need syscalls only supported in Linux 3.2 or higher.

bjorn3 avatar Jan 03 '25 19:01 bjorn3

Yes, I think it makes sense for c-gull to aim to follow rustix's minimum, at least by default.

qemu-system tests for older Linux versions in CI would indeed be nice to have.

sunfishcode avatar Jan 04 '25 21:01 sunfishcode