* Building gold from binutils-2.20 alongside gcc trunk errors out:
@ 2009-10-25 17:36 Toon Moene
2009-10-25 18:54 ` Toon Moene
0 siblings, 1 reply; 4+ messages in thread
From: Toon Moene @ 2009-10-25 17:36 UTC (permalink / raw)
To: gcc mailing list
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
-Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-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/reduced_debug_output.cc
../../gcc/gold/plugin.cc: In member function ‘void gold::Plugin::load()’:
../../gcc/gold/plugin.cc:195: error: ‘LDPT_ADD_INPUT_LIBRARY’ was not
declared in this scope
../../gcc/gold/plugin.cc:196: error: ‘union ld_plugin_tv::<anonymous>’
has no member named ‘tv_add_input_library’
make[5]: *** [plugin.o] Error 1
g++ is:
$ g++ --version
g++ (Debian 4.3.4-5) 4.3.4
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This started to go wrong after I added --enable-plugins to the configure
line. Indeed build/gold/config.h contains the following define:
#define ENABLE_PLUGINS 1
As my knowledge of the C++ language is close to zero, I do not see how
to work around this, but the error message seems to indicate that a
union is missing a member that's accessed in plugin.cc.
Any suggestions ?
Thanks in advance,
--
Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
At home: http://moene.org/~toon/
Progress of GNU Fortran: http://gcc.gnu.org/gcc-4.5/changes.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Building gold from binutils-2.20 alongside gcc trunk errors out:
2009-10-25 17:36 Building gold from binutils-2.20 alongside gcc trunk errors out: Toon Moene
@ 2009-10-25 18:54 ` Toon Moene
2009-10-25 22:56 ` Richard Guenther
0 siblings, 1 reply; 4+ messages in thread
From: Toon Moene @ 2009-10-25 18:54 UTC (permalink / raw)
To: gcc mailing list
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
> -Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> -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/reduced_debug_output.cc
> ../../gcc/gold/plugin.cc: In member function ‘void gold::Plugin::load()’:
> ../../gcc/gold/plugin.cc:195: error: ‘LDPT_ADD_INPUT_LIBRARY’ was not
> declared in this scope
> ../../gcc/gold/plugin.cc:196: 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:
/usr/snp/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/bin/ld:
error: /scratch/hirlam/hl_home/EXP/lib/src/linuxgfortran/lib/port.a:
multiple definition of casihl_
/usr/snp/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/bin/ld:
error: /scratch/hirlam/hl_home/EXP/lib/src/linuxgfortran/lib/port.a:
previous definition here
....
--
Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
At home: http://moene.org/~toon/
Progress of GNU Fortran: http://gcc.gnu.org/gcc-4.5/changes.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Building gold from binutils-2.20 alongside gcc trunk errors out:
2009-10-25 18:54 ` Toon Moene
@ 2009-10-25 22:56 ` Richard Guenther
2009-10-26 2:01 ` Toon Moene
0 siblings, 1 reply; 4+ messages in thread
From: Richard Guenther @ 2009-10-25 22:56 UTC (permalink / raw)
To: Toon Moene; +Cc: gcc mailing list
On Sun, Oct 25, 2009 at 7:42 PM, Toon Moene <toon@moene.org> wrote:
> 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 -Werror
>> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
>> -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/reduced_debug_output.cc
>> ../../gcc/gold/plugin.cc: In member function ‘void gold::Plugin::load()’:
>> ../../gcc/gold/plugin.cc:195: error: ‘LDPT_ADD_INPUT_LIBRARY’ was not
>> declared in this scope
>> ../../gcc/gold/plugin.cc:196: 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:
>
> /usr/snp/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/bin/ld:
> error: /scratch/hirlam/hl_home/EXP/lib/src/linuxgfortran/lib/port.a:
> multiple definition of casihl_
> /usr/snp/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/bin/ld:
> error: /scratch/hirlam/hl_home/EXP/lib/src/linuxgfortran/lib/port.a:
> previous definition here
I think that's PR41764.
Richard.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Building gold from binutils-2.20 alongside gcc trunk errors out:
2009-10-25 22:56 ` Richard Guenther
@ 2009-10-26 2:01 ` Toon Moene
0 siblings, 0 replies; 4+ messages in thread
From: Toon Moene @ 2009-10-26 2:01 UTC (permalink / raw)
To: Richard Guenther; +Cc: gcc mailing list
Richard Guenther wrote:
> On Sun, Oct 25, 2009 at 7:42 PM, Toon Moene <toon@moene.org> wrote:
>> /usr/snp/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/bin/ld:
>> error: /scratch/hirlam/hl_home/EXP/lib/src/linuxgfortran/lib/port.a:
>> multiple definition of casihl_
>> /usr/snp/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/bin/ld:
>> error: /scratch/hirlam/hl_home/EXP/lib/src/linuxgfortran/lib/port.a:
>> previous definition here
>
> I think that's PR41764.
Definitely looks the same ...
--
Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
At home: http://moene.org/~toon/
Progress of GNU Fortran: http://gcc.gnu.org/gcc-4.5/changes.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-10-25 18:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-25 17:36 Building gold from binutils-2.20 alongside gcc trunk errors out: Toon Moene
2009-10-25 18:54 ` Toon Moene
2009-10-25 22:56 ` Richard Guenther
2009-10-26 2:01 ` Toon Moene
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).