Statically link host's glib in toolchain

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

Statically link host's glib in toolchain

zvivered
Hello,

I’m currently using crosstool 1.20.0

Is it possible to build a toolchain on Centos 5.9 – 32 and run it on Centos
6.3 –64 ?

The question regards to the glib installed on Centos 5.9-32.

Is it possible to statically linked the host glib in the toolchain ?

Regards,
Z.V


--
For unsubscribe information see http://sourceware.org/lists.html#faq

Reply | Threaded
Open this post in threaded view
|

Re: Statically link host's glib in toolchain

Yann E. MORIN-2
Zvi, All,

On 2014-12-14 05:58 +0200, Zvi Vered spake thusly:
> Is it possible to build a toolchain on Centos 5.9 – 32 and run it on Centos
> 6.3 –64 ?
>
> The question regards to the glib installed on Centos 5.9-32.

glibc, not glib. glib is a completely different thing, and is not used
in a toolchain.

> Is it possible to statically linked the host glib in the toolchain ?

Yes, what you are looking for is:
    Toolchain options  --->
        [ ] Build Static Toolchain

Note that you may have to install some "development" packages on your
distribution.

Regards,
Yann E. MORIN.

--
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

--
For unsubscribe information see http://sourceware.org/lists.html#faq

Reply | Threaded
Open this post in threaded view
|

Re: Statically link host's glib in toolchain

Reinoud Koornstra
In reply to this post by zvivered
It is possible. Crosstools, will compile an own glibc, gcc etc. Just
set the target for 64 bits and the correct cpu type.
Normally you want to be on the same glibc version that your centos 6.3
or 6.4 uses.
If you're building glib on centos 5.9-32 bit for the 6.3 version 64
bit, this page helps:

https://developer.gnome.org/glib/2.26/glib-cross-compiling.html

do you want to have a statically linked gcc, gdb etc, is that what you mean?

On Sat, Dec 13, 2014 at 8:58 PM, Zvi Vered <[hidden email]> wrote:

> Hello,
>
> I’m currently using crosstool 1.20.0
>
> Is it possible to build a toolchain on Centos 5.9 – 32 and run it on Centos
> 6.3 –64 ?
>
> The question regards to the glib installed on Centos 5.9-32.
>
> Is it possible to statically linked the host glib in the toolchain ?
>
> Regards,
> Z.V
>
>
> --
> For unsubscribe information see http://sourceware.org/lists.html#faq
>

--
For unsubscribe information see http://sourceware.org/lists.html#faq

Reply | Threaded
Open this post in threaded view
|

Re: Statically link host's glib in toolchain

Lars Eckervogt-2
In reply to this post by Yann E. MORIN-2

On 12/14/2014 12:16 PM, Yann E. MORIN wrote:

> Zvi, All,
>
> On 2014-12-14 05:58 +0200, Zvi Vered spake thusly:
>> Is it possible to build a toolchain on Centos 5.9 – 32 and run it on Centos
>> 6.3 –64 ?
>>
>> The question regards to the glib installed on Centos 5.9-32.
> glibc, not glib. glib is a completely different thing, and is not used
> in a toolchain.
>
>> Is it possible to statically linked the host glib in the toolchain ?
> Yes, what you are looking for is:
>     Toolchain options  --->
>         [ ] Build Static Toolchain
>
> Note that you may have to install some "development" packages on your
> distribution.
>
> Regards,
> Yann E. MORIN.
>
>
Sorry to hijack this , but when im setting  [*] Build Static Toolchain the build always fails with following output. Any idea? You were speaking of "development" packages, which i might need?

[INFO ]  Installing binutils for host
[EXTRA]    Configuring binutils
[EXTRA]    Prepare binutils for static build
[EXTRA]    Building binutils
[ERROR]    collect2: error: ld returned 1 exit status
[ERROR]    gmake[5]: *** [size] Error 1
[ERROR]    gmake[4]: *** [all-recursive] Error 1
[ERROR]    gmake[3]: *** [all] Error 2
[ERROR]    gmake[2]: *** [all-binutils] Error 2
[ERROR]    g++: error: unrecognized command line option '-all-static'
[ERROR]    g++: error: unrecognized command line option '-all-static'
[ERROR]    gmake[5]: *** [ld-new] Error 1
[ERROR]    gmake[5]: *** [incremental-dump] Error 1
[ERROR]    gmake[4]: *** [all-recursive] Error 1
[ERROR]    gmake[3]: *** [all] Error 2
[ERROR]    gmake[2]: *** [all-gold] Error 2
[ERROR]    gmake[1]: *** [all] Error 2
[ERROR]  
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing binutils for host'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from: do_binutils_backend[scripts/build/binutils/binutils.sh@229]
[ERROR]  >>        called from: do_binutils_for_host[scripts/build/binutils/binutils.sh@94]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@638]
[ERROR]  >>
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>      '/usr/share/doc/crosstool-ng/ct-ng.1.20.0/B - Known issues.txt'
[ERROR]  
[ERROR]  (elapsed: 3:35.44)
/usr/bin/ct-ng:148: recipe for target 'build' failed
gmake: *** [build] Error 2




--
For unsubscribe information see http://sourceware.org/lists.html#faq

Reply | Threaded
Open this post in threaded view
|

Re: Statically link host's glib in toolchain

Lars Eckervogt-2
Doh. Scrolling up a little bit would helped me quiet a bit already.
Still I don't understand the error. Sorry for that long file, but thats
where the error occures to me "cannot find -lz"

[ALL  ]    libtool: link: x86_64-build_unknown-linux-gnu-gcc -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wshadow -O2 -g -pipe -static
-o size size.o bucomm.o version.o filemode.o  ../bfd/.libs/libbfd.a
../libiberty/libiberty.a -lz
[ALL  ]
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld:
cannot find -lz
[ERROR]    collect2: error: ld returned 1 exit status
[ALL  ]    Makefile:756: recipe for target 'size' failed
[ERROR]    gmake[5]: *** [size] Error 1
[ALL  ]    gmake[5]: Leaving directory
'/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu/binutils'
[ALL  ]    Makefile:931: recipe for target 'all-recursive' failed
[ERROR]    gmake[4]: *** [all-recursive] Error 1
[ALL  ]    gmake[4]: Leaving directory
'/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu/binutils'
[ALL  ]    Makefile:592: recipe for target 'all' failed
[ERROR]    gmake[3]: *** [all] Error 2
[ALL  ]    gmake[3]: Leaving directory
'/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu/binutils'
[ALL  ]    Makefile:3390: recipe for target 'all-binutils' failed
[ERROR]    gmake[2]: *** [all-binutils] Error 2
[ALL  ]    gmake[2]: *** Waiting for unfinished jobs....
[ALL  ]    x86_64-build_unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I.
-I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas
-I.
-I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas
-I../bfd
-I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/config
-I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/../include
-I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/.. -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/../bfd
-DLOCALEDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/share/locale""
 -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -O2 -g -pipe
 -MT write.o -MD -MP -MF .deps/write.Tpo -c -o write.o
/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/write.c
[ALL  ]    mv -f .deps/write.Tpo .deps/write.Po
[ALL  ]    x86_64-build_unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I.
-I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas
-I.
-I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas
-I../bfd
-I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/config
-I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/../include
-I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/.. -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/../bfd
-DLOCALEDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/share/locale""
 -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -O2 -g -pipe
 -MT tc-arm.o -MD -MP -MF .deps/tc-arm.Tpo -c -o tc-arm.o `test -f
'config/tc-arm.c' || echo
'/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/'`config/tc-arm.c
[ALL  ]    mv -f .deps/symbols.Tpo .deps/symbols.Po
[ALL  ]    x86_64-build_unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I.
-I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas
-I.
-I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas
-I../bfd
-I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/config
-I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/../include
-I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/.. -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/../bfd
-DLOCALEDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/share/locale""
 -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -O2 -g -pipe
 -MT obj-elf.o -MD -MP -MF .deps/obj-elf.Tpo -c -o obj-elf.o `test -f
'config/obj-elf.c' || echo
'/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/'`config/obj-elf.c
[ALL  ]    mv -f .deps/symtab.Tpo .deps/symtab.Po
[ALL  ]    x86_64-build_unknown-linux-gnu-g++ -DHAVE_CONFIG_H -I.
-I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold
 -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold
-I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/../include
-I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/../elfcpp
-DLOCALEDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/share/locale""
-DBINDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/bin""
-DTOOLBINDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/armv6j-ctng-linux-gnueabi/bin""
  -W -Wall    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-frandom-seed=arm.o -O2 -g -pipe  -MT arm.o -MD -MP -MF .deps/arm.Tpo -c
-o arm.o
/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/arm.cc
[ALL  ]    mv -f .deps/obj-elf.Tpo .deps/obj-elf.Po
[ALL  ]    x86_64-build_unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I.
-I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas
-I.
-I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas
-I../bfd
-I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/config
-I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/../include
-I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/.. -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/../bfd
-DLOCALEDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/share/locale""
 -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -O2 -g -pipe
 -MT atof-ieee.o -MD -MP -MF .deps/atof-ieee.Tpo -c -o atof-ieee.o `test
-f 'config/atof-ieee.c' || echo
'/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/'`config/atof-ieee.c
[ALL  ]    mv -f .deps/atof-ieee.Tpo .deps/atof-ieee.Po
[ALL  ]    x86_64-build_unknown-linux-gnu-g++ -DHAVE_CONFIG_H -I.
-I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold
 -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold
-I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/../include
-I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/../elfcpp
-DLOCALEDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/share/locale""
-DBINDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/bin""
-DTOOLBINDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/armv6j-ctng-linux-gnueabi/bin""
  -W -Wall    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-frandom-seed=arm-reloc-property.o -O2 -g -pipe  -MT
arm-reloc-property.o -MD -MP -MF .deps/arm-reloc-property.Tpo -c -o
arm-reloc-property.o
/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/arm-reloc-property.cc
[ALL  ]
/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/arm.cc:
In static member function 'static
{anonymous}::Arm_relocate_functions<big_endian>::Status
{anonymous}::Arm_relocate_functions<big_endian>::abs16(unsigned char*,
const gold::Sized_relobj_file<32, big_endian>*, const
gold::Symbol_value<32>*)':
[ALL  ]
/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/arm.cc:3299:60:
warning: typedef 'Reltype' locally defined but not used
[-Wunused-local-typedefs]
[ALL  ]         typedef typename elfcpp::Swap<32, big_endian>::Valtype
Reltype;
[ALL  ]                                                                ^
[ALL  ]
/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/arm.cc:
In member function 'void
{anonymous}::Arm_exidx_cantunwind::do_fixed_endian_write(gold::Output_file*)':
[ALL  ]
/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/arm.cc:5241:68:
warning: typedef 'Valtype' locally defined but not used
[-Wunused-local-typedefs]
[ALL  ]       typedef typename elfcpp::Swap_unaligned<32,
big_endian>::Valtype Valtype;
[ALL  ]
       ^
[ALL  ]
/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/arm.cc:
In member function 'void
{anonymous}::Target_arm<big_endian>::scan_reloc_for_stub(const
gold::Relocate_info<32, big_endian>*, unsigned int, const
gold::Sized_symbol<32>*, unsigned int, const gold::Symbol_value<32>*,
elfcpp::Elf_types<32>::Elf_Swxword, {anonymous}::Arm_address)':
[ALL  ]
/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/arm.cc:10953:53:
warning: typedef 'Relocate' locally defined but not used
[-Wunused-local-typedefs]
[ALL  ]       typedef typename Target_arm<big_endian>::Relocate Relocate;
[ALL  ]                                                         ^
[ALL  ]    mv -f .deps/i386.Tpo .deps/i386.Po
[ALL  ]    x86_64-build_unknown-linux-gnu-g++ -DHAVE_CONFIG_H -I.
-I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold
 -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold
-I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/../include
-I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/../elfcpp
-DLOCALEDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/share/locale""
-DBINDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/bin""
-DTOOLBINDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/armv6j-ctng-linux-gnueabi/bin""
  -W -Wall    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-frandom-seed=incremental-dump.o -O2 -g -pipe  -MT incremental-dump.o
-MD -MP -MF .deps/incremental-dump.Tpo -c -o incremental-dump.o
/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/incremental-dump.cc
[ALL  ]    mv -f .deps/x86_64.Tpo .deps/x86_64.Po
[ALL  ]    x86_64-build_unknown-linux-gnu-g++ -DHAVE_CONFIG_H -I.
-I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold
 -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold
-I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/../include
-I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/../elfcpp
-DLOCALEDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/share/locale""
-DBINDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/bin""
-DTOOLBINDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/armv6j-ctng-linux-gnueabi/bin""
  -W -Wall    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-frandom-seed=expression.o -O2 -g -pipe  -MT expression.o -MD -MP -MF
.deps/expression.Tpo -c -o expression.o
/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/expression.cc
[ALL  ]    mv -f .deps/output.Tpo .deps/output.Po
[ALL  ]    x86_64-build_unknown-linux-gnu-g++ -DHAVE_CONFIG_H -I.
-I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold
 -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold
-I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/../include
-I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/../elfcpp
-DLOCALEDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/share/locale""
-DBINDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/bin""
-DTOOLBINDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/armv6j-ctng-linux-gnueabi/bin""
  -W -Wall    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-frandom-seed=script-sections.o -O2 -g -pipe  -MT script-sections.o -MD
-MP -MF .deps/script-sections.Tpo -c -o script-sections.o
/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/script-sections.cc
[ALL  ]    mv -f .deps/sparc.Tpo .deps/sparc.Po
[ALL  ]    x86_64-build_unknown-linux-gnu-g++ -DHAVE_CONFIG_H -I.
-I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold
 -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold
-I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/../include
-I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/../elfcpp
-DLOCALEDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/share/locale""
-DBINDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/bin""
-DTOOLBINDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/armv6j-ctng-linux-gnueabi/bin""
  -W -Wall    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-frandom-seed=script.o -O2 -g -pipe  -MT script.o -MD -MP -MF
.deps/script.Tpo -c -o script.o
/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/script.cc
[ALL  ]    mv -f .deps/main.Tpo .deps/main.Po
[ALL  ]    mv -f .deps/incremental-dump.Tpo .deps/incremental-dump.Po
[ALL  ]    mv -f .deps/tc-arm.Tpo .deps/tc-arm.Po
[ALL  ]    /bin/bash ./libtool --tag=CC   --mode=link
x86_64-build_unknown-linux-gnu-gcc -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wshadow -O2 -g -pipe   -static -all-static -o
as-new app.o as.o atof-generic.o compress-debug.o cond.o depend.o
dwarf2dbg.o dw2gencfi.o ecoff.o ehopt.o expr.o flonum-copy.o
flonum-konst.o flonum-mult.o frags.o hash.o input-file.o input-scrub.o
listing.o literal.o macro.o messages.o output-file.o read.o remap.o sb.o
stabs.o subsegs.o symbols.o write.o tc-arm.o obj-elf.o atof-ieee.o
../opcodes/libopcodes.la ../bfd/libbfd.la ../libiberty/libiberty.a   -lz
[ALL  ]    libtool: link: x86_64-build_unknown-linux-gnu-gcc -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wshadow -O2 -g -pipe -static
-o as-new app.o as.o atof-generic.o compress-debug.o cond.o depend.o
dwarf2dbg.o dw2gencfi.o ecoff.o ehopt.o expr.o flonum-copy.o
flonum-konst.o flonum-mult.o frags.o hash.o input-file.o input-scrub.o
listing.o literal.o macro.o messages.o output-file.o read.o remap.o sb.o
stabs.o subsegs.o symbols.o write.o tc-arm.o obj-elf.o atof-ieee.o
../opcodes/.libs/libopcodes.a ../bfd/.libs/libbfd.a
../libiberty/libiberty.a -lz
[ALL  ]    mv -f .deps/expression.Tpo .deps/expression.Po
[ALL  ]
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld:
cannot find -lz
[ERROR]    collect2: error: ld returned 1 exit status
[ALL  ]    Makefile:723: recipe for target 'as-new' failed
[ERROR]    gmake[5]: *** [as-new] Error 1
[ALL  ]    gmake[5]: Leaving directory
'/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu/gas'
[ALL  ]    Makefile:2060: recipe for target 'all-recursive' failed
[ERROR]    gmake[4]: *** [all-recursive] Error 1
[ALL  ]    gmake[4]: Leaving directory
'/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu/gas'
[ALL  ]    Makefile:652: recipe for target 'all' failed
[ERROR]    gmake[3]: *** [all] Error 2
[ALL  ]    gmake[3]: Leaving directory
'/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu/gas'
[ALL  ]    Makefile:4619: recipe for target 'all-gas' failed
[ERROR]    gmake[2]: *** [all-gas] Error 2
[ALL  ]    mv -f .deps/powerpc.Tpo .deps/powerpc.Po
[ALL  ]    mv -f .deps/arm-reloc-property.Tpo .deps/arm-reloc-property.Po
[ALL  ]    mv -f .deps/script-sections.Tpo .deps/script-sections.Po
[ALL  ]    mv -f .deps/script.Tpo .deps/script.Po
[ALL  ]    rm -f libgold.a
[ALL  ]    x86_64-build_unknown-linux-gnu-ar cru libgold.a archive.o
attributes.o binary.o common.o compressed_output.o copy-relocs.o cref.o
defstd.o descriptors.o dirsearch.o dynobj.o dwarf_reader.o ehframe.o
errors.o expression.o fileread.o gc.o gold.o gold-threads.o icf.o
incremental.o int_encoding.o layout.o mapfile.o merge.o object.o
options.o output.o parameters.o plugin.o readsyms.o
reduced_debug_output.o reloc.o resolve.o script-sections.o script.o
stringpool.o symtab.o target.o target-select.o timer.o version.o
workqueue.o workqueue-threads.o  yyscript.o
[ALL  ]    x86_64-build_unknown-linux-gnu-ranlib libgold.a
[ALL  ]    mv -f .deps/arm.Tpo .deps/arm.Po
[ALL  ]    x86_64-build_unknown-linux-gnu-g++ -W -Wall
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=ld-new -O2 -g
-pipe   -static -all-static -o ld-new main.o i386.o x86_64.o sparc.o
powerpc.o arm.o arm-reloc-property.o libgold.a ../libiberty/libiberty.a
 -lpthread  -lz
[ALL  ]    x86_64-build_unknown-linux-gnu-g++ -W -Wall
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-frandom-seed=incremental-dump -O2 -g -pipe   -static -all-static -o
incremental-dump incremental-dump.o i386.o x86_64.o sparc.o powerpc.o
arm.o arm-reloc-property.o libgold.a ../libiberty/libiberty.a  -lpthread
 -lz
[ERROR]    g++: error: unrecognized command line option '-all-static'
[ERROR]    g++: error: unrecognized command line option '-all-static'
[ALL  ]    Makefile:603: recipe for target 'ld-new' failed
[ERROR]    gmake[5]: *** [ld-new] Error 1
[ALL  ]    gmake[5]: *** Waiting for unfinished jobs....
[ALL  ]    Makefile:600: recipe for target 'incremental-dump' failed
[ERROR]    gmake[5]: *** [incremental-dump] Error 1
[ALL  ]    gmake[5]: Leaving directory
'/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu/gold'
[ALL  ]    Makefile:720: recipe for target 'all-recursive' failed
[ERROR]    gmake[4]: *** [all-recursive] Error 1
[ALL  ]    gmake[4]: Leaving directory
'/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu/gold'
[ALL  ]    Makefile:524: recipe for target 'all' failed
[ERROR]    gmake[3]: *** [all] Error 2
[ALL  ]    gmake[3]: Leaving directory
'/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu/gold'
[ALL  ]    Makefile:5921: recipe for target 'all-gold' failed
[ERROR]    gmake[2]: *** [all-gold] Error 2
[ALL  ]    gmake[2]: Leaving directory
'/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu'
[ALL  ]    Makefile:839: recipe for target 'all' failed
[ERROR]    gmake[1]: *** [all] Error 2
[ALL  ]    gmake[1]: Leaving directory
'/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu'
[ERROR]
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing binutils for host'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from:
do_binutils_backend[scripts/build/binutils/binutils.sh@229]
[ERROR]  >>        called from:
do_binutils_for_host[scripts/build/binutils/binutils.sh@94]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@638]
[ERROR]  >>
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>      '/usr/share/doc/crosstool-ng/ct-ng.1.20.0/B - Known
issues.txt'
[ERROR]
[ERROR]  (elapsed: 3:01.01)



On 12/14/2014 01:32 PM, Reinoud Koornstra wrote:

> Can you show the last lines from the build.log? Without it we can't see
> what's going on.
>
> On Dec 14, 2014 5:22 AM, "Lars Eckervogt" <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>
>     On 12/14/2014 12:16 PM, Yann E. MORIN wrote:
>     > Zvi, All,
>     >
>     > On 2014-12-14 05:58 +0200, Zvi Vered spake thusly:
>     >> Is it possible to build a toolchain on Centos 5.9 – 32 and run it
>     on Centos
>     >> 6.3 –64 ?
>     >>
>     >> The question regards to the glib installed on Centos 5.9-32.
>     > glibc, not glib. glib is a completely different thing, and is not used
>     > in a toolchain.
>     >
>     >> Is it possible to statically linked the host glib in the toolchain ?
>     > Yes, what you are looking for is:
>     >     Toolchain options  --->
>     >         [ ] Build Static Toolchain
>     >
>     > Note that you may have to install some "development" packages on your
>     > distribution.
>     >
>     > Regards,
>     > Yann E. MORIN.
>     >
>     >
>     Sorry to hijack this , but when im setting  [*] Build Static
>     Toolchain the build always fails with following output. Any idea?
>     You were speaking of "development" packages, which i might need?
>
>     [INFO ]  Installing binutils for host
>     [EXTRA]    Configuring binutils
>     [EXTRA]    Prepare binutils for static build
>     [EXTRA]    Building binutils
>     [ERROR]    collect2: error: ld returned 1 exit status
>     [ERROR]    gmake[5]: *** [size] Error 1
>     [ERROR]    gmake[4]: *** [all-recursive] Error 1
>     [ERROR]    gmake[3]: *** [all] Error 2
>     [ERROR]    gmake[2]: *** [all-binutils] Error 2
>     [ERROR]    g++: error: unrecognized command line option '-all-static'
>     [ERROR]    g++: error: unrecognized command line option '-all-static'
>     [ERROR]    gmake[5]: *** [ld-new] Error 1
>     [ERROR]    gmake[5]: *** [incremental-dump] Error 1
>     [ERROR]    gmake[4]: *** [all-recursive] Error 1
>     [ERROR]    gmake[3]: *** [all] Error 2
>     [ERROR]    gmake[2]: *** [all-gold] Error 2
>     [ERROR]    gmake[1]: *** [all] Error 2
>     [ERROR]
>     [ERROR]  >>
>     [ERROR]  >>  Build failed in step 'Installing binutils for host'
>     [ERROR]  >>        called in step '(top-level)'
>     [ERROR]  >>
>     [ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
>     [ERROR]  >>        called from:
>     do_binutils_backend[scripts/build/binutils/binutils.sh@229]
>     [ERROR]  >>        called from:
>     do_binutils_for_host[scripts/build/binutils/binutils.sh@94]
>     [ERROR]  >>        called from: main[scripts/crosstool-NG.sh@638]
>     [ERROR]  >>
>     [ERROR]  >>  There is a list of known issues, some with workarounds, in:
>     [ERROR]  >>      '/usr/share/doc/crosstool-ng/ct-ng.1.20.0/B - Known
>     issues.txt'
>     [ERROR]
>     [ERROR]  (elapsed: 3:35.44)
>     /usr/bin/ct-ng:148: recipe for target 'build' failed
>     gmake: *** [build] Error 2
>
>
>
>
>     --
>     For unsubscribe information see http://sourceware.org/lists.html#faq
>

--
For unsubscribe information see http://sourceware.org/lists.html#faq

Reply | Threaded
Open this post in threaded view
|

Re: Statically link host's glib in toolchain

Reinoud Koornstra
Do you have zlib1g-dev installed? (ubuntu package)
Otherwise search for zlib and install it, make sure it's the zlib-dev
or something like that package, otherwise it doesn't work.

On Sun, Dec 14, 2014 at 8:16 AM, Lars Eckervogt
<[hidden email]> wrote:

> Doh. Scrolling up a little bit would helped me quiet a bit already.
> Still I don't understand the error. Sorry for that long file, but thats
> where the error occures to me "cannot find -lz"
>
> [ALL  ]    libtool: link: x86_64-build_unknown-linux-gnu-gcc -W -Wall
> -Wstrict-prototypes -Wmissing-prototypes -Wshadow -O2 -g -pipe -static
> -o size size.o bucomm.o version.o filemode.o  ../bfd/.libs/libbfd.a
> ../libiberty/libiberty.a -lz
> [ALL  ]
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld:
> cannot find -lz
> [ERROR]    collect2: error: ld returned 1 exit status
> [ALL  ]    Makefile:756: recipe for target 'size' failed
> [ERROR]    gmake[5]: *** [size] Error 1
> [ALL  ]    gmake[5]: Leaving directory
> '/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu/binutils'
> [ALL  ]    Makefile:931: recipe for target 'all-recursive' failed
> [ERROR]    gmake[4]: *** [all-recursive] Error 1
> [ALL  ]    gmake[4]: Leaving directory
> '/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu/binutils'
> [ALL  ]    Makefile:592: recipe for target 'all' failed
> [ERROR]    gmake[3]: *** [all] Error 2
> [ALL  ]    gmake[3]: Leaving directory
> '/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu/binutils'
> [ALL  ]    Makefile:3390: recipe for target 'all-binutils' failed
> [ERROR]    gmake[2]: *** [all-binutils] Error 2
> [ALL  ]    gmake[2]: *** Waiting for unfinished jobs....
> [ALL  ]    x86_64-build_unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I.
> -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas
> -I.
> -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas
> -I../bfd
> -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/config
> -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/../include
> -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/.. -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/../bfd
> -DLOCALEDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/share/locale""
>  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -O2 -g -pipe
>  -MT write.o -MD -MP -MF .deps/write.Tpo -c -o write.o
> /home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/write.c
> [ALL  ]    mv -f .deps/write.Tpo .deps/write.Po
> [ALL  ]    x86_64-build_unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I.
> -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas
> -I.
> -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas
> -I../bfd
> -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/config
> -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/../include
> -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/.. -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/../bfd
> -DLOCALEDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/share/locale""
>  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -O2 -g -pipe
>  -MT tc-arm.o -MD -MP -MF .deps/tc-arm.Tpo -c -o tc-arm.o `test -f
> 'config/tc-arm.c' || echo
> '/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/'`config/tc-arm.c
> [ALL  ]    mv -f .deps/symbols.Tpo .deps/symbols.Po
> [ALL  ]    x86_64-build_unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I.
> -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas
> -I.
> -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas
> -I../bfd
> -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/config
> -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/../include
> -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/.. -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/../bfd
> -DLOCALEDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/share/locale""
>  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -O2 -g -pipe
>  -MT obj-elf.o -MD -MP -MF .deps/obj-elf.Tpo -c -o obj-elf.o `test -f
> 'config/obj-elf.c' || echo
> '/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/'`config/obj-elf.c
> [ALL  ]    mv -f .deps/symtab.Tpo .deps/symtab.Po
> [ALL  ]    x86_64-build_unknown-linux-gnu-g++ -DHAVE_CONFIG_H -I.
> -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold
>  -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold
> -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/../include
> -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/../elfcpp
> -DLOCALEDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/share/locale""
> -DBINDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/bin""
> -DTOOLBINDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/armv6j-ctng-linux-gnueabi/bin""
>   -W -Wall    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> -frandom-seed=arm.o -O2 -g -pipe  -MT arm.o -MD -MP -MF .deps/arm.Tpo -c
> -o arm.o
> /home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/arm.cc
> [ALL  ]    mv -f .deps/obj-elf.Tpo .deps/obj-elf.Po
> [ALL  ]    x86_64-build_unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I.
> -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas
> -I.
> -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas
> -I../bfd
> -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/config
> -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/../include
> -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/.. -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/../bfd
> -DLOCALEDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/share/locale""
>  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -O2 -g -pipe
>  -MT atof-ieee.o -MD -MP -MF .deps/atof-ieee.Tpo -c -o atof-ieee.o `test
> -f 'config/atof-ieee.c' || echo
> '/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gas/'`config/atof-ieee.c
> [ALL  ]    mv -f .deps/atof-ieee.Tpo .deps/atof-ieee.Po
> [ALL  ]    x86_64-build_unknown-linux-gnu-g++ -DHAVE_CONFIG_H -I.
> -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold
>  -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold
> -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/../include
> -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/../elfcpp
> -DLOCALEDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/share/locale""
> -DBINDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/bin""
> -DTOOLBINDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/armv6j-ctng-linux-gnueabi/bin""
>   -W -Wall    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> -frandom-seed=arm-reloc-property.o -O2 -g -pipe  -MT
> arm-reloc-property.o -MD -MP -MF .deps/arm-reloc-property.Tpo -c -o
> arm-reloc-property.o
> /home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/arm-reloc-property.cc
> [ALL  ]
> /home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/arm.cc:
> In static member function 'static
> {anonymous}::Arm_relocate_functions<big_endian>::Status
> {anonymous}::Arm_relocate_functions<big_endian>::abs16(unsigned char*,
> const gold::Sized_relobj_file<32, big_endian>*, const
> gold::Symbol_value<32>*)':
> [ALL  ]
> /home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/arm.cc:3299:60:
> warning: typedef 'Reltype' locally defined but not used
> [-Wunused-local-typedefs]
> [ALL  ]         typedef typename elfcpp::Swap<32, big_endian>::Valtype
> Reltype;
> [ALL  ]                                                                ^
> [ALL  ]
> /home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/arm.cc:
> In member function 'void
> {anonymous}::Arm_exidx_cantunwind::do_fixed_endian_write(gold::Output_file*)':
> [ALL  ]
> /home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/arm.cc:5241:68:
> warning: typedef 'Valtype' locally defined but not used
> [-Wunused-local-typedefs]
> [ALL  ]       typedef typename elfcpp::Swap_unaligned<32,
> big_endian>::Valtype Valtype;
> [ALL  ]
>        ^
> [ALL  ]
> /home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/arm.cc:
> In member function 'void
> {anonymous}::Target_arm<big_endian>::scan_reloc_for_stub(const
> gold::Relocate_info<32, big_endian>*, unsigned int, const
> gold::Sized_symbol<32>*, unsigned int, const gold::Symbol_value<32>*,
> elfcpp::Elf_types<32>::Elf_Swxword, {anonymous}::Arm_address)':
> [ALL  ]
> /home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/arm.cc:10953:53:
> warning: typedef 'Relocate' locally defined but not used
> [-Wunused-local-typedefs]
> [ALL  ]       typedef typename Target_arm<big_endian>::Relocate Relocate;
> [ALL  ]                                                         ^
> [ALL  ]    mv -f .deps/i386.Tpo .deps/i386.Po
> [ALL  ]    x86_64-build_unknown-linux-gnu-g++ -DHAVE_CONFIG_H -I.
> -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold
>  -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold
> -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/../include
> -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/../elfcpp
> -DLOCALEDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/share/locale""
> -DBINDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/bin""
> -DTOOLBINDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/armv6j-ctng-linux-gnueabi/bin""
>   -W -Wall    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> -frandom-seed=incremental-dump.o -O2 -g -pipe  -MT incremental-dump.o
> -MD -MP -MF .deps/incremental-dump.Tpo -c -o incremental-dump.o
> /home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/incremental-dump.cc
> [ALL  ]    mv -f .deps/x86_64.Tpo .deps/x86_64.Po
> [ALL  ]    x86_64-build_unknown-linux-gnu-g++ -DHAVE_CONFIG_H -I.
> -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold
>  -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold
> -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/../include
> -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/../elfcpp
> -DLOCALEDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/share/locale""
> -DBINDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/bin""
> -DTOOLBINDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/armv6j-ctng-linux-gnueabi/bin""
>   -W -Wall    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> -frandom-seed=expression.o -O2 -g -pipe  -MT expression.o -MD -MP -MF
> .deps/expression.Tpo -c -o expression.o
> /home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/expression.cc
> [ALL  ]    mv -f .deps/output.Tpo .deps/output.Po
> [ALL  ]    x86_64-build_unknown-linux-gnu-g++ -DHAVE_CONFIG_H -I.
> -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold
>  -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold
> -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/../include
> -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/../elfcpp
> -DLOCALEDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/share/locale""
> -DBINDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/bin""
> -DTOOLBINDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/armv6j-ctng-linux-gnueabi/bin""
>   -W -Wall    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> -frandom-seed=script-sections.o -O2 -g -pipe  -MT script-sections.o -MD
> -MP -MF .deps/script-sections.Tpo -c -o script-sections.o
> /home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/script-sections.cc
> [ALL  ]    mv -f .deps/sparc.Tpo .deps/sparc.Po
> [ALL  ]    x86_64-build_unknown-linux-gnu-g++ -DHAVE_CONFIG_H -I.
> -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold
>  -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold
> -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/../include
> -I/home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/../elfcpp
> -DLOCALEDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/share/locale""
> -DBINDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/bin""
> -DTOOLBINDIR=""/home/lars/Documents/embedux/toolchains/output/armv6j-ctng-linux-gnueabi/armv6j-ctng-linux-gnueabi/bin""
>   -W -Wall    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> -frandom-seed=script.o -O2 -g -pipe  -MT script.o -MD -MP -MF
> .deps/script.Tpo -c -o script.o
> /home/lars/Documents/embedux/toolchains/.build/src/binutils-2.22/gold/script.cc
> [ALL  ]    mv -f .deps/main.Tpo .deps/main.Po
> [ALL  ]    mv -f .deps/incremental-dump.Tpo .deps/incremental-dump.Po
> [ALL  ]    mv -f .deps/tc-arm.Tpo .deps/tc-arm.Po
> [ALL  ]    /bin/bash ./libtool --tag=CC   --mode=link
> x86_64-build_unknown-linux-gnu-gcc -W -Wall -Wstrict-prototypes
> -Wmissing-prototypes -Wshadow -O2 -g -pipe   -static -all-static -o
> as-new app.o as.o atof-generic.o compress-debug.o cond.o depend.o
> dwarf2dbg.o dw2gencfi.o ecoff.o ehopt.o expr.o flonum-copy.o
> flonum-konst.o flonum-mult.o frags.o hash.o input-file.o input-scrub.o
> listing.o literal.o macro.o messages.o output-file.o read.o remap.o sb.o
> stabs.o subsegs.o symbols.o write.o tc-arm.o obj-elf.o atof-ieee.o
> ../opcodes/libopcodes.la ../bfd/libbfd.la ../libiberty/libiberty.a   -lz
> [ALL  ]    libtool: link: x86_64-build_unknown-linux-gnu-gcc -W -Wall
> -Wstrict-prototypes -Wmissing-prototypes -Wshadow -O2 -g -pipe -static
> -o as-new app.o as.o atof-generic.o compress-debug.o cond.o depend.o
> dwarf2dbg.o dw2gencfi.o ecoff.o ehopt.o expr.o flonum-copy.o
> flonum-konst.o flonum-mult.o frags.o hash.o input-file.o input-scrub.o
> listing.o literal.o macro.o messages.o output-file.o read.o remap.o sb.o
> stabs.o subsegs.o symbols.o write.o tc-arm.o obj-elf.o atof-ieee.o
> ../opcodes/.libs/libopcodes.a ../bfd/.libs/libbfd.a
> ../libiberty/libiberty.a -lz
> [ALL  ]    mv -f .deps/expression.Tpo .deps/expression.Po
> [ALL  ]
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld:
> cannot find -lz
> [ERROR]    collect2: error: ld returned 1 exit status
> [ALL  ]    Makefile:723: recipe for target 'as-new' failed
> [ERROR]    gmake[5]: *** [as-new] Error 1
> [ALL  ]    gmake[5]: Leaving directory
> '/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu/gas'
> [ALL  ]    Makefile:2060: recipe for target 'all-recursive' failed
> [ERROR]    gmake[4]: *** [all-recursive] Error 1
> [ALL  ]    gmake[4]: Leaving directory
> '/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu/gas'
> [ALL  ]    Makefile:652: recipe for target 'all' failed
> [ERROR]    gmake[3]: *** [all] Error 2
> [ALL  ]    gmake[3]: Leaving directory
> '/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu/gas'
> [ALL  ]    Makefile:4619: recipe for target 'all-gas' failed
> [ERROR]    gmake[2]: *** [all-gas] Error 2
> [ALL  ]    mv -f .deps/powerpc.Tpo .deps/powerpc.Po
> [ALL  ]    mv -f .deps/arm-reloc-property.Tpo .deps/arm-reloc-property.Po
> [ALL  ]    mv -f .deps/script-sections.Tpo .deps/script-sections.Po
> [ALL  ]    mv -f .deps/script.Tpo .deps/script.Po
> [ALL  ]    rm -f libgold.a
> [ALL  ]    x86_64-build_unknown-linux-gnu-ar cru libgold.a archive.o
> attributes.o binary.o common.o compressed_output.o copy-relocs.o cref.o
> defstd.o descriptors.o dirsearch.o dynobj.o dwarf_reader.o ehframe.o
> errors.o expression.o fileread.o gc.o gold.o gold-threads.o icf.o
> incremental.o int_encoding.o layout.o mapfile.o merge.o object.o
> options.o output.o parameters.o plugin.o readsyms.o
> reduced_debug_output.o reloc.o resolve.o script-sections.o script.o
> stringpool.o symtab.o target.o target-select.o timer.o version.o
> workqueue.o workqueue-threads.o  yyscript.o
> [ALL  ]    x86_64-build_unknown-linux-gnu-ranlib libgold.a
> [ALL  ]    mv -f .deps/arm.Tpo .deps/arm.Po
> [ALL  ]    x86_64-build_unknown-linux-gnu-g++ -W -Wall
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=ld-new -O2 -g
> -pipe   -static -all-static -o ld-new main.o i386.o x86_64.o sparc.o
> powerpc.o arm.o arm-reloc-property.o libgold.a ../libiberty/libiberty.a
>  -lpthread  -lz
> [ALL  ]    x86_64-build_unknown-linux-gnu-g++ -W -Wall
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> -frandom-seed=incremental-dump -O2 -g -pipe   -static -all-static -o
> incremental-dump incremental-dump.o i386.o x86_64.o sparc.o powerpc.o
> arm.o arm-reloc-property.o libgold.a ../libiberty/libiberty.a  -lpthread
>  -lz
> [ERROR]    g++: error: unrecognized command line option '-all-static'
> [ERROR]    g++: error: unrecognized command line option '-all-static'
> [ALL  ]    Makefile:603: recipe for target 'ld-new' failed
> [ERROR]    gmake[5]: *** [ld-new] Error 1
> [ALL  ]    gmake[5]: *** Waiting for unfinished jobs....
> [ALL  ]    Makefile:600: recipe for target 'incremental-dump' failed
> [ERROR]    gmake[5]: *** [incremental-dump] Error 1
> [ALL  ]    gmake[5]: Leaving directory
> '/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu/gold'
> [ALL  ]    Makefile:720: recipe for target 'all-recursive' failed
> [ERROR]    gmake[4]: *** [all-recursive] Error 1
> [ALL  ]    gmake[4]: Leaving directory
> '/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu/gold'
> [ALL  ]    Makefile:524: recipe for target 'all' failed
> [ERROR]    gmake[3]: *** [all] Error 2
> [ALL  ]    gmake[3]: Leaving directory
> '/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu/gold'
> [ALL  ]    Makefile:5921: recipe for target 'all-gold' failed
> [ERROR]    gmake[2]: *** [all-gold] Error 2
> [ALL  ]    gmake[2]: Leaving directory
> '/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu'
> [ALL  ]    Makefile:839: recipe for target 'all' failed
> [ERROR]    gmake[1]: *** [all] Error 2
> [ALL  ]    gmake[1]: Leaving directory
> '/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu'
> [ERROR]
> [ERROR]  >>
> [ERROR]  >>  Build failed in step 'Installing binutils for host'
> [ERROR]  >>        called in step '(top-level)'
> [ERROR]  >>
> [ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
> [ERROR]  >>        called from:
> do_binutils_backend[scripts/build/binutils/binutils.sh@229]
> [ERROR]  >>        called from:
> do_binutils_for_host[scripts/build/binutils/binutils.sh@94]
> [ERROR]  >>        called from: main[scripts/crosstool-NG.sh@638]
> [ERROR]  >>
> [ERROR]  >>  There is a list of known issues, some with workarounds, in:
> [ERROR]  >>      '/usr/share/doc/crosstool-ng/ct-ng.1.20.0/B - Known
> issues.txt'
> [ERROR]
> [ERROR]  (elapsed: 3:01.01)
>
>
>
> On 12/14/2014 01:32 PM, Reinoud Koornstra wrote:
>> Can you show the last lines from the build.log? Without it we can't see
>> what's going on.
>>
>> On Dec 14, 2014 5:22 AM, "Lars Eckervogt" <[hidden email]
>> <mailto:[hidden email]>> wrote:
>>
>>
>>     On 12/14/2014 12:16 PM, Yann E. MORIN wrote:
>>     > Zvi, All,
>>     >
>>     > On 2014-12-14 05:58 +0200, Zvi Vered spake thusly:
>>     >> Is it possible to build a toolchain on Centos 5.9 – 32 and run it
>>     on Centos
>>     >> 6.3 –64 ?
>>     >>
>>     >> The question regards to the glib installed on Centos 5.9-32.
>>     > glibc, not glib. glib is a completely different thing, and is not used
>>     > in a toolchain.
>>     >
>>     >> Is it possible to statically linked the host glib in the toolchain ?
>>     > Yes, what you are looking for is:
>>     >     Toolchain options  --->
>>     >         [ ] Build Static Toolchain
>>     >
>>     > Note that you may have to install some "development" packages on your
>>     > distribution.
>>     >
>>     > Regards,
>>     > Yann E. MORIN.
>>     >
>>     >
>>     Sorry to hijack this , but when im setting  [*] Build Static
>>     Toolchain the build always fails with following output. Any idea?
>>     You were speaking of "development" packages, which i might need?
>>
>>     [INFO ]  Installing binutils for host
>>     [EXTRA]    Configuring binutils
>>     [EXTRA]    Prepare binutils for static build
>>     [EXTRA]    Building binutils
>>     [ERROR]    collect2: error: ld returned 1 exit status
>>     [ERROR]    gmake[5]: *** [size] Error 1
>>     [ERROR]    gmake[4]: *** [all-recursive] Error 1
>>     [ERROR]    gmake[3]: *** [all] Error 2
>>     [ERROR]    gmake[2]: *** [all-binutils] Error 2
>>     [ERROR]    g++: error: unrecognized command line option '-all-static'
>>     [ERROR]    g++: error: unrecognized command line option '-all-static'
>>     [ERROR]    gmake[5]: *** [ld-new] Error 1
>>     [ERROR]    gmake[5]: *** [incremental-dump] Error 1
>>     [ERROR]    gmake[4]: *** [all-recursive] Error 1
>>     [ERROR]    gmake[3]: *** [all] Error 2
>>     [ERROR]    gmake[2]: *** [all-gold] Error 2
>>     [ERROR]    gmake[1]: *** [all] Error 2
>>     [ERROR]
>>     [ERROR]  >>
>>     [ERROR]  >>  Build failed in step 'Installing binutils for host'
>>     [ERROR]  >>        called in step '(top-level)'
>>     [ERROR]  >>
>>     [ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
>>     [ERROR]  >>        called from:
>>     do_binutils_backend[scripts/build/binutils/binutils.sh@229]
>>     [ERROR]  >>        called from:
>>     do_binutils_for_host[scripts/build/binutils/binutils.sh@94]
>>     [ERROR]  >>        called from: main[scripts/crosstool-NG.sh@638]
>>     [ERROR]  >>
>>     [ERROR]  >>  There is a list of known issues, some with workarounds, in:
>>     [ERROR]  >>      '/usr/share/doc/crosstool-ng/ct-ng.1.20.0/B - Known
>>     issues.txt'
>>     [ERROR]
>>     [ERROR]  (elapsed: 3:35.44)
>>     /usr/bin/ct-ng:148: recipe for target 'build' failed
>>     gmake: *** [build] Error 2
>>
>>
>>
>>
>>     --
>>     For unsubscribe information see http://sourceware.org/lists.html#faq
>>

--
For unsubscribe information see http://sourceware.org/lists.html#faq

Reply | Threaded
Open this post in threaded view
|

Re: Statically link host's glib in toolchain

Lars Eckervogt-2
Reinoud Koornstra <reinoudkoornstra <at> gmail.com> writes:

>
> Do you have zlib1g-dev installed? (ubuntu package)
> Otherwise search for zlib and install it, make sure it's the zlib-dev
> or something like that package, otherwise it doesn't work.
>

I'm on gentoo, having sys-libs/zlib installed. So i should have all needed
headers, right?


--
For unsubscribe information see http://sourceware.org/lists.html#faq

Reply | Threaded
Open this post in threaded view
|

Re: Statically link host's glib in toolchain

Lars Eckervogt-2
On 12/14/2014 06:32 PM, Lars Eckervogt wrote:

> Reinoud Koornstra <reinoudkoornstra <at> gmail.com> writes:
>
>> Do you have zlib1g-dev installed? (ubuntu package)
>> Otherwise search for zlib and install it, make sure it's the zlib-dev
>> or something like that package, otherwise it doesn't work.
>>
> I'm on gentoo, having sys-libs/zlib installed. So i should have all needed
> headers, right?
>
>
> --
> For unsubscribe information see http://sourceware.org/lists.html#faq
>

As I emerged  sys-libs/zlib with the the use-flag 'static-libs' the
build process seemed to go further, but still not really much further:-)

[ALL  ]    x86_64-build_unknown-linux-gnu-g++ -W -Wall  
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=ld-new -O2 -g -pipe
  -static -all-static -o ld-new main.o i386.o x86_64.o sparc.o powerpc.o
arm.o arm-reloc-property.o libgold.a ../libiberty/libiberty.a
-lpthread  -lz
[ALL  ]    x86_64-build_unknown-linux-gnu-g++ -W -Wall  
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=incremental-dump
-O2 -g -pipe   -static -all-static -o incremental-dump incremental-dump.o
i386.o x86_64.o sparc.o powerpc.o arm.o arm-reloc-property.o libgold.a
../libiberty/libiberty.a  -lpthread  -lz
[ERROR]    g++: error: unrecognized command line option '-all-static'
[ALL  ]    Makefile:603: recipe for target 'ld-new' failed
[ERROR]    gmake[5]: *** [ld-new] Error 1
[ALL  ]    gmake[5]: *** Waiting for unfinished jobs....
[ERROR]    g++: error: unrecognized command line option '-all-static'
[ALL  ]    Makefile:600: recipe for target 'incremental-dump' failed
[ERROR]    gmake[5]: *** [incremental-dump] Error 1
[ALL  ]    gmake[5]: Leaving directory
'/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu/gold'
[ALL  ]    Makefile:720: recipe for target 'all-recursive' failed
[ERROR]    gmake[4]: *** [all-recursive] Error 1
[ALL  ]    gmake[4]: Leaving directory
'/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu/gold'
[ALL  ]    Makefile:524: recipe for target 'all' failed
[ERROR]    gmake[3]: *** [all] Error 2
[ALL  ]    gmake[3]: Leaving directory
'/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu/gold'
[ALL  ]    Makefile:5921: recipe for target 'all-gold' failed
[ERROR]    gmake[2]: *** [all-gold] Error 2
[ALL  ]    gmake[2]: Leaving directory
'/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu'
[ALL  ]    Makefile:839: recipe for target 'all' failed
[ERROR]    gmake[1]: *** [all] Error 2
[ALL  ]    gmake[1]: Leaving directory
'/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu'
[ERROR]
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing binutils for host'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from:
do_binutils_backend[scripts/build/binutils/binutils.sh@229]
[ERROR]  >>        called from:
do_binutils_for_host[scripts/build/binutils/binutils.sh@94]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@638]
[ERROR]  >>
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>      '/usr/share/doc/crosstool-ng/ct-ng.1.20.0/B - Known
issues.txt'
[ERROR]
[ERROR]  (elapsed: 4:12.42)
                             

--
For unsubscribe information see http://sourceware.org/lists.html#faq

Reply | Threaded
Open this post in threaded view
|

Re: Statically link host's glib in toolchain

Reinoud Koornstra
-static should be enough for gcc.
Let me try this myself and see if I run into the same problem.

On Sun, Dec 14, 2014 at 12:07 PM, Lars Eckervogt
<[hidden email]> wrote:

> On 12/14/2014 06:32 PM, Lars Eckervogt wrote:
>> Reinoud Koornstra <reinoudkoornstra <at> gmail.com> writes:
>>
>>> Do you have zlib1g-dev installed? (ubuntu package)
>>> Otherwise search for zlib and install it, make sure it's the zlib-dev
>>> or something like that package, otherwise it doesn't work.
>>>
>> I'm on gentoo, having sys-libs/zlib installed. So i should have all needed
>> headers, right?
>>
>>
>> --
>> For unsubscribe information see http://sourceware.org/lists.html#faq
>>
>
> As I emerged  sys-libs/zlib with the the use-flag 'static-libs' the
> build process seemed to go further, but still not really much further:-)
>
> [ALL  ]    x86_64-build_unknown-linux-gnu-g++ -W -Wall
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=ld-new -O2 -g -pipe
>   -static -all-static -o ld-new main.o i386.o x86_64.o sparc.o powerpc.o
> arm.o arm-reloc-property.o libgold.a ../libiberty/libiberty.a
> -lpthread  -lz
> [ALL  ]    x86_64-build_unknown-linux-gnu-g++ -W -Wall
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=incremental-dump
> -O2 -g -pipe   -static -all-static -o incremental-dump incremental-dump.o
> i386.o x86_64.o sparc.o powerpc.o arm.o arm-reloc-property.o libgold.a
> ../libiberty/libiberty.a  -lpthread  -lz
> [ERROR]    g++: error: unrecognized command line option '-all-static'
> [ALL  ]    Makefile:603: recipe for target 'ld-new' failed
> [ERROR]    gmake[5]: *** [ld-new] Error 1
> [ALL  ]    gmake[5]: *** Waiting for unfinished jobs....
> [ERROR]    g++: error: unrecognized command line option '-all-static'
> [ALL  ]    Makefile:600: recipe for target 'incremental-dump' failed
> [ERROR]    gmake[5]: *** [incremental-dump] Error 1
> [ALL  ]    gmake[5]: Leaving directory
> '/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu/gold'
> [ALL  ]    Makefile:720: recipe for target 'all-recursive' failed
> [ERROR]    gmake[4]: *** [all-recursive] Error 1
> [ALL  ]    gmake[4]: Leaving directory
> '/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu/gold'
> [ALL  ]    Makefile:524: recipe for target 'all' failed
> [ERROR]    gmake[3]: *** [all] Error 2
> [ALL  ]    gmake[3]: Leaving directory
> '/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu/gold'
> [ALL  ]    Makefile:5921: recipe for target 'all-gold' failed
> [ERROR]    gmake[2]: *** [all-gold] Error 2
> [ALL  ]    gmake[2]: Leaving directory
> '/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu'
> [ALL  ]    Makefile:839: recipe for target 'all' failed
> [ERROR]    gmake[1]: *** [all] Error 2
> [ALL  ]    gmake[1]: Leaving directory
> '/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu'
> [ERROR]
> [ERROR]  >>
> [ERROR]  >>  Build failed in step 'Installing binutils for host'
> [ERROR]  >>        called in step '(top-level)'
> [ERROR]  >>
> [ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
> [ERROR]  >>        called from:
> do_binutils_backend[scripts/build/binutils/binutils.sh@229]
> [ERROR]  >>        called from:
> do_binutils_for_host[scripts/build/binutils/binutils.sh@94]
> [ERROR]  >>        called from: main[scripts/crosstool-NG.sh@638]
> [ERROR]  >>
> [ERROR]  >>  There is a list of known issues, some with workarounds, in:
> [ERROR]  >>      '/usr/share/doc/crosstool-ng/ct-ng.1.20.0/B - Known
> issues.txt'
> [ERROR]
> [ERROR]  (elapsed: 4:12.42)
>
>
> --
> For unsubscribe information see http://sourceware.org/lists.html#faq
>

--
For unsubscribe information see http://sourceware.org/lists.html#faq

Reply | Threaded
Open this post in threaded view
|

Re: Statically link host's glib in toolchain

Reinoud Koornstra
Ok it did build fine for me.
-all-static is a valid option:

http://www.gnu.org/software/libtool/manual/html_node/Link-mode.html

What version of gcc did you specify to build?
What gcc version is present on your gentoo?
What package was it trying to build?


On Sun, Dec 14, 2014 at 3:30 PM, Reinoud Koornstra
<[hidden email]> wrote:

> -static should be enough for gcc.
> Let me try this myself and see if I run into the same problem.
>
> On Sun, Dec 14, 2014 at 12:07 PM, Lars Eckervogt
> <[hidden email]> wrote:
>> On 12/14/2014 06:32 PM, Lars Eckervogt wrote:
>>> Reinoud Koornstra <reinoudkoornstra <at> gmail.com> writes:
>>>
>>>> Do you have zlib1g-dev installed? (ubuntu package)
>>>> Otherwise search for zlib and install it, make sure it's the zlib-dev
>>>> or something like that package, otherwise it doesn't work.
>>>>
>>> I'm on gentoo, having sys-libs/zlib installed. So i should have all needed
>>> headers, right?
>>>
>>>
>>> --
>>> For unsubscribe information see http://sourceware.org/lists.html#faq
>>>
>>
>> As I emerged  sys-libs/zlib with the the use-flag 'static-libs' the
>> build process seemed to go further, but still not really much further:-)
>>
>> [ALL  ]    x86_64-build_unknown-linux-gnu-g++ -W -Wall
>> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=ld-new -O2 -g -pipe
>>   -static -all-static -o ld-new main.o i386.o x86_64.o sparc.o powerpc.o
>> arm.o arm-reloc-property.o libgold.a ../libiberty/libiberty.a
>> -lpthread  -lz
>> [ALL  ]    x86_64-build_unknown-linux-gnu-g++ -W -Wall
>> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=incremental-dump
>> -O2 -g -pipe   -static -all-static -o incremental-dump incremental-dump.o
>> i386.o x86_64.o sparc.o powerpc.o arm.o arm-reloc-property.o libgold.a
>> ../libiberty/libiberty.a  -lpthread  -lz
>> [ERROR]    g++: error: unrecognized command line option '-all-static'
>> [ALL  ]    Makefile:603: recipe for target 'ld-new' failed
>> [ERROR]    gmake[5]: *** [ld-new] Error 1
>> [ALL  ]    gmake[5]: *** Waiting for unfinished jobs....
>> [ERROR]    g++: error: unrecognized command line option '-all-static'
>> [ALL  ]    Makefile:600: recipe for target 'incremental-dump' failed
>> [ERROR]    gmake[5]: *** [incremental-dump] Error 1
>> [ALL  ]    gmake[5]: Leaving directory
>> '/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu/gold'
>> [ALL  ]    Makefile:720: recipe for target 'all-recursive' failed
>> [ERROR]    gmake[4]: *** [all-recursive] Error 1
>> [ALL  ]    gmake[4]: Leaving directory
>> '/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu/gold'
>> [ALL  ]    Makefile:524: recipe for target 'all' failed
>> [ERROR]    gmake[3]: *** [all] Error 2
>> [ALL  ]    gmake[3]: Leaving directory
>> '/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu/gold'
>> [ALL  ]    Makefile:5921: recipe for target 'all-gold' failed
>> [ERROR]    gmake[2]: *** [all-gold] Error 2
>> [ALL  ]    gmake[2]: Leaving directory
>> '/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu'
>> [ALL  ]    Makefile:839: recipe for target 'all' failed
>> [ERROR]    gmake[1]: *** [all] Error 2
>> [ALL  ]    gmake[1]: Leaving directory
>> '/home/lars/Documents/embedux/toolchains/.build/armv6j-ctng-linux-gnueabi/build/build-binutils-host-x86_64-build_unknown-linux-gnu'
>> [ERROR]
>> [ERROR]  >>
>> [ERROR]  >>  Build failed in step 'Installing binutils for host'
>> [ERROR]  >>        called in step '(top-level)'
>> [ERROR]  >>
>> [ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
>> [ERROR]  >>        called from:
>> do_binutils_backend[scripts/build/binutils/binutils.sh@229]
>> [ERROR]  >>        called from:
>> do_binutils_for_host[scripts/build/binutils/binutils.sh@94]
>> [ERROR]  >>        called from: main[scripts/crosstool-NG.sh@638]
>> [ERROR]  >>
>> [ERROR]  >>  There is a list of known issues, some with workarounds, in:
>> [ERROR]  >>      '/usr/share/doc/crosstool-ng/ct-ng.1.20.0/B - Known
>> issues.txt'
>> [ERROR]
>> [ERROR]  (elapsed: 4:12.42)
>>
>>
>> --
>> For unsubscribe information see http://sourceware.org/lists.html#faq
>>

--
For unsubscribe information see http://sourceware.org/lists.html#faq

Reply | Threaded
Open this post in threaded view
|

Re: Statically link host's glib in toolchain

Lars Eckervogt-2
Thank you so much for your efforts

> What version of gcc did you specify to build?
CT_CC_VERSION="4.9.1"

> What gcc version is present on your gentoo?
$ gcc  --version
gcc (Gentoo 4.8.3 p1.1, pie-0.5.9) 4.8.3


> What package was it trying to build?
The error occurs while building binutils




--
For unsubscribe information see http://sourceware.org/lists.html#faq

Reply | Threaded
Open this post in threaded view
|

Re: Statically link host's glib in toolchain

Lars Eckervogt-2
In reply to this post by Reinoud Koornstra
On 12/14/2014 11:48 PM, Reinoud Koornstra wrote:
> Ok it did build fine for me.
> -all-static is a valid option:
>
> http://www.gnu.org/software/libtool/manual/html_node/Link-mode.html
>
> What version of gcc did you specify to build?
> What gcc version is present on your gentoo?
> What package was it trying to build?
>

I basically tried a sample config. But as im still digging for the
cause, would you mind giving me your systems informations?

What version of gcc did you specify to build?
What gcc version is present on your system?

--
For unsubscribe information see http://sourceware.org/lists.html#faq