Hi,
There is a compilation error when I tried to build binutils.
I checked out the fresh copy of binutils from the repository:
cvs -z 9 -d :pserver:anon...@sourceware.org:/cvs/src co binutils
I configure binutils to with --enable-gold --enable-plugins to enable
gold and plugins.
However, when I tried to build binutils in another directory, some
errors popped up. Here is the snippet of error message:
../../src/gold/arm.cc: In instantiation of âconst size_t
::Target_arm::fake_relnum_for_stubsâ:
../../src/gold/arm.cc:8562: instantiated from
âbool::Target_arm::Relocate::relocate(const
gold::Relocate_info<32, big_endian>*,
::Target_arm*, gold::Output_section*, size_t, const
elfcpp::Rel<32, big_endian>&, unsigned int, const
gold::Sized_symbol<32>*, const gold::Symbol_value<32>*, unsigned char*,
::Arm_address, gold::section_size_type) [with bool big_endian =
false]â
../../src/gold/target-reloc.h:334: instantiated from âvoid
gold::relocate_section(const gold::Relocate_info*,
Target_type*, const unsigned char*, size_t, gold::Output_section*, bool,
unsigned char*, typename elfcpp::Elf_types::Elf_Addr,
gold::section_size_type, const gold::Reloc_symbol_changes*) [with int
size = 32, bool big_endian = false, Target_type =
::Target_arm, int sh_type = 9, Relocate =
::Target_arm::Relocate]â
../../src/gold/arm.cc:9221: instantiated from
âvoid::Target_arm::relocate_section(const
gold::Relocate_info<32, big_endian>*, unsigned int, const unsigned
char*, size_t, gold::Output_section*, bool, unsigned char*,
::Arm_address, gold::section_size_type, const
gold::Reloc_symbol_changes*) [with bool big_endian = false]â
../../src/gold/arm.cc:11674: instantiated from here
../../src/gold/arm.cc:2135: internal compiler error: in
make_rtl_for_nonlocal_decl, at cp/decl.c:5067
Please submit a full bug report,
with preprocessed source if appropriate.
See http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/cczIynyz.out file, please attach
this to your bugreport.
gmake[4]: *** [arm.o] Error 1
gmake[4]: Leaving directory `/export/home/zbin/llvm/binutils/build/gold'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/export/home/zbin/llvm/binutils/build/gold'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/export/home/zbin/llvm/binutils/build/gold'
gmake[1]: *** [all-gold] Error 2
gmake[1]: Leaving directory `/export/home/zbin/llvm/binutils/build'
gmake: *** [all] Error 2
My system is:
[z...@sos build]$ uname -a
Linux sos 2.6.18-128.7.1.el5PAE #1 SMP Mon Aug 24 08:59:38 EDT 2009 i686
i686 i386 GNU/Linux
Thank you very much!
Bin
___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils