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]

Re: _bfd_merged_section_offset + powerpc-eabism == dead


On Mon, Sep 24, 2001 at 07:57:08PM -0700, Benjamin Kosnik wrote:
> 
> While building an x86-linux x powerpc-eabism toolchain with current
> compiler and binutils sources, cc1plus fails to build:

configure args for gcc?

> gcc -DCROSS_COMPILE -DIN_GCC    -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H  -o cc1plus \
>       cp/call.o cp/decl.o cp/expr.o cp/pt.o cp/typeck2.o cp/class.o cp/decl2.o cp/error.o cp/lex.o cp/parse.o cp/ptree.o cp/rtti.o cp/spew.o cp/typeck.o cp/cvt.o cp/except.o cp/friend.o cp/init.o cp/method.o cp/search.o cp/semantics.o cp/tree.o cp/xref.o cp/repo.o cp/dump.o cp/optimize.o cp/mangle.o attribs.o c-common.o c-format.o c-pragma.o c-semantics.o c-lex.o c-dump.o  main.o libbackend.a libcpp.a obstack.o      ../libiberty/libiberty.a
> /mnt/hd/ahimsa/H-x86-src/bin/ld: BFD internal error, aborting at /mnt/hd/bliss/src.src/bfd/merge.c line 939 in _bfd_merged_section_offset

My simple-minded attempt to reproduce this by building and installing
binutils configured with

/src/binutils-current/configure --prefix=/usr --build=i586-linux --host=i586-linux --target=powerpc-eabism --disable-nls
make
make install

then gcc with

/src/gcc-current/configure --prefix=/usr --build=i586-linux --host=i586-linux --target=powerpc-eabism --disable-nls
make

didn't hit your problem.  I bombed later when building target libs,
probably due to lack of target includes.  Looking at my gcc/auto-conf.h,
I see "#undef HAVE_GAS_SHF_MERGE" for some reason, so it's not surprising
that I avoid your crash.  Arrgh, why doesn't the gcc build detect that I'm
using both native x86-linux binutils and powerpc binutils built from CVS
a few hours ago?

Alan


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