I seen it run on debian stable and centos stable, so it can be very very old, but you may need to update the GCC sometimes...
I think with https://bedrocklinux.org nowadays is no longer a problem, you can just hijack up to date software from Arch, Void, Alpine, etc.
1 Linux that unifies all Linuxes finally...