Building gold from binutils-2.20 alongside gcc trunk errors out:

Toon Moene
Sun Oct 25 18:54:00 GMT 2009

Toon Moene wrote:
> As follows:
> g++ -DHAVE_CONFIG_H -I. -I../../gcc/gold  -I../../gcc/gold 
> -I../../gcc/gold/../include -I../../gcc/gold/../elfcpp 
> -DLOCALEDIR="\"/usr/snp/share/locale\"" -DBINDIR="\"/usr/snp/bin\"" 
> -DTOOLBINDIR="\"/usr/snp/x86_64-unknown-linux-gnu/bin\""   -W -Wall 
> -frandom-seed=reduced_debug_output.o -g -fkeep-inline-functions -MT 
> reduced_debug_output.o -MD -MP -MF .deps/reduced_debug_output.Tpo -c -o 
> reduced_debug_output.o ../../gcc/gold/
> ../../gcc/gold/ In member function ‘void gold::Plugin::load()’:
> ../../gcc/gold/ error: ‘LDPT_ADD_INPUT_LIBRARY’ was not 
> declared in this scope
> ../../gcc/gold/ error: ‘union ld_plugin_tv::<anonymous>’ 
> has no member named ‘tv_add_input_library’
> make[5]: *** [plugin.o] Error 1

Fixed that by downloading a version 2.20.51 dated 24th of October.

Unfortunately, while it builds without a hitch, it apparently cannot 
cope with Fortran COMMON blocks:

error: /scratch/hirlam/hl_home/EXP/lib/src/linuxgfortran/lib/port.a: 
multiple definition of casihl_
error: /scratch/hirlam/hl_home/EXP/lib/src/linuxgfortran/lib/port.a: 
previous definition here


Toon Moene - e-mail: - phone: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
At home:
Progress of GNU Fortran:

More information about the Gcc mailing list