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

Re: binutils gold linker



On Wed, Aug 19, 2015 at 11:32 AM, Knut Petter Ølberg <kpolberg@gmail.com> wrote:
>>
>> > # 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
>> >
>>
>
>  I'm currently stuck here...
>
> make[1]: Entering directory `/root/src/binutils-build/gold'
> g++ -DHAVE_CONFIG_H -I. -I../../binutils-gdb/gold  -I../../binutils-gdb/gold
> -I../../binutils-gdb/gold/../include -I../../binutils-gdb/gold/../elfcpp
> -DLOCALEDIR="\"/usr/local/share/locale\"" -DBINDIR="\"/usr/local/bin\""
> -DTOOLBINDIR="\"/usr/local//bin\"" -DTOOLLIBDIR="\"/usr/local//lib\""   -W
> -Wall    -Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> -frandom-seed=options.o -I../../binutils-gdb/gold/../zlib -g -O2 -MT
> options.o -MD -MP -MF .deps/options.Tpo -c -o options.o
> ../../binutils-gdb/gold/options.cc
> ../../binutils-gdb/gold/options.cc:35:27: fatal error: ../bfd/bfdver.h: No
> such file or directory
> compilation terminated.
> make[1]: *** [options.o] Error 1
> make[1]: Leaving directory `/root/src/binutils-build/gold'
> make: *** [check-TESTS] Error 2

Yeah, gold has a dependency on bfd. But the sequence I suggested
definitely works:

mkdir binutils-build && cd binutils-build
../binutils-gdb/configure && make -j8
mkdir gold && cd gold
../../binutils-gdb/gold/configure && make check-TESTS

Artyom

-- 
Regards,
Artyom Tarasenko

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


Reply to: