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

Re: binutils gold linker



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 ...

# 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?

Thanks,


Frans van Berckel


Reply to: