Unstable compilers
Unstable compilers
Posted Sep 25, 2024 5:16 UTC (Wed) by admalledd (subscriber, #95347)In reply to: Unstable compilers by sam_c
Parent article: Committing to Rust in the kernel
TL;DR: Until "recent history" of about as recent as ten years ago, compiling the Linux Kernel had a very odd list of "these are the only compiler versions *known* to work correctly, try any others and they are between you and the mantissa of your FPU doing a DIV 0". Such as specific patch levels of GCC or CLANG.
You could (especially as you approach the modern era) still often *compile* with whatever GCC (and sometimes CLANG) version so long as it was above some horribly old bare minimum, but it was not uncommon to have subtle miscompilations in more esoteric drivers, or flat out some drivers not compiling, etc.
Many forget this, because distros would baseline on these known-good compiler versions, so the majority of users would never know, often even kernel developers.