public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* problem with sample file arm-unknown-linux-uclibcgnueabi (x86_64, ct-ng1.18.0)
@ 2013-07-24  7:29 lolo tremolo
  2013-07-24  8:59 ` thorsten.johannvorderbrueggen
  2013-07-24  9:20 ` Zhenqiang Chen
  0 siblings, 2 replies; 5+ messages in thread
From: lolo tremolo @ 2013-07-24  7:29 UTC (permalink / raw)
  To: crossgcc

Hi,
I installed  crosstool-ng 1.18.0-1 on a x86_64 system,
i'm trying to use a sample file arm-unknown-linux-uclibcgnueabi,
but it doesnt work out of the box.
It's my first use of ctng so it's quite possible that i did some thinks wrong.
Below my three attempts
Thanks for watching.

ERROR 1:
========

$ ct-ng arm-unknown-linux-uclibcgnueabi
$ ct-ng build
[INFO ]  Performing some trivial sanity checks
[INFO ]  Build started 20130724.075831
[INFO ]  Building environment variables
[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  = x86_64-unknown-linux-gnu
[EXTRA]      host   = x86_64-unknown-linux-gnu
[EXTRA]      target = arm-unknown-linux-uclibcgnueabi
[EXTRA]  Dumping internal crosstool-NG configuration: done in 0.09s (at 00:02)
[INFO ]  =================================================================
[INFO ]  Retrieving needed toolchain components' tarballs
[INFO ]  Retrieving needed toolchain components' tarballs: done in
0.31s (at 00:03)
[INFO ]  =================================================================
[INFO ]  Extracting and patching toolchain components
[EXTRA]    Extracting 'linux-2.6.33.20'
[00:03] - xz: /home/lolo/code/wm8650/build-ctng_arch/.build/tarballs/linux-2.6.33.20.tar.xz:
Compressed data is corrupt
[ERROR]
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Extracting and patching toolchain components'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from: CT_Extract[scripts/functions@924]
[ERROR]  >>        called from:
do_kernel_extract[scripts/build/kernel/linux.sh@75]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@599]
[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]  >>      '/usr/share/doc/crosstool-ng/ct-ng.1.18.0/B - Known issues.txt'
[ERROR]
[ERROR]  (elapsed: 0:03.00)
[00:03] / make: *** [build] Erreur 2

ERROR 2:
========

so  i  changed Linux kernel version to 3.1.10

$ ct-ng build
[INFO ]  Performing some trivial sanity checks
[INFO ]  Build started 20130724.080205
[INFO ]  Building environment variables
[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  = x86_64-unknown-linux-gnu
[EXTRA]      host   = x86_64-unknown-linux-gnu
[EXTRA]      target = arm-unknown-linux-uclibcgnueabi
[EXTRA]  Dumping internal crosstool-NG configuration: done in 0.07s (at 00:03)
[INFO ]  =================================================================
[INFO ]  Retrieving needed toolchain components' tarballs
[INFO ]  Retrieving needed toolchain components' tarballs: done in
0.11s (at 00:03)
[INFO ]  =================================================================
[INFO ]  Extracting and patching toolchain components
[EXTRA]    Extracting 'linux-3.1.10'
[EXTRA]    Patching 'linux-3.1.10'
[EXTRA]    Extracting 'gmp-4.3.2'
[EXTRA]    Patching 'gmp-4.3.2'
[EXTRA]    Extracting 'mpfr-2.4.2'
[EXTRA]    Patching 'mpfr-2.4.2'
[ERROR]    configure.in:294: error: automatic de-ANSI-fication support
has been removed
[ERROR]    aclocal: error: echo failed with exit status: 1
[ERROR]
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Extracting and patching toolchain components'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from:
do_mpfr_extract[scripts/build/companion_libs/110-mpfr.sh@37]
[ERROR]  >>        called from:
do_companion_libs_extract[scripts/build/companion_libs.sh@22]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@600]
[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]  >>      '/usr/share/doc/crosstool-ng/ct-ng.1.18.0/B - Known issues.txt'
[ERROR]
[ERROR]  (elapsed: 0:13.26)
[00:14] / make: *** [build] Erreur 1

ERROR 3:
========

so i adding option : Build  Companion tools ---> companion tools ---> automake

$ ct-ng build
[INFO ]  Performing some trivial sanity checks
[INFO ]  Build started 20130724.081626
[INFO ]  Building environment variables
[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  = x86_64-unknown-linux-gnu
[EXTRA]      host   = x86_64-unknown-linux-gnu
[EXTRA]      target = arm-unknown-linux-uclibcgnueabi
[EXTRA]  Dumping internal crosstool-NG configuration: done in 0.07s (at 00:02)
[INFO ]  =================================================================
[INFO ]  Retrieving needed toolchain components' tarballs
[INFO ]  Retrieving needed toolchain components' tarballs: done in
0.12s (at 00:03)
[INFO ]  =================================================================
[INFO ]  Extracting, patching and installing companion tools
[EXTRA]    Extracting 'automake-1.11.1'
[EXTRA]    Patching 'automake-1.11.1'
[EXTRA]    =================================================================
[EXTRA]    Installing autoconf
[EXTRA]    Installing autoconf: done in 3.72s (at 00:07)
[EXTRA]    =================================================================
[EXTRA]    Installing automake
[EXTRA]    Installing automake: done in 2.48s (at 00:09)
[INFO ]  Extracting, patching and installing companion tools: done in
6.53s (at 00:09)
[INFO ]  =================================================================
[INFO ]  Extracting and patching toolchain components
[EXTRA]    Extracting 'ppl-0.10.2'
[EXTRA]    Patching 'ppl-0.10.2'
[EXTRA]    Extracting 'cloog-ppl-0.15.9'
[EXTRA]    Patching 'cloog-ppl-0.15.9'
[EXTRA]    Extracting 'libelf-0.8.13'
[EXTRA]    Patching 'libelf-0.8.13'
[EXTRA]    Extracting 'binutils-2.19.1a'
[EXTRA]    Patching 'binutils-2.19.1a'
[EXTRA]    Extracting 'gcc-4.4.3'
[EXTRA]    Patching 'gcc-4.4.3'
[EXTRA]    Extracting 'uClibc-0.9.30.2'
[EXTRA]    Patching 'uClibc-0.9.30.2'
[EXTRA]    Extracting 'dmalloc-5.5.2'
[EXTRA]    Patching 'dmalloc-5.5.2'
[EXTRA]    Extracting 'duma_2_5_15'
[EXTRA]    Patching 'duma-2_5_15'
[EXTRA]    Extracting 'gdb-7.1a'
[EXTRA]    Patching 'gdb-7.1a'
[EXTRA]    Extracting 'ncurses-5.9'
[EXTRA]    Patching 'ncurses-5.9'
[EXTRA]    Extracting 'expat-2.1.0'
[EXTRA]    Patching 'expat-2.1.0'
[EXTRA]    Extracting 'ltrace-0.5.3'
[EXTRA]    Patching 'ltrace-0.5.3'
[EXTRA]    Extracting 'strace-4.5.19'
[EXTRA]    Patching 'strace-4.5.19'
[INFO ]  Extracting and patching toolchain components: done in 32.03s (at 00:41)
[INFO ]  =================================================================
[INFO ]  Checking C library configuration
[EXTRA]    Munging uClibc configuration
[INFO ]  Checking C library configuration: done in 0.05s (at 00:41)
[INFO ]  =================================================================
[INFO ]  Installing GMP for host
[EXTRA]    Configuring GMP
[EXTRA]    Building GMP
[EXTRA]    Installing GMP
[INFO ]  Installing GMP for host: done in 46.79s (at 01:28)
[INFO ]  =================================================================
[INFO ]  Installing MPFR for host
[EXTRA]    Configuring MPFR
[EXTRA]    Building MPFR
[EXTRA]    Installing MPFR
[INFO ]  Installing MPFR for host: done in 13.72s (at 01:42)
[INFO ]  =================================================================
[INFO ]  Installing PPL for host
[EXTRA]    Configuring PPL
[EXTRA]    Building PPL
[EXTRA]    Installing PPL
[INFO ]  Installing PPL for host: done in 111.56s (at 03:33)
[INFO ]  =================================================================
[INFO ]  Installing CLooG/PPL for host
[EXTRA]    Configuring CLooG/ppl
[EXTRA]    Building CLooG/ppl
[EXTRA]    Installing CLooG/ppl
[INFO ]  Installing CLooG/PPL for host: done in 15.32s (at 03:49)
[INFO ]  =================================================================
[INFO ]  Installing binutils for host
[EXTRA]    Configuring binutils
[EXTRA]    Building binutils
[EXTRA]    Installing binutils
[INFO ]  Installing binutils for host: done in 52.26s (at 04:41)
[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 114.72s (at 06:36)
[INFO ]  =================================================================
[INFO ]  Installing kernel headers
[EXTRA]    Installing kernel headers
[EXTRA]    Checking installed headers
[INFO ]  Installing kernel headers: done in 6.17s (at 06:42)
[INFO ]  =================================================================
[INFO ]  Installing C library headers
[EXTRA]    Copying sources to build dir
[EXTRA]    Applying configuration
[EXTRA]    Building headers
[ERROR]    gcc: error: unrecognized command line option '-mlittle-endian'
[ERROR]    gcc: error: unrecognized command line option '-mlittle-endian'
[ERROR]    gcc: error: unrecognized command line option '-mlittle-endian'
[ERROR]    gcc: error: unrecognized command line option '-mlittle-endian'
[EXTRA]    Installing headers
[ERROR]    gcc: error: unrecognized command line option '-mlittle-endian'
[ERROR]    gcc: error: unrecognized command line option '-mlittle-endian'
[INFO ]  Installing C library headers: done in 4.85s (at 06:47)
[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 133.77s (at 09:01)
[INFO ]  =================================================================
[INFO ]  Installing C library
[EXTRA]    Copying sources to build dir
[EXTRA]    Applying configuration
[EXTRA]    Building C library
[EXTRA]    Installing C library
[ERROR]    make[1]: *** [install_runtime] 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[scripts/build/libc/uClibc.sh@224]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@632]
[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]  >>      '/usr/share/doc/crosstool-ng/ct-ng.1.18.0/B - Known issues.txt'
[ERROR]
[ERROR]  (elapsed: 9:12.89)
[09:13] / make: *** [build] Erreur 2

as you can see : [ERROR]    gcc: error: unrecognized command line
option '-mlittle-endian'
i don't know what to try now. i hope you'll see what i missed easily.

thanks

Laurent

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

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

* Re: problem with sample file arm-unknown-linux-uclibcgnueabi (x86_64, ct-ng1.18.0)
  2013-07-24  7:29 problem with sample file arm-unknown-linux-uclibcgnueabi (x86_64, ct-ng1.18.0) lolo tremolo
@ 2013-07-24  8:59 ` thorsten.johannvorderbrueggen
  2013-07-24  9:20 ` Zhenqiang Chen
  1 sibling, 0 replies; 5+ messages in thread
From: thorsten.johannvorderbrueggen @ 2013-07-24  8:59 UTC (permalink / raw)
  To: crossgcc; +Cc: lolo tremolo

On Wed, 24 Jul 2013 09:29:11 +0200
lolo tremolo <lolotremolo@gmail.com> wrote:

> Hi,
> I installed  crosstool-ng 1.18.0-1 on a x86_64 system,
> i'm trying to use a sample file arm-unknown-linux-uclibcgnueabi,
> but it doesnt work out of the box.
> It's my first use of ctng so it's quite possible that i did some thinks wrong.
> Below my three attempts
> Thanks for watching.
> 
> ERROR 1:
> ========
> 
> $ ct-ng arm-unknown-linux-uclibcgnueabi
> $ ct-ng build
> [INFO ]  Performing some trivial sanity checks
> [INFO ]  Build started 20130724.075831
> [INFO ]  Building environment variables
> [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  = x86_64-unknown-linux-gnu
> [EXTRA]      host   = x86_64-unknown-linux-gnu
> [EXTRA]      target = arm-unknown-linux-uclibcgnueabi
> [EXTRA]  Dumping internal crosstool-NG configuration: done in 0.09s (at 00:02)
> [INFO ]  =================================================================
> [INFO ]  Retrieving needed toolchain components' tarballs
> [INFO ]  Retrieving needed toolchain components' tarballs: done in
> 0.31s (at 00:03)
> [INFO ]  =================================================================
> [INFO ]  Extracting and patching toolchain components
> [EXTRA]    Extracting 'linux-2.6.33.20'
> [00:03] - xz: /home/lolo/code/wm8650/build-ctng_arch/.build/tarballs/linux-2.6.33.20.tar.xz:
> Compressed data is corrupt
> [ERROR]
> [ERROR]  >>
> [ERROR]  >>  Build failed in step 'Extracting and patching toolchain components'
> [ERROR]  >>        called in step '(top-level)'
> [ERROR]  >>
> [ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
> [ERROR]  >>        called from: CT_Extract[scripts/functions@924]
> [ERROR]  >>        called from:
> do_kernel_extract[scripts/build/kernel/linux.sh@75]
> [ERROR]  >>        called from: main[scripts/crosstool-NG.sh@599]
> [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]  >>      '/usr/share/doc/crosstool-ng/ct-ng.1.18.0/B - Known issues.txt'
> [ERROR]
> [ERROR]  (elapsed: 0:03.00)
> [00:03] / make: *** [build] Erreur 2
> 
> ERROR 2:
> ========
> 
> so  i  changed Linux kernel version to 3.1.10
> 
> $ ct-ng build
> [INFO ]  Performing some trivial sanity checks
> [INFO ]  Build started 20130724.080205
> [INFO ]  Building environment variables
> [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  = x86_64-unknown-linux-gnu
> [EXTRA]      host   = x86_64-unknown-linux-gnu
> [EXTRA]      target = arm-unknown-linux-uclibcgnueabi
> [EXTRA]  Dumping internal crosstool-NG configuration: done in 0.07s (at 00:03)
> [INFO ]  =================================================================
> [INFO ]  Retrieving needed toolchain components' tarballs
> [INFO ]  Retrieving needed toolchain components' tarballs: done in
> 0.11s (at 00:03)
> [INFO ]  =================================================================
> [INFO ]  Extracting and patching toolchain components
> [EXTRA]    Extracting 'linux-3.1.10'
> [EXTRA]    Patching 'linux-3.1.10'
> [EXTRA]    Extracting 'gmp-4.3.2'
> [EXTRA]    Patching 'gmp-4.3.2'
> [EXTRA]    Extracting 'mpfr-2.4.2'
> [EXTRA]    Patching 'mpfr-2.4.2'
> [ERROR]    configure.in:294: error: automatic de-ANSI-fication support
> has been removed
> [ERROR]    aclocal: error: echo failed with exit status: 1
> [ERROR]
> [ERROR]  >>
> [ERROR]  >>  Build failed in step 'Extracting and patching toolchain components'
> [ERROR]  >>        called in step '(top-level)'
> [ERROR]  >>
> [ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
> [ERROR]  >>        called from:
> do_mpfr_extract[scripts/build/companion_libs/110-mpfr.sh@37]
> [ERROR]  >>        called from:
> do_companion_libs_extract[scripts/build/companion_libs.sh@22]
> [ERROR]  >>        called from: main[scripts/crosstool-NG.sh@600]
> [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]  >>      '/usr/share/doc/crosstool-ng/ct-ng.1.18.0/B - Known issues.txt'
> [ERROR]
> [ERROR]  (elapsed: 0:13.26)
> [00:14] / make: *** [build] Erreur 1
> 
> ERROR 3:
> ========
> 
> so i adding option : Build  Companion tools ---> companion tools ---> automake
> 
> $ ct-ng build
> [INFO ]  Performing some trivial sanity checks
> [INFO ]  Build started 20130724.081626
> [INFO ]  Building environment variables
> [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  = x86_64-unknown-linux-gnu
> [EXTRA]      host   = x86_64-unknown-linux-gnu
> [EXTRA]      target = arm-unknown-linux-uclibcgnueabi
> [EXTRA]  Dumping internal crosstool-NG configuration: done in 0.07s (at 00:02)
> [INFO ]  =================================================================
> [INFO ]  Retrieving needed toolchain components' tarballs
> [INFO ]  Retrieving needed toolchain components' tarballs: done in
> 0.12s (at 00:03)
> [INFO ]  =================================================================
> [INFO ]  Extracting, patching and installing companion tools
> [EXTRA]    Extracting 'automake-1.11.1'
> [EXTRA]    Patching 'automake-1.11.1'
> [EXTRA]    =================================================================
> [EXTRA]    Installing autoconf
> [EXTRA]    Installing autoconf: done in 3.72s (at 00:07)
> [EXTRA]    =================================================================
> [EXTRA]    Installing automake
> [EXTRA]    Installing automake: done in 2.48s (at 00:09)
> [INFO ]  Extracting, patching and installing companion tools: done in
> 6.53s (at 00:09)
> [INFO ]  =================================================================
> [INFO ]  Extracting and patching toolchain components
> [EXTRA]    Extracting 'ppl-0.10.2'
> [EXTRA]    Patching 'ppl-0.10.2'
> [EXTRA]    Extracting 'cloog-ppl-0.15.9'
> [EXTRA]    Patching 'cloog-ppl-0.15.9'
> [EXTRA]    Extracting 'libelf-0.8.13'
> [EXTRA]    Patching 'libelf-0.8.13'
> [EXTRA]    Extracting 'binutils-2.19.1a'
> [EXTRA]    Patching 'binutils-2.19.1a'
> [EXTRA]    Extracting 'gcc-4.4.3'
> [EXTRA]    Patching 'gcc-4.4.3'
> [EXTRA]    Extracting 'uClibc-0.9.30.2'
> [EXTRA]    Patching 'uClibc-0.9.30.2'
> [EXTRA]    Extracting 'dmalloc-5.5.2'
> [EXTRA]    Patching 'dmalloc-5.5.2'
> [EXTRA]    Extracting 'duma_2_5_15'
> [EXTRA]    Patching 'duma-2_5_15'
> [EXTRA]    Extracting 'gdb-7.1a'
> [EXTRA]    Patching 'gdb-7.1a'
> [EXTRA]    Extracting 'ncurses-5.9'
> [EXTRA]    Patching 'ncurses-5.9'
> [EXTRA]    Extracting 'expat-2.1.0'
> [EXTRA]    Patching 'expat-2.1.0'
> [EXTRA]    Extracting 'ltrace-0.5.3'
> [EXTRA]    Patching 'ltrace-0.5.3'
> [EXTRA]    Extracting 'strace-4.5.19'
> [EXTRA]    Patching 'strace-4.5.19'
> [INFO ]  Extracting and patching toolchain components: done in 32.03s (at 00:41)
> [INFO ]  =================================================================
> [INFO ]  Checking C library configuration
> [EXTRA]    Munging uClibc configuration
> [INFO ]  Checking C library configuration: done in 0.05s (at 00:41)
> [INFO ]  =================================================================
> [INFO ]  Installing GMP for host
> [EXTRA]    Configuring GMP
> [EXTRA]    Building GMP
> [EXTRA]    Installing GMP
> [INFO ]  Installing GMP for host: done in 46.79s (at 01:28)
> [INFO ]  =================================================================
> [INFO ]  Installing MPFR for host
> [EXTRA]    Configuring MPFR
> [EXTRA]    Building MPFR
> [EXTRA]    Installing MPFR
> [INFO ]  Installing MPFR for host: done in 13.72s (at 01:42)
> [INFO ]  =================================================================
> [INFO ]  Installing PPL for host
> [EXTRA]    Configuring PPL
> [EXTRA]    Building PPL
> [EXTRA]    Installing PPL
> [INFO ]  Installing PPL for host: done in 111.56s (at 03:33)
> [INFO ]  =================================================================
> [INFO ]  Installing CLooG/PPL for host
> [EXTRA]    Configuring CLooG/ppl
> [EXTRA]    Building CLooG/ppl
> [EXTRA]    Installing CLooG/ppl
> [INFO ]  Installing CLooG/PPL for host: done in 15.32s (at 03:49)
> [INFO ]  =================================================================
> [INFO ]  Installing binutils for host
> [EXTRA]    Configuring binutils
> [EXTRA]    Building binutils
> [EXTRA]    Installing binutils
> [INFO ]  Installing binutils for host: done in 52.26s (at 04:41)
> [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 114.72s (at 06:36)
> [INFO ]  =================================================================
> [INFO ]  Installing kernel headers
> [EXTRA]    Installing kernel headers
> [EXTRA]    Checking installed headers
> [INFO ]  Installing kernel headers: done in 6.17s (at 06:42)
> [INFO ]  =================================================================
> [INFO ]  Installing C library headers
> [EXTRA]    Copying sources to build dir
> [EXTRA]    Applying configuration
> [EXTRA]    Building headers
> [ERROR]    gcc: error: unrecognized command line option '-mlittle-endian'
> [ERROR]    gcc: error: unrecognized command line option '-mlittle-endian'
> [ERROR]    gcc: error: unrecognized command line option '-mlittle-endian'
> [ERROR]    gcc: error: unrecognized command line option '-mlittle-endian'
> [EXTRA]    Installing headers
> [ERROR]    gcc: error: unrecognized command line option '-mlittle-endian'
> [ERROR]    gcc: error: unrecognized command line option '-mlittle-endian'
> [INFO ]  Installing C library headers: done in 4.85s (at 06:47)
> [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 133.77s (at 09:01)
> [INFO ]  =================================================================
> [INFO ]  Installing C library
> [EXTRA]    Copying sources to build dir
> [EXTRA]    Applying configuration
> [EXTRA]    Building C library
> [EXTRA]    Installing C library
> [ERROR]    make[1]: *** [install_runtime] 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[scripts/build/libc/uClibc.sh@224]
> [ERROR]  >>        called from: main[scripts/crosstool-NG.sh@632]
> [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]  >>      '/usr/share/doc/crosstool-ng/ct-ng.1.18.0/B - Known issues.txt'
> [ERROR]
> [ERROR]  (elapsed: 9:12.89)
> [09:13] / make: *** [build] Erreur 2
> 
> as you can see : [ERROR]    gcc: error: unrecognized command line
> option '-mlittle-endian'
> i don't know what to try now. i hope you'll see what i missed easily.
> 
> thanks
> 
> Laurent
> 
> --
> For unsubscribe information see http://sourceware.org/lists.html#faq
> 

Hello Laurent,

what distri do you use? ... I had similiar problems with slack-current ... the gcc(4.8.x)/glibc(2.17) versions were to new ... So my solution was to install a slack-stable with qemu+lvm ... that works fine for me ... 

I also tried a debian-wheezy installation ... that also works fine ... i still have problems to build a ppc toolchain ... maybe that could also be a solution for you ... 

Cheers
  Thorsten

-- 
thorsten.johannvorderbrueggen@t-online.de <thorsten.johannvorderbrueggen@t-online.de>

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

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

* Re: problem with sample file arm-unknown-linux-uclibcgnueabi (x86_64, ct-ng1.18.0)
  2013-07-24  7:29 problem with sample file arm-unknown-linux-uclibcgnueabi (x86_64, ct-ng1.18.0) lolo tremolo
  2013-07-24  8:59 ` thorsten.johannvorderbrueggen
@ 2013-07-24  9:20 ` Zhenqiang Chen
  1 sibling, 0 replies; 5+ messages in thread
From: Zhenqiang Chen @ 2013-07-24  9:20 UTC (permalink / raw)
  To: lolo tremolo; +Cc: crossgcc

On 24 July 2013 15:29, lolo tremolo <lolotremolo@gmail.com> wrote:
> Hi,
> I installed  crosstool-ng 1.18.0-1 on a x86_64 system,
> i'm trying to use a sample file arm-unknown-linux-uclibcgnueabi,
> but it doesnt work out of the box.
> It's my first use of ctng so it's quite possible that i did some thinks wrong.
> Below my three attempts
> Thanks for watching.
>
> ERROR 1:
> ========
>
> $ ct-ng arm-unknown-linux-uclibcgnueabi
> $ ct-ng build
> [INFO ]  Performing some trivial sanity checks
> [INFO ]  Build started 20130724.075831
> [INFO ]  Building environment variables
> [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  = x86_64-unknown-linux-gnu
> [EXTRA]      host   = x86_64-unknown-linux-gnu
> [EXTRA]      target = arm-unknown-linux-uclibcgnueabi
> [EXTRA]  Dumping internal crosstool-NG configuration: done in 0.09s (at 00:02)
> [INFO ]  =================================================================
> [INFO ]  Retrieving needed toolchain components' tarballs
> [INFO ]  Retrieving needed toolchain components' tarballs: done in
> 0.31s (at 00:03)
> [INFO ]  =================================================================
> [INFO ]  Extracting and patching toolchain components
> [EXTRA]    Extracting 'linux-2.6.33.20'
> [00:03] - xz: /home/lolo/code/wm8650/build-ctng_arch/.build/tarballs/linux-2.6.33.20.tar.xz:
> Compressed data is corrupt
> [ERROR]
> [ERROR]  >>
> [ERROR]  >>  Build failed in step 'Extracting and patching toolchain components'
> [ERROR]  >>        called in step '(top-level)'
> [ERROR]  >>
> [ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
> [ERROR]  >>        called from: CT_Extract[scripts/functions@924]
> [ERROR]  >>        called from:
> do_kernel_extract[scripts/build/kernel/linux.sh@75]
> [ERROR]  >>        called from: main[scripts/crosstool-NG.sh@599]
> [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]  >>      '/usr/share/doc/crosstool-ng/ct-ng.1.18.0/B - Known issues.txt'
> [ERROR]
> [ERROR]  (elapsed: 0:03.00)
> [00:03] / make: *** [build] Erreur 2
>
> ERROR 2:
> ========
>
> so  i  changed Linux kernel version to 3.1.10
>
> $ ct-ng build
> [INFO ]  Performing some trivial sanity checks
> [INFO ]  Build started 20130724.080205
> [INFO ]  Building environment variables
> [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  = x86_64-unknown-linux-gnu
> [EXTRA]      host   = x86_64-unknown-linux-gnu
> [EXTRA]      target = arm-unknown-linux-uclibcgnueabi
> [EXTRA]  Dumping internal crosstool-NG configuration: done in 0.07s (at 00:03)
> [INFO ]  =================================================================
> [INFO ]  Retrieving needed toolchain components' tarballs
> [INFO ]  Retrieving needed toolchain components' tarballs: done in
> 0.11s (at 00:03)
> [INFO ]  =================================================================
> [INFO ]  Extracting and patching toolchain components
> [EXTRA]    Extracting 'linux-3.1.10'
> [EXTRA]    Patching 'linux-3.1.10'
> [EXTRA]    Extracting 'gmp-4.3.2'
> [EXTRA]    Patching 'gmp-4.3.2'
> [EXTRA]    Extracting 'mpfr-2.4.2'
> [EXTRA]    Patching 'mpfr-2.4.2'
> [ERROR]    configure.in:294: error: automatic de-ANSI-fication support
> has been removed
> [ERROR]    aclocal: error: echo failed with exit status: 1
> [ERROR]
> [ERROR]  >>
> [ERROR]  >>  Build failed in step 'Extracting and patching toolchain components'
> [ERROR]  >>        called in step '(top-level)'
> [ERROR]  >>
> [ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
> [ERROR]  >>        called from:
> do_mpfr_extract[scripts/build/companion_libs/110-mpfr.sh@37]
> [ERROR]  >>        called from:
> do_companion_libs_extract[scripts/build/companion_libs.sh@22]
> [ERROR]  >>        called from: main[scripts/crosstool-NG.sh@600]
> [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]  >>      '/usr/share/doc/crosstool-ng/ct-ng.1.18.0/B - Known issues.txt'
> [ERROR]
> [ERROR]  (elapsed: 0:13.26)
> [00:14] / make: *** [build] Erreur 1
>
> ERROR 3:
> ========
>
> so i adding option : Build  Companion tools ---> companion tools ---> automake
>
> $ ct-ng build
> [INFO ]  Performing some trivial sanity checks
> [INFO ]  Build started 20130724.081626
> [INFO ]  Building environment variables
> [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  = x86_64-unknown-linux-gnu
> [EXTRA]      host   = x86_64-unknown-linux-gnu
> [EXTRA]      target = arm-unknown-linux-uclibcgnueabi
> [EXTRA]  Dumping internal crosstool-NG configuration: done in 0.07s (at 00:02)
> [INFO ]  =================================================================
> [INFO ]  Retrieving needed toolchain components' tarballs
> [INFO ]  Retrieving needed toolchain components' tarballs: done in
> 0.12s (at 00:03)
> [INFO ]  =================================================================
> [INFO ]  Extracting, patching and installing companion tools
> [EXTRA]    Extracting 'automake-1.11.1'
> [EXTRA]    Patching 'automake-1.11.1'
> [EXTRA]    =================================================================
> [EXTRA]    Installing autoconf
> [EXTRA]    Installing autoconf: done in 3.72s (at 00:07)
> [EXTRA]    =================================================================
> [EXTRA]    Installing automake
> [EXTRA]    Installing automake: done in 2.48s (at 00:09)
> [INFO ]  Extracting, patching and installing companion tools: done in
> 6.53s (at 00:09)
> [INFO ]  =================================================================
> [INFO ]  Extracting and patching toolchain components
> [EXTRA]    Extracting 'ppl-0.10.2'
> [EXTRA]    Patching 'ppl-0.10.2'
> [EXTRA]    Extracting 'cloog-ppl-0.15.9'
> [EXTRA]    Patching 'cloog-ppl-0.15.9'
> [EXTRA]    Extracting 'libelf-0.8.13'
> [EXTRA]    Patching 'libelf-0.8.13'
> [EXTRA]    Extracting 'binutils-2.19.1a'
> [EXTRA]    Patching 'binutils-2.19.1a'
> [EXTRA]    Extracting 'gcc-4.4.3'
> [EXTRA]    Patching 'gcc-4.4.3'
> [EXTRA]    Extracting 'uClibc-0.9.30.2'
> [EXTRA]    Patching 'uClibc-0.9.30.2'
> [EXTRA]    Extracting 'dmalloc-5.5.2'
> [EXTRA]    Patching 'dmalloc-5.5.2'
> [EXTRA]    Extracting 'duma_2_5_15'
> [EXTRA]    Patching 'duma-2_5_15'
> [EXTRA]    Extracting 'gdb-7.1a'
> [EXTRA]    Patching 'gdb-7.1a'
> [EXTRA]    Extracting 'ncurses-5.9'
> [EXTRA]    Patching 'ncurses-5.9'
> [EXTRA]    Extracting 'expat-2.1.0'
> [EXTRA]    Patching 'expat-2.1.0'
> [EXTRA]    Extracting 'ltrace-0.5.3'
> [EXTRA]    Patching 'ltrace-0.5.3'
> [EXTRA]    Extracting 'strace-4.5.19'
> [EXTRA]    Patching 'strace-4.5.19'
> [INFO ]  Extracting and patching toolchain components: done in 32.03s (at 00:41)
> [INFO ]  =================================================================
> [INFO ]  Checking C library configuration
> [EXTRA]    Munging uClibc configuration
> [INFO ]  Checking C library configuration: done in 0.05s (at 00:41)
> [INFO ]  =================================================================
> [INFO ]  Installing GMP for host
> [EXTRA]    Configuring GMP
> [EXTRA]    Building GMP
> [EXTRA]    Installing GMP
> [INFO ]  Installing GMP for host: done in 46.79s (at 01:28)
> [INFO ]  =================================================================
> [INFO ]  Installing MPFR for host
> [EXTRA]    Configuring MPFR
> [EXTRA]    Building MPFR
> [EXTRA]    Installing MPFR
> [INFO ]  Installing MPFR for host: done in 13.72s (at 01:42)
> [INFO ]  =================================================================
> [INFO ]  Installing PPL for host
> [EXTRA]    Configuring PPL
> [EXTRA]    Building PPL
> [EXTRA]    Installing PPL
> [INFO ]  Installing PPL for host: done in 111.56s (at 03:33)
> [INFO ]  =================================================================
> [INFO ]  Installing CLooG/PPL for host
> [EXTRA]    Configuring CLooG/ppl
> [EXTRA]    Building CLooG/ppl
> [EXTRA]    Installing CLooG/ppl
> [INFO ]  Installing CLooG/PPL for host: done in 15.32s (at 03:49)
> [INFO ]  =================================================================
> [INFO ]  Installing binutils for host
> [EXTRA]    Configuring binutils
> [EXTRA]    Building binutils
> [EXTRA]    Installing binutils
> [INFO ]  Installing binutils for host: done in 52.26s (at 04:41)
> [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 114.72s (at 06:36)
> [INFO ]  =================================================================
> [INFO ]  Installing kernel headers
> [EXTRA]    Installing kernel headers
> [EXTRA]    Checking installed headers
> [INFO ]  Installing kernel headers: done in 6.17s (at 06:42)
> [INFO ]  =================================================================
> [INFO ]  Installing C library headers
> [EXTRA]    Copying sources to build dir
> [EXTRA]    Applying configuration
> [EXTRA]    Building headers
> [ERROR]    gcc: error: unrecognized command line option '-mlittle-endian'
> [ERROR]    gcc: error: unrecognized command line option '-mlittle-endian'
> [ERROR]    gcc: error: unrecognized command line option '-mlittle-endian'
> [ERROR]    gcc: error: unrecognized command line option '-mlittle-endian'
> [EXTRA]    Installing headers
> [ERROR]    gcc: error: unrecognized command line option '-mlittle-endian'
> [ERROR]    gcc: error: unrecognized command line option '-mlittle-endian'
> [INFO ]  Installing C library headers: done in 4.85s (at 06:47)
> [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 133.77s (at 09:01)
> [INFO ]  =================================================================
> [INFO ]  Installing C library
> [EXTRA]    Copying sources to build dir
> [EXTRA]    Applying configuration
> [EXTRA]    Building C library
> [EXTRA]    Installing C library
> [ERROR]    make[1]: *** [install_runtime] 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[scripts/build/libc/uClibc.sh@224]
> [ERROR]  >>        called from: main[scripts/crosstool-NG.sh@632]
> [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]  >>      '/usr/share/doc/crosstool-ng/ct-ng.1.18.0/B - Known issues.txt'
> [ERROR]
> [ERROR]  (elapsed: 9:12.89)
> [09:13] / make: *** [build] Erreur 2
>
> as you can see : [ERROR]    gcc: error: unrecognized command line
> option '-mlittle-endian'
> i don't know what to try now. i hope you'll see what i missed easily.

It seams the "PATH" set in ct-ng does not work. It uses host gcc (for
x86) with ARM options.

Please check your "sh", which should be "bash".

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

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

* Re: problem with sample file arm-unknown-linux-uclibcgnueabi (x86_64, ct-ng1.18.0)
  2013-07-24 14:11 Ed Beroset
@ 2013-07-25 13:04 ` lolo tremolo
  0 siblings, 0 replies; 5+ messages in thread
From: lolo tremolo @ 2013-07-25 13:04 UTC (permalink / raw)
  To: Ed Beroset; +Cc: crossgcc

Thanks for all your answers.
yes i use archlinux with the lastest glibc gcc...
after many try i'm going to do like thorsten.johannvorderbrueggen with
a virtual machin.
i plan to use lubuntu.

@Ed Beroset : ct-ng only offers me linaro-4.7-2013.01
on the other side (for info) the armv6-rpi-linux-gnueabi sample file work well.

thank you

Laurent

2013/7/24 Ed Beroset <beroset@mindspring.com>:
> lolo tremolo wrote:
>
>>Hi,
>>I installed  crosstool-ng 1.18.0-1 on a x86_64 system,
>>i'm trying to use a sample file arm-unknown-linux-uclibcgnueabi,
>>but it doesnt work out of the box.
>>It's my first use of ctng so it's quite possible that i did some thinks wrong.
>
> It's just as likely that your machine and distribution are simply newer than the "recipes" and so there are some incompatibilities.  I ran into some of these same problems recently.  Here's what I found:
>
>>[EXTRA]    Extracting 'mpfr-2.4.2'
>>[EXTRA]    Patching 'mpfr-2.4.2'
>>[ERROR]    configure.in:294: error: automatic de-ANSI-fication support
>>has been removed
>>[ERROR]    aclocal: error: echo failed with exit status: 1
>>[ERROR]
>>[ERROR]  >>
>
> This problem occurs because you are using a newer version of automake (probably 1.12) and this is an older version of MPFR which uses obsolete Makefile syntax.  I found that using a newer version of MPFR (4.3.2) worked around this problem.  In my case, I was using the bare ARM (no Linux) build and chose to use Linaro-4.8 with MPFR 4.3.2 and binutils 2.22.  There may be other combinations that work (I worked on another one recently, but don't have that machine handy) but that may be enough to get you started.
>
> Ed

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

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

* Re: problem with sample file arm-unknown-linux-uclibcgnueabi (x86_64, ct-ng1.18.0)
@ 2013-07-24 14:11 Ed Beroset
  2013-07-25 13:04 ` lolo tremolo
  0 siblings, 1 reply; 5+ messages in thread
From: Ed Beroset @ 2013-07-24 14:11 UTC (permalink / raw)
  To: lolo tremolo, crossgcc

lolo tremolo wrote:

>Hi,
>I installed  crosstool-ng 1.18.0-1 on a x86_64 system,
>i'm trying to use a sample file arm-unknown-linux-uclibcgnueabi,
>but it doesnt work out of the box.
>It's my first use of ctng so it's quite possible that i did some thinks wrong.

It's just as likely that your machine and distribution are simply newer than the "recipes" and so there are some incompatibilities.  I ran into some of these same problems recently.  Here's what I found:  

>[EXTRA]    Extracting 'mpfr-2.4.2'
>[EXTRA]    Patching 'mpfr-2.4.2'
>[ERROR]    configure.in:294: error: automatic de-ANSI-fication support
>has been removed
>[ERROR]    aclocal: error: echo failed with exit status: 1
>[ERROR]
>[ERROR]  >>

This problem occurs because you are using a newer version of automake (probably 1.12) and this is an older version of MPFR which uses obsolete Makefile syntax.  I found that using a newer version of MPFR (4.3.2) worked around this problem.  In my case, I was using the bare ARM (no Linux) build and chose to use Linaro-4.8 with MPFR 4.3.2 and binutils 2.22.  There may be other combinations that work (I worked on another one recently, but don't have that machine handy) but that may be enough to get you started.

Ed

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

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

end of thread, other threads:[~2013-07-25 13:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-24  7:29 problem with sample file arm-unknown-linux-uclibcgnueabi (x86_64, ct-ng1.18.0) lolo tremolo
2013-07-24  8:59 ` thorsten.johannvorderbrueggen
2013-07-24  9:20 ` Zhenqiang Chen
2013-07-24 14:11 Ed Beroset
2013-07-25 13:04 ` lolo tremolo

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