public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* How build gold linker?
@ 2016-03-29 18:11 Fiodar
  2016-03-29 19:01 ` Cary Coutant
  0 siblings, 1 reply; 5+ messages in thread
From: Fiodar @ 2016-03-29 18:11 UTC (permalink / raw)
  To: binutils

Why can't build gold linker? Compiler - Mingw 4.8.1. Taken from my shell script:

TARGET=arm-none-symbianelf
# Installation folder
GCCC=gcc-5.3.0-2
PREFIX=/usr/local/$GCCC
PATH=$PATH:$PREFIX/bin
unset CFLAGS
export CFLAGS+="-pipe"
# ------------------
BINUTILS=binutils-2.26

mkdir build-binutils2
cd build-binutils2
make clean
../$BINUTILS/configure --target=$TARGET --prefix=$PREFIX --disable-option-checking \
--enable-ld --enable-gold --enable-lto --enable-vtable-verify \
--enable-werror=no --without-headers --disable-nls --disable-shared \
--disable-libquadmath --enable-plugins --enable-multilib

make
make install-strip
cd ..


Stryzhniou Fiodar
Стрижнёв Федор

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How build gold linker?
  2016-03-29 18:11 How build gold linker? Fiodar
@ 2016-03-29 19:01 ` Cary Coutant
  2016-03-30 19:19   ` Re[2]: " Fiodar
  0 siblings, 1 reply; 5+ messages in thread
From: Cary Coutant @ 2016-03-29 19:01 UTC (permalink / raw)
  To: Fiodar; +Cc: binutils

Did you forget to attach an error log? I can't even take a wild guess
with what's here.

(This won't fix anything, but you may want to add --enable-threads
when configuring gold.)

-cary


On Tue, Mar 29, 2016 at 11:11 AM, Fiodar <fedor_qd@mail.ru> wrote:
> Why can't build gold linker? Compiler - Mingw 4.8.1. Taken from my shell script:
>
> TARGET=arm-none-symbianelf
> # Installation folder
> GCCC=gcc-5.3.0-2
> PREFIX=/usr/local/$GCCC
> PATH=$PATH:$PREFIX/bin
> unset CFLAGS
> export CFLAGS+="-pipe"
> # ------------------
> BINUTILS=binutils-2.26
>
> mkdir build-binutils2
> cd build-binutils2
> make clean
> ../$BINUTILS/configure --target=$TARGET --prefix=$PREFIX --disable-option-checking \
> --enable-ld --enable-gold --enable-lto --enable-vtable-verify \
> --enable-werror=no --without-headers --disable-nls --disable-shared \
> --disable-libquadmath --enable-plugins --enable-multilib
>
> make
> make install-strip
> cd ..
>
>
> Stryzhniou Fiodar
> Стрижнёв Федор

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re[2]: How build gold linker?
  2016-03-29 19:01 ` Cary Coutant
@ 2016-03-30 19:19   ` Fiodar
  0 siblings, 0 replies; 5+ messages in thread
From: Fiodar @ 2016-03-30 19:19 UTC (permalink / raw)
  To: Cary Coutant; +Cc: binutils

Sorry for pastebin - mailer daemon treats mail with attach as spam.

Build log - http://pastebin.com/3VgUMjiY
Buld script - http://pastebin.com/4Wyi5KzQ
How created log: build-binutils.sh 1> binutils-log-full.txt 2>&1
No errors, some varnings.


> Аўторак, 29 сакавіка 2016, 22:01 +03:00 ад Cary Coutant <ccoutant@gmail.com>:
> 
> Did you forget to attach an error log? I can't even take a wild guess
> 
> with what's here.
> 
> 
> 
> (This won't fix anything, but you may want to add --enable-threads
> 
> when configuring gold.)
> 
> 
> 
> -cary
> 
> 
> 
> 
> 
> On Tue, Mar 29, 2016 at 11:11 AM, Fiodar <fedor_qd@mail.ru> wrote:
> 
> > Why can't build gold linker? Compiler - Mingw 4.8.1. Taken from my shell script:
> 
> >
> 
> > TARGET=arm-none-symbianelf
> 
> > # Installation folder
> 
> > GCCC=gcc-5.3.0-2
> 
> > PREFIX=/usr/local/$GCCC
> 
> > PATH=$PATH:$PREFIX/bin
> 
> > unset CFLAGS
> 
> > export CFLAGS+="-pipe"
> 
> > # ------------------
> 
> > BINUTILS=binutils-2.26
> 
> >
> 
> > mkdir build-binutils2
> 
> > cd build-binutils2
> 
> > make clean
> 
> > ../$BINUTILS/configure --target=$TARGET --prefix=$PREFIX --disable-option-checking \
> 
> > --enable-ld --enable-gold --enable-lto --enable-vtable-verify \
> 
> > --enable-werror=no --without-headers --disable-nls --disable-shared \
> 
> > --disable-libquadmath --enable-plugins --enable-multilib
> 
> >
> 
> > make
> 
> > make install-strip
> 
> > cd ..
> 
> >
> 
> >
> 
> > Stryzhniou Fiodar
> 
> > Стрижнёв Федор
> 
> 

Stryzhniou Fiodar
Стрижнёв Федор

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Re[2]: How build gold linker?
  2016-03-31  4:24 fedor_qd
@ 2016-03-31 13:18 ` Than McIntosh
  0 siblings, 0 replies; 5+ messages in thread
From: Than McIntosh @ 2016-03-31 13:18 UTC (permalink / raw)
  To: Федор
	Стрижнев
  Cc: Binutils

Hi Фёдор
It looks as though the code in binutils/configure around 2957 is
looking at your target "*-symbianelf" and deciding that it is not an
ELF target:

case "${ENABLE_GOLD}" in
  yes|default)
    # Check for ELF target.
    is_elf=no
    case "${target}" in
      *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
      | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
      | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
      | *-*-solaris2* | *-*-nto* | *-*-nacl*)

Try hacking your binutils/configure to add "*-symbianelf" to the list
above and see if that works for you.
Than


On Thu, Mar 31, 2016 at 12:24 AM,  <fedor_qd@mail.ru> wrote:
> This doesn't work for me. Can you build self? I try to build 2.26.
> Always yours, Fiodar Stryzniou
>
> исходное сбщ
> Тема: Re: Re[2]: How build gold linker?
> От: Than McIntosh <thanm@google.com>
> Дата: 30.03.2016 23.29
>
> Suggest trying
>
>    make
>    make all-gold
>
> ?
>
> Than
>
> On Wed, Mar 30, 2016 at 3:19 PM, Fiodar <fedor_qd@mail.ru> wrote:
>> Sorry for pastebin - mailer daemon treats mail with attach as spam.
>>
>> Build log - http://pastebin.com/3VgUMjiY
>> Buld script - http://pastebin.com/4Wyi5KzQ
>> How created log: build-binutils.sh 1> binutils-log-full.txt 2>&1
>> No errors, some varnings.
>>
>>
>>> Аўторак, 29 сакавіка 2016, 22:01 +03:00 ад Cary Coutant <ccoutant@gmail.com>:
>>>
>>> Did you forget to attach an error log? I can't even take a wild guess
>>>
>>> with what's here.
>>>
>>>
>>>
>>> (This won't fix anything, but you may want to add --enable-threads
>>>
>>> when configuring gold.)
>>>
>>>
>>>
>>> -cary
>>>
>>>
>>>
>>>
>>>
>>> On Tue, Mar 29, 2016 at 11:11 AM, Fiodar <fedor_qd@mail.ru> wrote:
>>>
>>> > Why can't build gold linker? Compiler - Mingw 4.8.1. Taken from my shell script:
>>>
>>> >
>>>
>>> > TARGET=arm-none-symbianelf
>>>
>>> > # Installation folder
>>>
>>> > GCCC=gcc-5.3.0-2
>>>
>>> > PREFIX=/usr/local/$GCCC
>>>
>>> > PATH=$PATH:$PREFIX/bin
>>>
>>> > unset CFLAGS
>>>
>>> > export CFLAGS+="-pipe"
>>>
>>> > # ------------------
>>>
>>> > BINUTILS=binutils-2.26
>>>
>>> >
>>>
>>> > mkdir build-binutils2
>>>
>>> > cd build-binutils2
>>>
>>> > make clean
>>>
>>> > ../$BINUTILS/configure --target=$TARGET --prefix=$PREFIX --disable-option-checking \
>>>
>>> > --enable-ld --enable-gold --enable-lto --enable-vtable-verify \
>>>
>>> > --enable-werror=no --without-headers --disable-nls --disable-shared \
>>>
>>> > --disable-libquadmath --enable-plugins --enable-multilib
>>>
>>> >
>>>
>>> > make
>>>
>>> > make install-strip
>>>
>>> > cd ..
>>>
>>> >
>>>
>>> >
>>>
>>> > Stryzhniou Fiodar
>>>
>>> > Стрижнёв Федор
>>>
>>>
>>
>> Stryzhniou Fiodar
>> Стрижнёв Федор
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Re[2]: How build gold linker?
@ 2016-03-31  4:24 fedor_qd
  2016-03-31 13:18 ` Than McIntosh
  0 siblings, 1 reply; 5+ messages in thread
From: fedor_qd @ 2016-03-31  4:24 UTC (permalink / raw)
  To: Than McIntosh; +Cc: binutils

This doesn't work for me. Can you build self? I try to build 2.26.
Always yours, Fiodar Stryzniou

исходное сбщ
Тема: Re: Re[2]: How build gold linker?
От: Than McIntosh <thanm@google.com>
Дата: 30.03.2016 23.29

Suggest trying

   make
   make all-gold

?

Than

On Wed, Mar 30, 2016 at 3:19 PM, Fiodar <fedor_qd@mail.ru> wrote:
> Sorry for pastebin - mailer daemon treats mail with attach as spam.
>
> Build log - http://pastebin.com/3VgUMjiY
> Buld script - http://pastebin.com/4Wyi5KzQ
> How created log: build-binutils.sh 1> binutils-log-full.txt 2>&1
> No errors, some varnings.
>
>
>> Аўторак, 29 сакавіка 2016, 22:01 +03:00 ад Cary Coutant <ccoutant@gmail.com>:
>>
>> Did you forget to attach an error log? I can't even take a wild guess
>>
>> with what's here.
>>
>>
>>
>> (This won't fix anything, but you may want to add --enable-threads
>>
>> when configuring gold.)
>>
>>
>>
>> -cary
>>
>>
>>
>>
>>
>> On Tue, Mar 29, 2016 at 11:11 AM, Fiodar <fedor_qd@mail.ru> wrote:
>>
>> > Why can't build gold linker? Compiler - Mingw 4.8.1. Taken from my shell script:
>>
>> >
>>
>> > TARGET=arm-none-symbianelf
>>
>> > # Installation folder
>>
>> > GCCC=gcc-5.3.0-2
>>
>> > PREFIX=/usr/local/$GCCC
>>
>> > PATH=$PATH:$PREFIX/bin
>>
>> > unset CFLAGS
>>
>> > export CFLAGS+="-pipe"
>>
>> > # ------------------
>>
>> > BINUTILS=binutils-2.26
>>
>> >
>>
>> > mkdir build-binutils2
>>
>> > cd build-binutils2
>>
>> > make clean
>>
>> > ../$BINUTILS/configure --target=$TARGET --prefix=$PREFIX --disable-option-checking \
>>
>> > --enable-ld --enable-gold --enable-lto --enable-vtable-verify \
>>
>> > --enable-werror=no --without-headers --disable-nls --disable-shared \
>>
>> > --disable-libquadmath --enable-plugins --enable-multilib
>>
>> >
>>
>> > make
>>
>> > make install-strip
>>
>> > cd ..
>>
>> >
>>
>> >
>>
>> > Stryzhniou Fiodar
>>
>> > Стрижнёв Федор
>>
>>
>
> Stryzhniou Fiodar
> Стрижнёв Федор

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-03-31 13:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-29 18:11 How build gold linker? Fiodar
2016-03-29 19:01 ` Cary Coutant
2016-03-30 19:19   ` Re[2]: " Fiodar
2016-03-31  4:24 fedor_qd
2016-03-31 13:18 ` Than McIntosh

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