PATCH: [4.1/4.2/4.3]: Gcc failed to detect Linux linker version

Joseph S. Myers
Thu Sep 13 23:18:00 GMT 2007

On Thu, 13 Sep 2007, Mark Mitchell wrote:

> (But, can we please stop making the GNU/Linux linker version numbers
> ever weirder?  We seem to have a patch like this rather often...)

How about saying that if you use the GNU assembler or linker with 4.3 then 
it must be at least version 2.18 (the current release)?  Then you can 
assume that the version number is the part after the last space on the 
first line of --version output, as per the GNU Coding Standards.

(OK, 2.18 may be too recent to require for 4.3, and 2.17 doesn't have the 
--version fixes, but the principle of declaring a global minimum version 

I don't really believe the statements in install.texi of the form "you 
need binutils 2.11.2 or later" reflect the true requirements; I very much 
doubt anything anywhere near that old gets much testing.

(Note that libstdc++-v3/acinclude.m4 has its own code to process linker 
versions.  In any case, it would seem a good idea for the code to be 

Joseph S. Myers

More information about the Gcc-patches mailing list