[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: binutils gold linker



On Wed, Aug 19, 2015 at 9:15 AM, Frans van Berckel <fberckel@xs4all.nl> wrote:
> On Tue, 2015-08-18 at 20:38 +0200, Frans van Berckel wrote:
>> On Tue, 2015-08-18 at 17:20 +0200, Artyom Tarasenko wrote:
>> > Hi Knut Petter,
>> >
>> > Can you please do the following:
>> >   git clone git://sourceware.org/git/binutils-gdb.git
>> >   mkdir binutils-build && cd binutils-build
>> >   ../binutils-gdb/configure && make -j8
>> >   mkdir gold && cd gold
>> >   ../../binutils-gdb/gold/configure && make check-TESTS
>> >
>> > And post here the test report generated? Should be something like
>> > make[1]: Entering directory `/projects/binutils-build/gold'
>> > PASS: bootstrap-test
>> > gcctestdir2-r/ld -o libgold-2-r.o -r --whole-archive libgold.a
>> > <...>
>>
>> Build binutils with your script. But make check-TESTS or make check
>> exits with (a config) error? Attaching gold-make-check.log [plain
>> txt]
>>
>> g++ -W -Wall    -Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
>> -fmerge-constants -g -O2 -Bgcctestdir/  -o large_symbol_alignment
>> large_symbol_alignment.o  -ldl
>>
>> gcctestdir/ld: -plugin: unknown option
>> gcctestdir/ld: use the --help option for usage information
>> collect2: error: ld returned 1 exit status
>> Makefile:3513: recipe for target 'large_symbol_alignment' failed
>>
>> Good to know (sparc64) git is old, and not installable.
>
> Did some Google search on plugin and found 1 + 2.
>
> https://gcc.gnu.org/ml/fortran/2015-02/msg00043.html
> http://llvm.org/docs/GoldPlugin.html
>
> So, gonna test, if git (without subversion, git-svn) is build ...

I've used a x86_64 machine to fetch it. Are you running sparc64
chrooted from wheezy?
I suppose the wheezy git should be working.

> # git clone git://sourceware.org/git/binutils-gdb.git
> # mkdir binutils-build && cd binutils-build
> # ../binutils-gdb/configure --enable-gold --enable-plugins && make -j8
> # cd gold
> # make check-TESTS
>
> Theres no need for the gold configure & build part, if i am well?

Probably. I did it as described in the binutils readme file, which
doesn't mention --enable-gold option, and was surprised that it was
not build at all.

Artyom

-- 
Regards,
Artyom Tarasenko

SPARC and PPC PReP under qemu blog: http://tyom.blogspot.com/search/label/qemu


Reply to: