compilation error

2010-09-01 Thread Bin Zeng

 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


bug report

2010-09-06 Thread Bin Zeng

 Hi,

I encountered a bug in the newest version of binutils.

1. I checked out the fresh source code from the cvs repository by
  cvs -z 9 -d :pserver:anon...@sourceware.org:/cvs/src co binutils
So the binutils must be the newest version.

2. The installation was configured with
  ../src/configure --enable-gold --enable-plugins

3. the gcc version
# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/i686-pc-linux-gnu/4.6.0/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: ../gcc-src/configure --enable-shared 
--enable-threads=posix --enable-checking=release 
--enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,fortran 
--enable-java-awt=gtk --disable-dssi --enable-plugin --with-cpu=generic

Thread model: posix
gcc version 4.6.0 20100902 (experimental) GCC

4. The error message:
../../src/gold/plugin.cc: 618:13: error: variable 'sym_size' set but not 
used [-Werror=unused-but-set-variable]

cc1plus: all warnings being treated as errors

I tried to delete -Werror from the Makefile but I could not find it. 
Thanks a lot!!!


Bin


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils