gcc-4.2.2 on x86_64 - gcc/32/llibgcc.a - Archive has no index

Poor Yorick org.gnu.gcc.help@pooryorick.com
Sat Apr 12 13:45:00 GMT 2008


gcc-4.2.2 on x86_64, with binutils-2.18, build fails.  I think this is the
relevant message from x86_64-unknown-linux-gnu/32/libmudflap/config.log:


    configure:2311: /path/to/src/gcc-4.2.2/gcc-4.2.2_build/./gcc/xgcc -B/path/to/src/gcc-4.2.2/gcc-4.2.2_build/./gcc/ -B/path/to/gcc-4.2.2/x86_64-unknown-linux-gnu/bin/ -B/path/to/gcc-4.2.2/x86_64-unknown-linux-gnu/lib/ -isystem /path/to/gcc-4.2.2/x86_64-unknown-linux-gnu/include -isystem /path/to/gcc-4.2.2/x86_64-unknown-linux-gnu/sys-include  -m32 -O2 -g -O2    conftest.c  >&5
    /path/to/src/gcc-4.2.2/gcc-4.2.2_build/./gcc/32/libgcc.a: could not read symbols: Archive has no index; run ranlib to add one

This message from the binutils list seems relevant:

    http://sourceware.org/ml/binutils/2007-09/msg00150.html

        "You can specify the default target for all the GNU binutils by setting
        the GNUTARGET environment variable.  This is sort of documented in the
        binutils manual."

But I have no idea how to apply this information as a workaround to get gcc-4.2.2 buikld on x86_64.  Any ideas?


-- 
Yorick



More information about the Gcc-help mailing list