This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Bootstrap failure in libiberty on sparc-sun-solaris2.7



Bootstrapping present CVS works for me on solaris2.7 for some time now
only until libiberty is configured (in bin/sparc-sun-solaris2.7/sparcv9/libiberty):
 
  [...]
  checking whether time.h and sys/time.h may both be included... yes
  checking whether errno must be declared... no
  checking whether the C compiler (/home/atlas2/wolf/var/gcc/gcc3.1/sun-bin/gcc/xgcc -B/home/atlas2/wolf/var/gcc/gcc3.1/sun-bin/gcc/ -B/home/people/wolf/Config/sparc-sun-solaris2.7/gcc-3.1-ss/sparc-sun-solaris2.7/bin/ -B/home/people/wolf/Config/sparc-sun-solaris2.7/gcc-3.1-ss/sparc-sun-solaris2.7/lib/ -isystem /home/people/wolf/Config/sparc-sun-solaris2.7/gcc-3.1-ss/sparc-sun-solaris2.7/include -m64 -g -O2 ) works... no
  configure: error: installation or configuration problem: C compiler cannot
  create executables.
  make[1]: *** [configure-target-libiberty] Error 1
  make[1]: Leaving directory `/home/atlas2/wolf/var/gcc/gcc3.1/sun-bin'
  make: *** [bootstrap] Error 2

I'm far from understanding the true reasons, but I suspect something goes
wrong with the detection of V8/V9 libs. The end of config.log says

  configure:2054: /home/atlas2/wolf/var/gcc/gcc3.1/sun-bin/gcc/xgcc -B/home/atlas2/wolf/var/gcc/gcc3.1/sun-bin/gcc/ -B/home/people/wolf/Config/sparc-sun-solaris2.7/gcc-3.1-ss/sparc-sun-solaris2.7/bin/ -B/home/people/wolf/Config/sparc-sun-solaris2.7/gcc-3.1-ss/sparc-sun-solaris2.7/lib/ -isystem /home/people/wolf/Config/sparc-sun-solaris2.7/gcc-3.1-ss/sparc-sun-solaris2.7/include -m64 -o conftest -g -O2   conftest.c  1>&5
  /usr/lib/libdl.so.1: could not read symbols: Invalid operation
  collect2: ld returned 1 exit status
  configure: failed program was:

  #line 2049 "configure"
  #include "confdefs.h"

  main(){return(0);}

If I run this command by hand, compilation succeeds, but linking
afterwards fails:

  > /home/atlas2/wolf/var/gcc/gcc3.1/sun-bin/gcc/xgcc -B/home/atlas2/wolf/var/gcc/gcc3.1/sun-bin/gcc/ -B/home/people/wolf/Config/sparc-sun-solaris2.7/gcc-3.1-ss/sparc-sun-solaris2.7/bin/ -B/home/people/wolf/Config/sparc-sun-solaris2.7/gcc-3.1-ss/sparc-sun-solaris2.7/lib/ -isystem /home/people/wolf/Config/sparc-sun-solaris2.7/gcc-3.1-ss/sparc-sun-solaris2.7/include  -m64 -o conftest -v conftest.o
  Reading specs from /home/atlas2/wolf/var/gcc/gcc3.1/sun-bin/gcc/specs
  Configured with: ../gcc/configure --prefix=/home/people/wolf/Config/sparc-sun-solaris2.7/gcc-3.1-ss --with-gnu-ld --with-ld=/usr/local/bin/ld --with-gnu-as --with-as=/usr/local/bin/as
  Thread model: posix
  gcc version 3.1 20011030 (experimental)
   /home/atlas2/wolf/var/gcc/gcc3.1/sun-bin/gcc/collect2 -V -m elf64_sparc -Y P,/usr/lib/sparcv9 -Qy -o conftest /home/atlas2/wolf/var/gcc/gcc3.1/sun-bin/gcc/sparcv9/crt1.o /home/atlas2/wolf/var/gcc/gcc3.1/sun-bin/gcc/sparcv9/crti.o /usr/lib/sparcv9/values-Xa.o /home/atlas2/wolf/var/gcc/gcc3.1/sun-bin/gcc/sparcv9/crtbegin.o -L/home/atlas2/wolf/var/gcc/gcc3.1/sun-bin/gcc/sparcv9 -L/home/atlas2/wolf/var/gcc/gcc3.1/sun-bin/gcc -L/usr/ccs/bin/sparcv9 -L/usr/ccs/bin -L/usr/ccs/lib/sparcv9 -L/usr/ccs/lib -L/lib/sparcv9 -L/usr/lib/sparcv9 conftest.o -lgcc -lc -lgcc /home/atlas2/wolf/var/gcc/gcc3.1/sun-bin/gcc/sparcv9/crtend.o /home/atlas2/wolf/var/gcc/gcc3.1/sun-bin/gcc/sparcv9/crtn.o
  /usr/lib/libdl.so.1: could not read symbols: Invalid operation
  GNU ld version 2.11.2 (with BFD 2.11.2)
    Supported emulations:
     elf32_sparc
     elf64_sparc
  collect2: ld returned 1 exit status


I don't know why ld complains, but one thing that _is_ remarkable is 
that /usr/lib/libdl.so.1 is a 32bit lib, while I would have expected
it to pick up its 64bit version here:

  atlas sparcv9/libiberty> file /usr/lib/libdl.so.1
  /usr/lib/libdl.so.1:	ELF 32-bit MSB dynamic lib SPARC Version 1, dynamically linked, not stripped
  
  atlas sparcv9/libiberty> file /usr/lib/sparcv9/libdl.so.1
  /usr/lib/sparcv9/libdl.so.1:	ELF 64-bit MSB dynamic lib SPARCV9 Version 1, dynamically linked, not stripped


Can someone try to enlighten me?

Regards
  Wolfgang

-------------------------------------------------------------------------
Wolfgang Bangerth          email: wolfgang.bangerth@iwr.uni-heidelberg.de
                             www: http://gaia.iwr.uni-heidelberg.de/~wolf



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