Major CVS LFS bug - binutils-2.13.2.1

Christian Mudra mudra at informatik.uni-kl.de
Mon Jan 27 10:11:54 PST 2003


On Tue, Jan 28, 2003 at 02:56:35AM +1100, Greg Schafer wrote:
> Essentially, this is a recurrence of the old HAVE_GAS_HIDDEN thing. At first
> glance, it looks to me like the extra digit in the binutils-2.13.2.1 is
> confusing gcc's configure script.

The confuse is in the part where the ld is checked, if it supports
hidden (somewhere in gcc-3.2.1/gcc/configure around line 7220):

    # GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
    # This is irritatingly difficult to feature test for.  Look for
    # the date string after the version number.
    ld_ver=`$gcc_cv_ld --version 2>/dev/null | head -1`

--> $ld_ver == GNU ld version 2.13.2.1

    ld_vers=`echo $ld_ver | sed -n 's,^.*[  ]\([0-9][0-9]*\.[0-9][0-9]*\(\|\.[0-9][0-9]*\)\)\([     ].*\|\)$,\1,p'`
    ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`

these variables will be empty then, and a few lines below this check matches:

    elif test -z "$ld_vers"; then
        # If there was no date string nor ld version number, something is wrong
        gcc_cv_as_hidden="no"
    ...

The easiest workaround still seems to use the old
'echo #define HAVE_GAS_HIDDEN 1' as used earlier. Or at least a note
for all the people who wants to install HJ Lu's binutils to do that.

Christian.

PS: I did also run into that problem when trying the gcc-3.2.2 from cvs
    two weeks ago.

----------------------------------------------------------------------------
Christian Mudra              Just remember what your mother always told you:
mudra at informatik.uni-kl.de       "When you open windows you let in bugs".
Tubmud Admin (telnet mud.cs.tu-berlin.de 7680)
Systembetreuer AG Wiehagen, Universitaet Kaiserslautern
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-dev' in the subject header of the message



More information about the lfs-dev mailing list