This is the mail archive of the binutils@sources.redhat.com 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]

GCC snapshots + binutils 2.11 CVS won't bootstrap on FreeBSD 2.2.7


I think problems started with the freebsd gcc-config headers overhaul
to introduce DWARF-2 support.  Ever since, building GCC --with-gnu-as
--with-gnu-ld has stopped on stage 1, when the assembler complains
that DWARF-2 debugging info isn't supported.  Unfortunately, building
--without-gnu-as --without-gnu-ld doesn't work either, as the linker
fails to link the shared libstdc++-v3.  

ld -Bshareable -o .libs/libstdc++.so.3.0  .libs/libstdc++.lax/libmath.a/signbit.o .libs/libstdc++.lax/libmath.a/signbitf.o .libs/libstdc++.lax/libmath.a/nan.o  .libs/libstdc++.lax/libsupc++convenience.a/del_op.o .libs/libstdc++.lax/libsupc++convenience.a/del_opnt.o .libs/libstdc++.lax/libsupc++convenience.a/del_opv.o .libs/libstdc++.lax/libsupc++convenience.a/del_opvnt.o .libs/libstdc++.lax/libsupc++convenience.a/exception_support.o .libs/libstdc++.lax/libsupc++convenience.a/new_handler.o .libs/libstdc++.lax/libsupc++convenience.a/new_op.o .libs/libstdc++.lax/libsupc++convenience.a/new_opnt.o .libs/libstdc++.lax/libsupc++convenience.a/new_opv.o .libs/libstdc++.lax/libsupc++convenience.a/new_opvnt.o .libs/libstdc++.lax/libsupc++convenience.a/pure.o .libs/libstdc++.lax/libsupc++convenience.a/tinfo.o .libs/libstdc++.lax/libsupc++convenience.a/tinfo2.o .libs/libstdc++.lax/libsupc++convenience.a/vec.o   -lm ../libmath/.libs/libmath.a -lm ../libsupc++/.libs/libsupc++convenience.a !
-lm -lm -lc  /usr/lib/c++rt0.o
ld: ../libsupc++/.libs/libsupc++convenience.a(ARFILENAMES): bad magic

Indeed, /usr/bin/ar complains this archive is broken:

% /usr/bin/ar t .libs/libsupc++convenience.a
ARFILENAMES/
del_op.o
del_opnt.o
del_opv.o
del_opvnt.o
ar: .libs/libsupc++convenience.a: Inappropriate file type or format

Using /usr/bin/ar to create the archive is ok, but binutils' ranlib
would still break it, to the point that not even binutils' ar would be
able to use it.

Using only FreeBSD-native tools seems to work fine.  Something is very
broken regarding binutils' support of FreeBSD 2.  Maybe it should be
just disabled altogether?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

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