Weird that they seem to have such a hard time. Bumping glibc isn't difficult if you can get it to build. That's pretty much it. Getting there is sometimes tricky, but other than that it'll be backwards compatible with everything previously compiled. Bumping gcc is no different unless there are changes in how some things are linked, like libssp, libgcc, etc., statically or dynamically, or when default compiler options are changed like pie. Or changing target triplets from x86_64-unknown-linux-gnu to x86_64-arch-linux-gnu or whatever. Worst is usually just new warnings and stupid projects using Werror in release builds so things break for no reason... Which is why I patch Werror out completely nowadays. Only downgrading is a pain, but in emergencies stubbing out missing symbols tends to work. At least that's been my experience. If all else fails, just take a look at how Gentoo makes it compile with whatever settings Arch uses.
But it seems they don't even have a working toolchain that compiles their current glibc. If it's so borked that it can't compile with itself they might need to bootstrap from an earlier version or "cross-compile" from somewhere else.
No, you don't need the exact same compiler. That hasn't been true for over a decade, back in the gcc2/3 days. Maybe a bit later, but not that much later. I haven't tried mixing gcc kernel with clang modules because my kernel is monolithic but with some luck even that might work. Probably not with LTO, though. Mixing kernel patch releases is more risky but with no configuration changes breakage is rare. I think it requires enabling some symbol versioning option in the modules section in menuconfig. Anyway, at least for different gcc versions it is not an issue, especially a minor version bump like 11.1 -> 11.2, which should be ABI compatible (or it's a bug AFAICT).
But it seems they don't even have a working toolchain that compiles their current glibc. If it's so borked that it can't compile with itself they might need to bootstrap from an earlier version or "cross-compile" from somewhere else.
Originally posted by osw89
View Post
Comment