can't build gold on FreeBSD

2010-08-02 Thread Chris Jones

 Hi folks--

I'm trying to get gccgo to go, using the latest sources from binutils 
for gold. I did a quick google search, and this doesn't appear to be a 
known bug. Any help would be greatly appreciated.


Here are my system details, followed by binutils info, followed by the bug:

maxwell$ uname -a
FreeBSD maxwell.cjones.org 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 
19 02:55:53 UTC 2010 
r...@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386


binutils checked out from anon...@sourceware.org:/cvs/src a few minutes ago

Configured using: ../../gnusrc/binutils/configure --enable-gold 
--prefix=$HOME/gccgo


Built using: gmake

Error:

g++ -DHAVE_CONFIG_H -I. -I../../../gnusrc/binutils/gold  
-I../../../gnusrc/binutils/gold 
-I../../../gnusrc/binutils/gold/../include 
-I../../../gnusrc/binutils/gold/../elfcpp 
-DLOCALEDIR="\"/usr/home/chris/gccgo/share/locale\"" 
-DBINDIR="\"/usr/home/chris/gccgo/bin\"" 
-DTOOLBINDIR="\"/usr/home/chris/gccgo/i386-unknown-freebsd8.1/bin\"" 
-I./../intl  -W -Wall-Werror -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -frandom-seed=sparc.o -g -O2 -MT sparc.o -MD -MP 
-MF .deps/sparc.Tpo -c -o sparc.o ../../../gnusrc/binutils/gold/sparc.cc
../../../gnusrc/binutils/gold/sparc.cc: In member function 
'void::Target_sparcbig_endian>::gc_process_relocs(gold::Symbol_table*, gold::Layout*, 
gold::Sized_relobj*, unsigned int, unsigned int, const 
unsigned char*, size_t, gold::Output_section*, bool, size_t, const 
unsigned char*) [with int size = 64, bool big_endian = true]':

../../../gnusrc/binutils/gold/sparc.cc:3343:   instantiated from here
../../../gnusrc/binutils/gold/sparc.cc:2333: error: dependent-name 
'::Target_sparc::Relocatable_size_for_reloc' 
is parsed as a non-type, but instantiation yields a type
../../../gnusrc/binutils/gold/sparc.cc:2333: note: say 'typename 
::Target_sparc::Relocatable_size_for_reloc' if 
a type is meant
../../../gnusrc/binutils/gold/sparc.cc: In member function 
'void::Target_sparcbig_endian>::gc_process_relocs(gold::Symbol_table*, gold::Layout*, 
gold::Sized_relobj*, unsigned int, unsigned int, const 
unsigned char*, size_t, gold::Output_section*, bool, size_t, const 
unsigned char*) [with int size = 32, bool big_endian = true]':

../../../gnusrc/binutils/gold/sparc.cc:3343:   instantiated from here
../../../gnusrc/binutils/gold/sparc.cc:2333: error: dependent-name 
'::Target_sparc::Relocatable_size_for_reloc' 
is parsed as a non-type, but instantiation yields a type
../../../gnusrc/binutils/gold/sparc.cc:2333: note: say 'typename 
::Target_sparc::Relocatable_size_for_reloc' if 
a type is meant

gmake[4]: *** [sparc.o] Error 1
gmake[4]: Leaving directory `/usr/home/chris/gnuobj/binutils/gold'


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


Re: can't build gold on FreeBSD

2010-08-02 Thread Chris Jones

 On 8/2/2010 9:10 AM, Ian Lance Taylor wrote:

Chris Jones  writes:

I'm trying to get gccgo to go, using the latest sources from binutils
for gold. I did a quick google search, and this doesn't appear to be a
known bug. Any help would be greatly appreciated.

What version of g++ are you using to build gold?


The stock one that comes with FreeBSD:

maxwell$ g++ -v
Using built-in specs.
Target: i386-undermydesk-freebsd
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 4.2.1 20070719  [FreeBSD]


Note that while it is useful to use gold with gccgo on x86/x86_64, there
is currently no advantage to doing so on SPARC.


Got it. I'm not using SPARC, though -- I'm on an i386, which makes it 
seem a bit odd that the sparc files are getting compiled at all.


Chris

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