crosstool-NG 1.21.0 - sh4 toolchain building failture

zillion1 zillion1@o2.pl
Thu Aug 27 15:29:00 GMT 2015


Hello,

I've got problem building toolchain using "sh4-unknown-linux-gnu" sample.

All settings are default, I didn't use "ct-ng menuconfig":

Here's the output:

cross@debian:~/crosstool-toolchains/sh4$ ct-ng show-sh4-unknown-linux-gnu
  IN    config.gen/arch.in
  IN    config.gen/kernel.in
  IN    config.gen/cc.in
  IN    config.gen/binutils.in
  IN    config.gen/libc.in
[G..]   sh4-unknown-linux-gnu
    OS             : linux-4.0.4
    Companion libs : gmp-6.0.0a mpfr-3.1.2 mpc-1.0.2
    binutils       : binutils-2.25
    C compiler     : gcc-5.1.0 (C,C++)
    C library      : glibc-2.21 (threads: nptl)
    Tools          : gdb-7.9.1



cross@debian:~/crosstool-toolchains/sh4$ ct-ng sh4-unknown-linux-gnu
  CONF  config/config.in
#
# configuration saved
#

***********************************************************

Initially reported by: YEM
URL: http://ymorin.is-a-geek.org/

Comment:
EXPERIMENTAL Super-H sh4 sample.

***********************************************************

Now configured for "sh4-unknown-linux-gnu"


cross@debian:~/crosstool-toolchains/sh4$ ct-ng build
[INFO ]  Performing some trivial sanity checks
[INFO ]  Build started 20150827.162951
[INFO ]  Building environment variables
[WARN ]  Directory '/home/cross/src' does not exist.
[WARN ]  Will not save downloaded tarballs to local storage.
[EXTRA]  Preparing working directories
[EXTRA]  Installing user-supplied crosstool-NG configuration
[EXTRA]  =================================================================
[EXTRA]  Dumping internal crosstool-NG configuration
[EXTRA]    Building a toolchain for:
[EXTRA]      build  = i686-pc-linux-gnu
[EXTRA]      host   = i686-pc-linux-gnu
[EXTRA]      target = sh4-unknown-linux-gnu
[EXTRA]  Dumping internal crosstool-NG configuration: done in 0.11s (at 00:01)
[INFO ]  =================================================================
[INFO ]  Retrieving needed toolchain components' tarballs
[EXTRA]    Retrieving 'linux-4.0.4'
[EXTRA]    Retrieving 'gmp-6.0.0a'
[EXTRA]    Retrieving 'mpfr-3.1.2'
[EXTRA]    Retrieving 'isl-0.14'
[EXTRA]    Retrieving 'mpc-1.0.2'
[EXTRA]    Retrieving 'binutils-2.25'
[EXTRA]    Retrieving 'gcc-5.1.0'
[EXTRA]    Retrieving 'glibc-2.21'
[EXTRA]    Retrieving 'gdb-7.9.1'
[INFO ]  Retrieving needed toolchain components' tarballs: done in 134.26s (at 02:16)
[INFO ]  =================================================================
[INFO ]  Extracting and patching toolchain components
[EXTRA]    Extracting 'linux-4.0.4'
[EXTRA]    Patching 'linux-4.0.4'
[EXTRA]    Extracting 'gmp-6.0.0a'
[EXTRA]    Patching 'gmp-6.0.0a'
[EXTRA]    Extracting 'mpfr-3.1.2'
[EXTRA]    Patching 'mpfr-3.1.2'
[EXTRA]    Extracting 'isl-0.14'
[EXTRA]    Patching 'isl-0.14'
[EXTRA]    Extracting 'mpc-1.0.2'
[EXTRA]    Patching 'mpc-1.0.2'
[EXTRA]    Extracting 'binutils-2.25'
[EXTRA]    Patching 'binutils-2.25'
[EXTRA]    Extracting 'gcc-5.1.0'
[EXTRA]    Patching 'gcc-5.1.0'
[EXTRA]    Extracting 'glibc-2.21'
[EXTRA]    Patching 'glibc-2.21'
[EXTRA]    Extracting 'gdb-7.9.1'
[EXTRA]    Patching 'gdb-7.9.1'
[INFO ]  Extracting and patching toolchain components: done in 86.16s (at 03:42)
[INFO ]  =================================================================
[INFO ]  Installing GMP for host
[EXTRA]    Configuring GMP
[EXTRA]    Building GMP
[EXTRA]    Installing GMP
[INFO ]  Installing GMP for host: done in 39.29s (at 04:21)
[INFO ]  =================================================================
[INFO ]  Installing MPFR for host
[EXTRA]    Configuring MPFR
[EXTRA]    Building MPFR
[EXTRA]    Installing MPFR
[INFO ]  Installing MPFR for host: done in 18.10s (at 04:39)
[INFO ]  =================================================================
[INFO ]  Installing ISL for host
[EXTRA]    Configuring ISL
[EXTRA]    Building ISL
[EXTRA]    Installing ISL
[INFO ]  Installing ISL for host: done in 30.28s (at 05:09)
[INFO ]  =================================================================
[INFO ]  Installing MPC for host
[EXTRA]    Configuring MPC
[EXTRA]    Building MPC
[EXTRA]    Installing MPC
[INFO ]  Installing MPC for host: done in 8.56s (at 05:18)
[INFO ]  =================================================================
[INFO ]  Installing binutils for host
[EXTRA]    Configuring binutils
[EXTRA]    Building binutils
[EXTRA]    Installing binutils
[INFO ]  Installing binutils for host: done in 67.67s (at 06:26)
[INFO ]  =================================================================
[INFO ]  Installing pass-1 core C compiler
[EXTRA]    Configuring gcc
[EXTRA]    Building gcc
[EXTRA]    Installing gcc
[INFO ]  Installing pass-1 core C compiler: done in 383.05s (at 12:49)
[INFO ]  =================================================================
[INFO ]  Installing kernel headers
[EXTRA]    Installing kernel headers
[EXTRA]    Checking installed headers
[INFO ]  Installing kernel headers: done in 11.65s (at 13:00)
[INFO ]  =================================================================
[INFO ]  Installing C library headers & start files
[EXTRA]    Configuring C library
[EXTRA]    Installing C library headers
[EXTRA]    Installing C library start files
[INFO ]  Installing C library headers & start files: done in 16.17s (at 13:17)
[INFO ]  =================================================================
[INFO ]  Installing pass-2 core C compiler
[EXTRA]    Configuring gcc
[EXTRA]    Building gcc
[EXTRA]    Installing gcc
[INFO ]  Installing pass-2 core C compiler: done in 398.30s (at 19:55)
[INFO ]  =================================================================
[INFO ]  Installing C library
[EXTRA]    Configuring C library
[EXTRA]    Building C library
[ERROR]    collect2: error: ld returned 1 exit status
[ERROR]    make[3]: *** [/home/cross/crosstool-toolchains/sh4/.build/sh4-unknown-linux-gnu/build/build-libc-final/elf/librtld.map] Error 1
[ERROR]    make[2]: *** [elf/subdir_lib] Error 2
[ERROR]    make[1]: *** [all] Error 2
[ERROR]   
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing C library'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from: do_libc_backend_once[scripts/build/libc/glibc.sh@454]
[ERROR]  >>        called from: do_libc_backend[scripts/build/libc/glibc.sh@151]
[ERROR]  >>        called from: do_libc[scripts/build/libc/glibc.sh@73]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@638]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>      '/home/cross/crosstool-ng/share/doc/crosstool-ng/ct-ng.1.21.0/B - Known issues.txt'
[ERROR]   
[ERROR]  (elapsed: 22:33.44)
[22:33] / make: *** [build] Błąd 2


The last lines of build.log say:

...
[ALL  ]    a - elf/unwind-dw2-fde-glibc.os
[ALL  ]    a - elf/framestate.os
[ALL  ]    a - elf/unwind-pe.os
[ALL  ]    sh4-unknown-linux-gnu-gcc       -nostdlib -nostartfiles -r -o /home/cross/crosstool-toolchains/sh4/.build/sh4-unknown-linux-gnu/build/build-libc-final/libc_pic.os 	 -Wl,-d -Wl,--whole-archive /home/cross/crosstool-toolchains/sh4/.build/sh4-unknown-linux-gnu/build/build-libc-final/libc_pic.a -o /home/cross/crosstool-toolchains/sh4/.build/sh4-unknown-linux-gnu/build/build-libc-final/libc_pic.os
[ALL  ]    sh4-unknown-linux-gnu-gcc       -nostdlib -nostartfiles -r -o /home/cross/crosstool-toolchains/sh4/.build/sh4-unknown-linux-gnu/build/build-libc-final/elf/librtld.map.o '-Wl,-(' /home/cross/crosstool-toolchains/sh4/.build/sh4-unknown-linux-gnu/build/build-libc-final/elf/dl-allobjs.os /home/cross/crosstool-toolchains/sh4/.build/sh4-unknown-linux-gnu/build/build-libc-final/libc_pic.a -lgcc '-Wl,-)' -Wl,-Map,/home/cross/crosstool-toolchains/sh4/.build/sh4-unknown-linux-gnu/build/build-libc-final/elf/librtld.mapT
[ALL  ]    /home/cross/crosstool-toolchains/sh4/.build/sh4-unknown-linux-gnu/build/build-libc-final/libc_pic.a(dl-addr.os): In function `_dl_addr_inside_object':
[ALL  ]    dl-addr.c:(.text+0x224): multiple definition of `_dl_addr_inside_object'
[ALL  ]    /home/cross/crosstool-toolchains/sh4/.build/sh4-unknown-linux-gnu/build/build-libc-final/elf/dl-allobjs.os:(.text+0x10e1c): first defined here
[ALL  ]    /home/cross/crosstool-toolchains/sh4/.build/sh4-unknown-linux-gnu/build/build-libc-final/libc_pic.a(init-first.os):(.data+0x0): multiple definition of `__libc_multiple_libcs'
[ALL  ]    /home/cross/crosstool-toolchains/sh4/.build/sh4-unknown-linux-gnu/build/build-libc-final/elf/dl-allobjs.os:(.bss+0x74): first defined here
[ALL  ]    /home/cross/crosstool-toolchains/sh4/.build/sh4-unknown-linux-gnu/build/build-libc-final/libc_pic.a(_itoa.os): In function `_itoa':
[ALL  ]    _itoa.c:(.text+0xe0): multiple definition of `_itoa'
[ALL  ]    /home/cross/crosstool-toolchains/sh4/.build/sh4-unknown-linux-gnu/build/build-libc-final/elf/dl-allobjs.os:(.text+0x130d0): first defined here
[ERROR]    collect2: error: ld returned 1 exit status
[ERROR]    make[3]: *** [/home/cross/crosstool-toolchains/sh4/.build/sh4-unknown-linux-gnu/build/build-libc-final/elf/librtld.map] Error 1
[ALL  ]    make[3]: *** Waiting for unfinished jobs....
[ALL  ]    make[3]: Leaving directory `/home/cross/crosstool-toolchains/sh4/.build/src/glibc-2.21/elf'
[ERROR]    make[2]: *** [elf/subdir_lib] Error 2
[ALL  ]    make[2]: Leaving directory `/home/cross/crosstool-toolchains/sh4/.build/src/glibc-2.21'
[ERROR]    make[1]: *** [all] Error 2
[ALL  ]    make[1]: Leaving directory `/home/cross/crosstool-toolchains/sh4/.build/sh4-unknown-linux-gnu/build/build-libc-final'
[ERROR]  
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing C library'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from: do_libc_backend_once[scripts/build/libc/glibc.sh@454]
[ERROR]  >>        called from: do_libc_backend[scripts/build/libc/glibc.sh@151]
[ERROR]  >>        called from: do_libc[scripts/build/libc/glibc.sh@73]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@638]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>      '/home/cross/crosstool-ng/share/doc/crosstool-ng/ct-ng.1.21.0/B - Known issues.txt'
[ERROR]  
[ERROR]  (elapsed: 22:33.44)


Host system - Debian 7 Wheeze, installed on VirtualBox's VM.

$ uname -a
Linux debian 3.2.0-4-686-pae #1 SMP Debian 3.2.68-1+deb7u2 i686 GNU/Linux

Before sh4, I built two different toolchains using "mipsel-unknown-linux-gnu" sample with no errors.
Could someone help me? :)
Thanks.

Sorry for my poor english, it's not my native language :/

Regards,
Mariusz


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



More information about the crossgcc mailing list