News for hackers. Stuff that matters.
Re:Win32 is the stable Linux ABI by LegionMammal978 on Tuesday December 30, 2025 @08:45PM (#46440400)
But to link against an old glibc version, you need to compile on an old distro, on a VM. And you'll have a rough time if some part of the build depends on a tool too new for your VM. It would be infinitely simpler if one could simply 'cross-compile' down to older symbol versions, but the tooling does not make this easy at all.
Re:Win32 is the stable Linux ABI by nineteen999 on Wednesday December 31, 2025 @02:53AM (#46442269)
Huh? Bullshit. You could totally compile and link in a container.
Re:Win32 is the stable Linux ABI by LeFantome on Wednesday December 31, 2025 @03:12AM (#46442339)
Ok, so you agree with him except where he says “in a VM” because you say you can also do it “in a container”.

Of course, you both leave out that you could do it “on real hardware”.

But none of this matters. The real point is that you have to compile on an old distro. If he left out “in a VM”, you would have had nothing to correct.

Re:Win32 is the stable Linux ABI by nineteen999 on Wednesday December 31, 2025 @03:20AM (#46442374)
I'm not disagreeing that glibc symbol versioning could be better. I raised it because this is probably one of the few valid use cases for containers where they would have a large advantage over a heavyweight VM.

But it's like complaining that you might need a VM or container to compile your software for Win16 or Win32s. Nobody is using those anymore. Nor really old Linux distributions. And if they do, they're not really going to complain about having to use a VM or container.

As C/C++ programmer, the thing I notice is ... the people who complain about this most loudly are the web dev crowd who don't speak C/C++, when some ancient game doesn't work on their obscure Arch/Gentoo/Ubuntu distribution and they don't know how to fix it. Boo hoo.

But they'll happily take a paycheck for writing a bunch of shit Go/Ruby/PHP code that runs on Linux 24/7 without downtime - not because of the quality of their code, but due to the reliability of the platform at _that_ particular task. Go figure.

Re:Win32 is the stable Linux ABI by Rohansi on Wednesday December 31, 2025 @05:10AM (#46442894)
> But they'll happily take a paycheck for writing a bunch of shit Go/Ruby/PHP code that runs on Linux 24/7 without downtime - not because of the quality of their code, but due to the reliability of the platform at _that_ particular task.

But does the lack of a stable ABI have any (negative) effect on the reliability of the platform?

Re:Win32 is the stable Linux ABI by nineteen999 on Wednesday December 31, 2025 @05:49PM (#46449173)
Only for people who want to use it as a desktop replacement for Windows or MacOS I guess? There are no end of people complaining they can't get their wifi or sound card or trackpad working on (insert-obscure-Linux-distribution-here).

Like many others, I have Linux servers running over 2000-3000 days uptime. So I'm going to say no, it doesn't, not really.

Re:Win32 is the stable Linux ABI by imtringued on Wednesday December 31, 2025 @05:21PM (#46448965)
>As C/C++ programmer, the thing I notice is ... the people who complain about this most loudly are the web dev crowd who don't speak C/C++, when some ancient game doesn't work on their obscure Arch/Gentoo/Ubuntu distribution and they don't know how to fix it. Boo hoo.

You must really be behind the times. Arch and Gentoo users wouldn't complain because an old game doesn't run. In fact the exact opposite would happen. It's not implausible for an Arch or Gentoo user to end up compiling their code on a five hour old release of glibc and thereby maximize glibc incompatibility with every other distribution.

Re:Win32 is the stable Linux ABI by nineteen999 on Wednesday December 31, 2025 @07:43PM (#46449983)
Re:Win32 is the stable Linux ABI by account42 on Monday January 12, 2026 @08:27AM (#46588184)
Glibc strives for backwards (but not forwards) compatibility so barring exceptions (which are extremely rare but nobody is perfect), using a newer glibc than what something was built for does not cause any issues, only using an older glibc would.
Re:Win32 is the stable Linux ABI by jhasse on Wednesday December 31, 2025 @03:52AM (#46442512)
It's actually doable without an old glibc as it was done by the Autopackage project: https://github.com/DeaDBeeF-Player/apbuild

That never took off though, containers are easier. Wirh distrobox and other tools this is quite easy, too.

Re:Win32 is the stable Linux ABI by Denvercoder9 on Wednesday December 31, 2025 @08:30AM (#46443902)
> It would be infinitely simpler if one could simply 'cross-compile' down to older symbol versions, but the tooling does not make this easy at all.

It's definitely not easy, but it's possible: using the `.symver` assembly (pseudo-)directive you can specify the version of the symbol you want to link against.

Re:Win32 is the stable Linux ABI by yx827ha on Wednesday December 31, 2025 @09:32AM (#46444349)
Check out `zig cc`. It let's you target specific glibc versions. It's a pretty amazing C toolchain.

https://andrewkelley.me/post/zig-cc-powerful-drop-in-replace...

Re:Win32 is the stable Linux ABI by account42 on Monday January 12, 2026 @08:23AM (#46588147)
> you need to compile on an old distro

Wrong.

> on a VM.

Wrong.

Cross-compiling is a thing.