This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

binutils-2.16.92 build failures, Linux X PPC, SPARC.



There was an appeal for people to testdrive the 2.17 RC. So, this is a summary of some successes and failures.

I merged gcc-4.1.0 on top of binutils-2.16.92 on top of newlib-1.14.0,
using cpio.

i686-pc-linux-gnu bootstrapped fine, and a cross to mips64-elf went OK.
But a cross to powerpc-eabi died in <buildarea>/bfd with:

        /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I.
                <etc..> -Wall  <etc..>
                -Werror -g -O2 -c -o coff-rs6000.lo $src/bfd/coff-rs6000.c
        cc1: warnings being treated as errors
        In function 'xcoff_write_archive_contents_old':
                :2086: warning: value computed is not used


I didn't have this problem with binutils-2.16.1. As per the suggestion in /bfd/ChangeLog-2005, I added --disable-werror to my configure command. So the next try got further: [Condensing <build area> to $b, <install area> to $i, and neatening a bit]


checking for powerpc-eabi-gcc... $b/./gcc/xgcc -B$b/./gcc/ -nostdinc -B$b/powerpc-eabi/newlib/ -isystem $b/powerpc-eabi/newlib/targ-include -isystem $src/newlib/libc/include -B$i/powerpc-eabi/bin/ -B$i/powerpc-eabi/lib/ -isystem $i/powerpc-eabi/include -isystem $i/powerpc-eabi/sys-include -L$b/./ld checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details. make[1]: *** [configure-target-libssp] Error 1 Leaving directory $b


The config.log in question seems to be (from its timestamp)


$b/powerpc-eabi/libssp/config.log

which has

        configure:2307: checking for C compiler default output file name
        configure:2310: $b/./gcc/xgcc
                -B$b/./gcc/
                -nostdinc
                -B$b/powerpc-eabi/newlib/
                -isystem $b/powerpc-eabi/newlib/targ-include
                -isystem $src/newlib/libc/include
                -B$i/powerpc-eabi/bin/
                -B$i/powerpc-eabi/lib/
                -isystem $i/powerpc-eabi/include
                -isystem $i/powerpc-eabi/sys-include
                -L$b/./ld -O2 -g -O2    conftest.c  >&5
        $b/./gcc/collect-ld: warning: cannot find entry symbol _start; defaulting to 01800074
        $b/./gcc/libgcc.a(eabi.o): In function `__eabi':
        $b/gcc/eabi.S:232: undefined reference to `__init'
        $b/./gcc/libgcc.a(eabi.o):(.got2+0x8): undefined reference to `__SDATA_START__'
        $b/./gcc/libgcc.a(eabi.o):(.got2+0xc): undefined reference to `__SBSS_END__'
                <..>
        $b/./gcc/libgcc.a(eabi.o):(.got2+0x50): undefined reference to `__EXCEPT_END__'
        collect2: ld returned 1 exit status
        configure:2313: $? = 1
        configure: failed program was:
        | /* confdefs.h.  */
        |
        | #define PACKAGE_NAME "libssp"
        | #define PACKAGE_TARNAME "libssp"
        | #define PACKAGE_VERSION "1.0"
        | #define PACKAGE_STRING "libssp 1.0"
        | #define PACKAGE_BUGREPORT ""
        | #define PACKAGE "libssp"
        | #define VERSION "1.0"
        | /* end confdefs.h.  */
        |
        | int
        | main ()
        | {
        |
        |   ;
        |   return 0;
        | }
        configure:2352: error: C compiler cannot create executables


I punted by adding --disable-libssp to my configure command. The linux cross powerpc-eabi then succeeded.


I ran the same script on Solaris 8, bootstrapping from a GCC 3.4.3 instead of /usr/bin/gcc. The bootstrap failed with:

       /bin/ksh $src/gcc/mkconfig.sh tconfig.h
        ./xgcc -B./ -B$i/sparc-sun-solaris2.8/bin/
        -isystem $i/sparc-sun-solaris2.8/include
        -isystem $i/sparc-sun-solaris2.8/sys-include
        -L$b/gcc/../ld  -c -o crt1.o -x assembler-with-cpp
        $src/gcc/config/sparc/sol2-c1.asm
                ./as: error: $b/gcc/.libs/as-new does not exist
                This script is just a wrapper for as-new.
                See the libtool documentation for more information.
                make[2]: *** [crt1.o] Error 1
                make[2]: Leaving directory $b/gcc
                make[1]: *** [stage1_build] Error 2


??


Which is as far as I've got. Logs and scripts on request.

---
Don


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]