[SOLVED]failed build cross-toolchain for ubuntu-12.04-x86_64

Development on core packages and the distribution goes on in here.

[SOLVED]failed build cross-toolchain for ubuntu-12.04-x86_64

Postby lulo » Wed Apr 04, 2012 10:28 am

$this->bbcode_second_pass_code('', 'slawomirj@lulo-ubuntu:~/cross/bin$ ./ct-ng distclean
CLEAN scripts
CLEAN config
CLEAN config.gen
CLEAN log
CLEAN .config
CLEAN build dir
slawomirj@lulo-ubuntu:~/cross/bin$ ./ct-ng build
[INFO ] Performing some trivial sanity checks
[INFO ] Build started 20120404.120541
[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-gnueabi
[EXTRA] Dumping internal crosstool-NG configuration: done in 0.12s (at 00:02)
[INFO ] =================================================================
[INFO ] Retrieving needed toolchain components' tarballs
[INFO ] Retrieving needed toolchain components' tarballs: done in 0.37s (at 00:03)
[INFO ] =================================================================
[INFO ] Extracting and patching toolchain components
[EXTRA] Extracting 'linux-custom'
[EXTRA] Patching 'linux-custom'
[EXTRA] Extracting 'gmp-5.0.4'
[EXTRA] Patching 'gmp-5.0.4'
[EXTRA] Extracting 'mpfr-3.1.0'
[EXTRA] Patching 'mpfr-3.1.0'
[EXTRA] Extracting 'ppl-0.11.2'
[EXTRA] Patching 'ppl-0.11.2'
[EXTRA] Extracting 'cloog-ppl-0.15.11'
[EXTRA] Patching 'cloog-ppl-0.15.11'
[EXTRA] Extracting 'mpc-0.9'
[EXTRA] Patching 'mpc-0.9'
[EXTRA] Extracting 'binutils-2.22'
[EXTRA] Patching 'binutils-2.22'
[EXTRA] Extracting 'gcc-4.6.3'
[EXTRA] Patching 'gcc-4.6.3'
[EXTRA] Extracting 'glibc-2.15'
[EXTRA] Patching 'glibc-2.15'
[EXTRA] Extracting 'glibc-ports-2.15'
[EXTRA] Patching 'glibc-ports-2.15'
[INFO ] Extracting and patching toolchain components: done in 57.28s (at 01:00)
[INFO ] =================================================================
[INFO ] Installing GMP
[EXTRA] Configuring GMP
[EXTRA] Building GMP
[EXTRA] Installing GMP
[INFO ] Installing GMP: done in 42.92s (at 01:43)
[INFO ] =================================================================
[INFO ] Installing MPFR
[EXTRA] Configuring MPFR
[EXTRA] Building MPFR
[EXTRA] Installing MPFR
[INFO ] Installing MPFR: done in 16.60s (at 02:00)
[INFO ] =================================================================
[INFO ] Installing PPL
[EXTRA] Configuring PPL
[EXTRA] Building PPL
[EXTRA] Installing PPL
[INFO ] Installing PPL: done in 127.10s (at 04:07)
[INFO ] =================================================================
[INFO ] Installing CLooG/ppl
[EXTRA] Configuring CLooG/ppl
[EXTRA] Building CLooG/ppl
[EXTRA] Installing CLooG/ppl
[INFO ] Installing CLooG/ppl: done in 8.59s (at 04:15)
[INFO ] =================================================================
[INFO ] Installing MPC
[EXTRA] Configuring MPC
[EXTRA] Building MPC
[EXTRA] Installing MPC
[INFO ] Installing MPC: done in 9.93s (at 04:25)
[INFO ] =================================================================
[INFO ] Installing binutils
[EXTRA] Configuring binutils
[EXTRA] Building binutils
[EXTRA] Installing binutils
[INFO ] Installing binutils: done in 37.29s (at 05:03)
[INFO ] =================================================================
[INFO ] Installing static core C compiler
[EXTRA] Configuring static core C compiler
[EXTRA] Building static core C compiler
[EXTRA] Installing static core C compiler
[INFO ] Installing static core C compiler: done in 105.54s (at 06:48)
[INFO ] =================================================================
[INFO ] Installing kernel headers
[EXTRA] Installing kernel headers
[EXTRA] Checking installed headers
[INFO ] Installing kernel headers: done in 8.69s (at 06:57)
[INFO ] =================================================================
[INFO ] Installing C library headers & start files
[EXTRA] Configuring C library
[EXTRA] Installing C library headers
[ERROR] make[2]: *** [/home/slawomirj/x-tools/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi/sysroot/usr/include/gnu/lib-names.h] Error 1
[ERROR] make[1]: *** [install-headers] Error 2
[ERROR]
[ERROR] >>
[ERROR] >> Build failed in step 'Installing C library headers & start files'
[ERROR] >> called in step '(top-level)'
[ERROR] >>
[ERROR] >> Error happened in: CT_DoExecLog[scripts/functions@172]
[ERROR] >> called from: do_libc_backend_once[scripts/build/libc/glibc-eglibc.sh-common@381]
[ERROR] >> called from: do_libc_backend[scripts/build/libc/glibc-eglibc.sh-common@144]
[ERROR] >> called from: do_libc_start_files[scripts/build/libc/glibc-eglibc.sh-common@60]
[ERROR] >> called from: main[scripts/crosstool-NG.sh@597]
[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/slawomirj/cross/share/doc/crosstool-ng/ct-ng.1.14.1/B - Known issues.txt'
[ERROR]
[ERROR] (elapsed: 7:21.56)
[07:22] / make: *** [build] Błąd 2
slawomirj@lulo-ubuntu:~/cross/bin$
')

added build.log (default - armv5)

use recommended method http://archlinuxarm.org/developers/dist ... ompiling...
how to fix this problem ?
Last edited by lulo on Wed Jun 13, 2012 5:47 pm, edited 1 time in total.
lulo
 
Posts: 90
Joined: Mon Nov 28, 2011 1:19 am

Re: failed build cross-toolchain for ubuntu-12.04-x86_64-bet

Postby Philoo » Thu Apr 05, 2012 9:51 pm

got similar stuff with lucid and squeeze. I worked around it by ./ct-ng menuconfig and in the operating system->linux, select kernel 3.1.10 instead of "custom linux kernel".

So far so good.
Philoo
 
Posts: 102
Joined: Wed Aug 10, 2011 9:20 pm

Re: failed build cross-toolchain for ubuntu-12.04-x86_64-bet

Postby lulo » Fri Apr 06, 2012 12:15 am

prefered last ubuntu...why ?...not enough space for next (previous) distribution ubuntu for my hard disk :D :roll:
can call your fix Philoo (./ct-ng menuconfig, etc.) its previous glibc, glibc-ports and gcc and...again not builds cross-toulchain (its the same errors)...default .config => sync for actual version this libraries from repo archlinuxarm...if to revision this librariess for ("master" and "client" distcc) different version...builds any packages by is bad...i think so...
$this->bbcode_second_pass_code('', 'slawomirj@lulo-ubuntu:~/cross/bin$ ./ct-ng build
[INFO ] Performing some trivial sanity checks
[INFO ] Build started 20120406.015344
[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-gnueabi
[EXTRA] Dumping internal crosstool-NG configuration: done in 0.11s (at 00:02)
[INFO ] =================================================================
[INFO ] Retrieving needed toolchain components' tarballs
[EXTRA] Retrieving 'linux-3.1.10'
[EXTRA] Saving 'linux-3.1.10.tar.xz' to local storage
[EXTRA] Retrieving 'gmp-5.0.2'
[EXTRA] Saving 'gmp-5.0.2.tar.bz2' to local storage
[EXTRA] Retrieving 'gcc-4.6.2'
[EXTRA] Saving 'gcc-4.6.2.tar.bz2' to local storage
[EXTRA] Retrieving 'glibc-2.14.1'
[EXTRA] Saving 'glibc-2.14.1.tar.xz' to local storage
[EXTRA] Retrieving 'glibc-ports-2.14.1'
[EXTRA] Saving 'glibc-ports-2.14.1.tar.xz' to local storage
[INFO ] Retrieving needed toolchain components' tarballs: done in 146.41s (at 02:29)
[INFO ] =================================================================
[INFO ] Extracting and patching toolchain components
[EXTRA] Extracting 'linux-3.1.10'
[EXTRA] Patching 'linux-3.1.10'
[EXTRA] Extracting 'gmp-5.0.2'
[EXTRA] Patching 'gmp-5.0.2'
[EXTRA] Extracting 'gcc-4.6.2'
[EXTRA] Patching 'gcc-4.6.2'
[EXTRA] Extracting 'glibc-2.14.1'
[EXTRA] Patching 'glibc-2.14.1'
[EXTRA] Extracting 'glibc-ports-2.14.1'
[EXTRA] Patching 'glibc-ports-2.14.1'
[INFO ] Extracting and patching toolchain components: done in 35.07s (at 03:04)
[INFO ] =================================================================
[INFO ] Installing GMP
[EXTRA] Configuring GMP
[EXTRA] Building GMP
[EXTRA] Installing GMP
[INFO ] Installing GMP: done in 45.12s (at 03:49)
[INFO ] =================================================================
[INFO ] Installing MPFR
[EXTRA] Configuring MPFR
[EXTRA] Building MPFR
[EXTRA] Installing MPFR
[INFO ] Installing MPFR: done in 16.61s (at 04:06)
[INFO ] =================================================================
[INFO ] Installing PPL
[EXTRA] Configuring PPL
[EXTRA] Building PPL
[EXTRA] Installing PPL
[INFO ] Installing PPL: done in 128.13s (at 06:14)
[INFO ] =================================================================
[INFO ] Installing CLooG/ppl
[EXTRA] Configuring CLooG/ppl
[EXTRA] Building CLooG/ppl
[EXTRA] Installing CLooG/ppl
[INFO ] Installing CLooG/ppl: done in 7.96s (at 06:22)
[INFO ] =================================================================
[INFO ] Installing MPC
[EXTRA] Configuring MPC
[EXTRA] Building MPC
[EXTRA] Installing MPC
[INFO ] Installing MPC: done in 9.74s (at 06:32)
[INFO ] =================================================================
[INFO ] Installing binutils
[EXTRA] Configuring binutils
[EXTRA] Building binutils
[EXTRA] Installing binutils
[INFO ] Installing binutils: done in 35.37s (at 07:07)
[INFO ] =================================================================
[INFO ] Installing static core C compiler
[EXTRA] Configuring static core C compiler
[EXTRA] Building static core C compiler
[EXTRA] Installing static core C compiler
[INFO ] Installing static core C compiler: done in 101.96s (at 08:49)
[INFO ] =================================================================
[INFO ] Installing kernel headers
[EXTRA] Installing kernel headers
[EXTRA] Checking installed headers
[INFO ] Installing kernel headers: done in 8.71s (at 08:58)
[INFO ] =================================================================
[INFO ] Installing C library headers & start files
[EXTRA] Configuring C library
[EXTRA] Installing C library headers
[ERROR] make[2]: *** [/home/slawomirj/x-tools/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi/sysroot/usr/include/gnu/lib-names.h] Error 1
[ERROR] make[1]: *** [install-headers] Error 2
[ERROR]
[ERROR] >>
[ERROR] >> Build failed in step 'Installing C library headers & start files'
[ERROR] >> called in step '(top-level)'
[ERROR] >>
[ERROR] >> Error happened in: CT_DoExecLog[scripts/functions@172]
[ERROR] >> called from: do_libc_backend_once[scripts/build/libc/glibc-eglibc.sh-common@381]
[ERROR] >> called from: do_libc_backend[scripts/build/libc/glibc-eglibc.sh-common@144]
[ERROR] >> called from: do_libc_start_files[scripts/build/libc/glibc-eglibc.sh-common@60]
[ERROR] >> called from: main[scripts/crosstool-NG.sh@597]
[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/slawomirj/cross/share/doc/crosstool-ng/ct-ng.1.14.1/B - Known issues.txt'
[ERROR]
[ERROR] (elapsed: 9:22.59)
[09:23] / make: *** [build] Błąd 2
slawomirj@lulo-ubuntu:~/cross/bin$
')

1) meaby, i think, is probably absence of eglibc for ubuntu to activate this error...I no have concepts wassup...I really don't know....please help !
2) is not this file (not builds ?...): /home/slawomirj/x-tools/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi/sysroot/usr/include/gnu/lib-names.h => exactly the same problems viewtopic.php?p=15047#p15047 => script-build is fail
lulo
 
Posts: 90
Joined: Mon Nov 28, 2011 1:19 am

Re: failed build cross-toolchain for ubuntu-12.04-x86_64-bet

Postby lulo » Fri Apr 13, 2012 9:01 am

previous bug fixed can fix my stupid (probably) bug...install gawk and cvs (not default installed can install build-essential), create /usr/include/ncurses + symlinks 2 files (ln -s /usr/include/curses.h,ncurses.h /usr/include/ncurses/curses.h,ncurses.h) and...new error insted:
$this->bbcode_second_pass_code('', 'slawomirj@lulo-ubuntu:~/cross/bin$ ./ct-ng build
[INFO ] Performing some trivial sanity checks
[INFO ] Build started 20120413.103544
[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-gnueabi
[EXTRA] Dumping internal crosstool-NG configuration: done in 0.11s (at 00:03)
[INFO ] =================================================================
[INFO ] Retrieving needed toolchain components' tarballs
[INFO ] Retrieving needed toolchain components' tarballs: done in 0.37s (at 00:03)
[INFO ] =================================================================
[INFO ] Extracting and patching toolchain components
[EXTRA] Extracting 'linux-custom'
[EXTRA] Patching 'linux-custom'
[EXTRA] Extracting 'gmp-5.0.4'
[EXTRA] Patching 'gmp-5.0.4'
[EXTRA] Extracting 'mpfr-3.1.0'
[EXTRA] Patching 'mpfr-3.1.0'
[EXTRA] Extracting 'ppl-0.11.2'
[EXTRA] Patching 'ppl-0.11.2'
[EXTRA] Extracting 'cloog-ppl-0.15.11'
[EXTRA] Patching 'cloog-ppl-0.15.11'
[EXTRA] Extracting 'mpc-0.9'
[EXTRA] Patching 'mpc-0.9'
[EXTRA] Extracting 'binutils-2.22'
[EXTRA] Patching 'binutils-2.22'
[EXTRA] Extracting 'gcc-4.6.3'
[EXTRA] Patching 'gcc-4.6.3'
[EXTRA] Extracting 'glibc-2.15'
[EXTRA] Patching 'glibc-2.15'
[EXTRA] Extracting 'glibc-ports-2.15'
[EXTRA] Patching 'glibc-ports-2.15'
[INFO ] Extracting and patching toolchain components: done in 60.00s (at 01:03)
[INFO ] =================================================================
[INFO ] Installing GMP
[EXTRA] Configuring GMP
[EXTRA] Building GMP
[EXTRA] Installing GMP
[INFO ] Installing GMP: done in 43.39s (at 01:47)
[INFO ] =================================================================
[INFO ] Installing MPFR
[EXTRA] Configuring MPFR
[EXTRA] Building MPFR
[EXTRA] Installing MPFR
[INFO ] Installing MPFR: done in 16.66s (at 02:03)
[INFO ] =================================================================
[INFO ] Installing PPL
[EXTRA] Configuring PPL
[EXTRA] Building PPL
[EXTRA] Installing PPL
[INFO ] Installing PPL: done in 125.11s (at 04:08)
[INFO ] =================================================================
[INFO ] Installing CLooG/ppl
[EXTRA] Configuring CLooG/ppl
[EXTRA] Building CLooG/ppl
[EXTRA] Installing CLooG/ppl
[INFO ] Installing CLooG/ppl: done in 8.64s (at 04:17)
[INFO ] =================================================================
[INFO ] Installing MPC
[EXTRA] Configuring MPC
[EXTRA] Building MPC
[EXTRA] Installing MPC
[INFO ] Installing MPC: done in 9.97s (at 04:27)
[INFO ] =================================================================
[INFO ] Installing binutils
[EXTRA] Configuring binutils
[EXTRA] Building binutils
[EXTRA] Installing binutils
[INFO ] Installing binutils: done in 37.27s (at 05:04)
[INFO ] =================================================================
[INFO ] Installing static core C compiler
[EXTRA] Configuring static core C compiler
[EXTRA] Building static core C compiler
[EXTRA] Installing static core C compiler
[INFO ] Installing static core C compiler: done in 102.08s (at 06:47)
[INFO ] =================================================================
[INFO ] Installing kernel headers
[EXTRA] Installing kernel headers
[EXTRA] Checking installed headers
[INFO ] Installing kernel headers: done in 8.54s (at 06:55)
[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 50.78s (at 07:46)
[INFO ] =================================================================
[INFO ] Installing shared core C compiler
[EXTRA] Configuring shared core C compiler
[EXTRA] Building shared core C compiler
[EXTRA] Installing shared core C compiler
[INFO ] Installing shared core C compiler: done in 142.86s (at 10:09)
[INFO ] =================================================================
[INFO ] Installing C library
[EXTRA] Configuring C library
[EXTRA] Building C library
[ERROR] make[3]: *** [/home/slawomirj/cross/bin/.build/arm-unknown-linux-gnueabi/build/build-libc-final/malloc/libmemusage.so] Error 1
[ERROR] make[2]: *** [malloc/others] 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@172]
[ERROR] >> called from: do_libc_backend_once[scripts/build/libc/glibc-eglibc.sh-common@442]
[ERROR] >> called from: do_libc_backend[scripts/build/libc/glibc-eglibc.sh-common@144]
[ERROR] >> called from: do_libc[scripts/build/libc/glibc-eglibc.sh-common@65]
[ERROR] >> called from: main[scripts/crosstool-NG.sh@597]
[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/slawomirj/cross/share/doc/crosstool-ng/ct-ng.1.14.1/B - Known issues.txt'
[ERROR]
[ERROR] (elapsed: 14:17.19)
[14:18] / make: *** [build] Błąd 2
slawomirj@lulo-ubuntu:~/cross/bin$')

debug errors from buil.log:
$this->bbcode_second_pass_code('', '
...
...
...
[ALL ] arm-unknown-linux-gnueabi-gcc -U_FORTIFY_SOURCE -shared -static-libgcc -Wl,-O1 -Wl,-z,defs -Wl,-dynamic-linker=/lib/ld-linux.so.3 -B/home/slawomirj/cross/bin/.build/arm-unknown-linux-gnueabi/build/build-libc-final/csu/ -Wl,-soname=libmemusage.so -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both -L/home/slawomirj/cross/bin/.build/arm-unknown-linux-gnueabi/build/build-libc-final -L/home/slawomirj/cross/bin/.build/arm-unknown-linux-gnueabi/build/build-libc-final/math -L/home/slawomirj/cross/bin/.build/arm-unknown-linux-gnueabi/build/build-libc-final/elf -L/home/slawomirj/cross/bin/.build/arm-unknown-linux-gnueabi/build/build-libc-final/dlfcn -L/home/slawomirj/cross/bin/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nss -L/home/slawomirj/cross/bin/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis -L/home/slawomirj/cross/bin/.build/arm-unknown-linux-gnueabi/build/build-libc-final/rt -L/home/slawomirj/cross/bin/.build/arm-unknown-linux-gnueabi/build/build-libc-final/resolv -L/home/slawomirj/cross/bin/.build/arm-unknown-linux-gnueabi/build/build-libc-final/crypt -L/home/slawomirj/cross/bin/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nptl -Wl,-rpath-link=/home/slawomirj/cross/bin/.build/arm-unknown-linux-gnueabi/build/build-libc-final:/home/slawomirj/cross/bin/.build/arm-unknown-linux-gnueabi/build/build-libc-final/math:/home/slawomirj/cross/bin/.build/arm-unknown-linux-gnueabi/build/build-libc-final/elf:/home/slawomirj/cross/bin/.build/arm-unknown-linux-gnueabi/build/build-libc-final/dlfcn:/home/slawomirj/cross/bin/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nss:/home/slawomirj/cross/bin/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nis:/home/slawomirj/cross/bin/.build/arm-unknown-linux-gnueabi/build/build-libc-final/rt:/home/slawomirj/cross/bin/.build/arm-unknown-linux-gnueabi/build/build-libc-final/resolv:/home/slawomirj/cross/bin/.build/arm-unknown-linux-gnueabi/build/build-libc-final/crypt:/home/slawomirj/cross/bin/.build/arm-unknown-linux-gnueabi/build/build-libc-final/nptl -o /home/slawomirj/cross/bin/.build/arm-unknown-linux-gnueabi/build/build-libc-final/malloc/libmemusage.so -T /home/slawomirj/cross/bin/.build/arm-unknown-linux-gnueabi/build/build-libc-final/shlib.lds /home/slawomirj/cross/bin/.build/arm-unknown-linux-gnueabi/build/build-libc-final/csu/abi-note.o -Wl,--whole-archive /home/slawomirj/cross/bin/.build/arm-unknown-linux-gnueabi/build/build-libc-final/malloc/libmemusage_pic.a -Wl,--no-whole-archive /home/slawomirj/cross/bin/.build/arm-unknown-linux-gnueabi/build/build-libc-final/elf/interp.os /home/slawomirj/cross/bin/.build/arm-unknown-linux-gnueabi/build/build-libc-final/dlfcn/libdl.so /home/slawomirj/cross/bin/.build/arm-unknown-linux-gnueabi/build/build-libc-final/elf/ld.so
[ALL ] /home/slawomirj/cross/bin/.build/arm-unknown-linux-gnueabi/build/build-libc-final/malloc/libmemusage_pic.a(memusage.os): In function `me':
[ALL ] memusage.c:(.text+0x1cc): undefined reference to `__aeabi_read_tp'
[ALL ] collect2: ld returned 1 exit status
[ERROR] make[3]: *** [/home/slawomirj/cross/bin/.build/arm-unknown-linux-gnueabi/build/build-libc-final/malloc/libmemusage.so] Error 1
[ALL ] make[3]: Leaving directory `/home/slawomirj/cross/bin/.build/src/glibc-2.15/malloc'
[ERROR] make[2]: *** [malloc/others] Error 2
[ALL ] make[2]: Leaving directory `/home/slawomirj/cross/bin/.build/src/glibc-2.15'
[ERROR] make[1]: *** [all] Error 2
[ALL ] make[1]: Leaving directory `/home/slawomirj/cross/bin/.build/arm-unknown-linux-gnueabi/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@172]
[ERROR] >> called from: do_libc_backend_once[scripts/build/libc/glibc-eglibc.sh-common@442]
[ERROR] >> called from: do_libc_backend[scripts/build/libc/glibc-eglibc.sh-common@144]
[ERROR] >> called from: do_libc[scripts/build/libc/glibc-eglibc.sh-common@65]
[ERROR] >> called from: main[scripts/crosstool-NG.sh@597]
[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/slawomirj/cross/share/doc/crosstool-ng/ct-ng.1.14.1/B - Known issues.txt'
[ERROR]
[ERROR] (elapsed: 14:17.19)
slawomirj@lulo-ubuntu:~/cross/bin$
')

Can using this fix sugested for Philoo viewtopic.php?p=15739#p15739 toolchain builds => success
$this->bbcode_second_pass_code('', 'slawomirj@lulo-ubuntu:~/cross/bin$ ./ct-ng build
[INFO ] Performing some trivial sanity checks
[INFO ] Build started 20120413.111404
[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-gnueabi
[EXTRA] Dumping internal crosstool-NG configuration: done in 0.10s (at 00:03)
[INFO ] =================================================================
[INFO ] Retrieving needed toolchain components' tarballs
[INFO ] Retrieving needed toolchain components' tarballs: done in 0.38s (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-5.0.2'
[EXTRA] Patching 'gmp-5.0.2'
[EXTRA] Extracting 'mpfr-3.1.0'
[EXTRA] Patching 'mpfr-3.1.0'
[EXTRA] Extracting 'ppl-0.11.2'
[EXTRA] Patching 'ppl-0.11.2'
[EXTRA] Extracting 'cloog-ppl-0.15.11'
[EXTRA] Patching 'cloog-ppl-0.15.11'
[EXTRA] Extracting 'mpc-0.9'
[EXTRA] Patching 'mpc-0.9'
[EXTRA] Extracting 'binutils-2.22'
[EXTRA] Patching 'binutils-2.22'
[EXTRA] Extracting 'gcc-4.6.2'
[EXTRA] Patching 'gcc-4.6.2'
[EXTRA] Extracting 'glibc-2.14.1'
[EXTRA] Patching 'glibc-2.14.1'
[EXTRA] Extracting 'glibc-ports-2.14.1'
[EXTRA] Patching 'glibc-ports-2.14.1'
[INFO ] Extracting and patching toolchain components: done in 45.53s (at 00:49)
[INFO ] =================================================================
[INFO ] Installing GMP
[EXTRA] Configuring GMP
[EXTRA] Building GMP
[EXTRA] Installing GMP
[INFO ] Installing GMP: done in 46.33s (at 01:35)
[INFO ] =================================================================
[INFO ] Installing MPFR
[EXTRA] Configuring MPFR
[EXTRA] Building MPFR
[EXTRA] Installing MPFR
[INFO ] Installing MPFR: done in 16.61s (at 01:52)
[INFO ] =================================================================
[INFO ] Installing PPL
[EXTRA] Configuring PPL
[EXTRA] Building PPL
[EXTRA] Installing PPL
[INFO ] Installing PPL: done in 124.97s (at 03:57)
[INFO ] =================================================================
[INFO ] Installing CLooG/ppl
[EXTRA] Configuring CLooG/ppl
[EXTRA] Building CLooG/ppl
[EXTRA] Installing CLooG/ppl
[INFO ] Installing CLooG/ppl: done in 8.70s (at 04:05)
[INFO ] =================================================================
[INFO ] Installing MPC
[EXTRA] Configuring MPC
[EXTRA] Building MPC
[EXTRA] Installing MPC
[INFO ] Installing MPC: done in 9.91s (at 04:15)
[INFO ] =================================================================
[INFO ] Installing binutils
[EXTRA] Configuring binutils
[EXTRA] Building binutils
[EXTRA] Installing binutils
[INFO ] Installing binutils: done in 36.26s (at 04:52)
[INFO ] =================================================================
[INFO ] Installing static core C compiler
[EXTRA] Configuring static core C compiler
[EXTRA] Building static core C compiler
[EXTRA] Installing static core C compiler
[INFO ] Installing static core C compiler: done in 103.91s (at 06:36)
[INFO ] =================================================================
[INFO ] Installing kernel headers
[EXTRA] Installing kernel headers
[EXTRA] Checking installed headers
[INFO ] Installing kernel headers: done in 8.60s (at 06:44)
[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 54.32s (at 07:38)
[INFO ] =================================================================
[INFO ] Installing shared core C compiler
[EXTRA] Configuring shared core C compiler
[EXTRA] Building shared core C compiler
[EXTRA] Installing shared core C compiler
[INFO ] Installing shared core C compiler: done in 123.41s (at 09:42)
[INFO ] =================================================================
[INFO ] Installing C library
[EXTRA] Configuring C library
[EXTRA] Building C library
[EXTRA] Installing C library
[INFO ] Installing C library: done in 393.49s (at 16:15)
[INFO ] =================================================================
[INFO ] Installing final compiler
[EXTRA] Configuring final compiler
[EXTRA] Building final compiler
[EXTRA] Installing final compiler
[INFO ] Installing final compiler: done in 194.43s (at 19:30)
[INFO ] =================================================================
[INFO ] Cleaning-up the toolchain's directory
[INFO ] Stripping all toolchain executables
[EXTRA] Installing the populate helper
[EXTRA] Installing a cross-ldd helper
[EXTRA] Creating toolchain aliases
[EXTRA] Removing access to the build system tools
[EXTRA] Removing installed documentation
[INFO ] Cleaning-up the toolchain's directory: done in 1.88s (at 19:32)
[INFO ] Build completed at 20120413.113335
[INFO ] (elapsed: 19:31.09)
[INFO ] Finishing installation (may take a few seconds)...
[19:32] / slawomirj@lulo-ubuntu:~/cross/bin$
')
...and build any...fail...(fragment builds from terminal for rtorrent):
$this->bbcode_second_pass_code('', '
...
...
...
g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -march=armv5te -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -g -DDEBUG -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include -MT control.o -MD -MP -MF .deps/control.Tpo -c -o control.o control.cc
distcc[6506] ERROR: compile control.cc on 192.168.1.202 failed
distcc[6506] (dcc_build_somewhere) Warning: remote compilation of 'control.cc' failed, retrying locally
distcc[6506] Warning: failed to distribute control.cc to 192.168.1.202, running locally instead
...
...
...
')
HOW TO FIX THIS ERROR its use glibc-2.15,glibc-ports-2.15,gcc-4.6.3 (actualy default settings my RAM from bios) ???
lulo
 
Posts: 90
Joined: Mon Nov 28, 2011 1:19 am

Re: failed build cross-toolchain for ubuntu-12.04-x86_64-bet

Postby kmihelich » Fri Apr 13, 2012 3:00 pm

Upstream bumped their toolchain versions a week or so ago, and now that things have slowed for me a little bit I'll be bringing us up to date. This is just a GCC bump to 4.7.0, with glibc and binutils staying at 2.15 and 2.22 respectively.

I'll do things a bit different this round in regard to the ct-ng toolchain by providing tarballs of my final toolchain binaries for v5 and v7h, using the static build options in ct-ng to make them as system-portable as possible. This won't mean they're guaranteed to work. Also, since my system is 64-bit, this means I'm not going to be providing 32-bit binaries. If you're still running a 32-bit desktop/laptop at this point in time, sorry, time to upgrade.

Hopefully this will help for those having issues building, and the same toolchains used by me to build the official packages will be available to all.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: failed build cross-toolchain for ubuntu-12.04-x86_64-bet

Postby Philoo » Fri Apr 13, 2012 3:18 pm

lulo,

Alarm uses glibc 2.15, my workaround apparently sticks with 2.14.1 which is enough for me since I cross compile the kernel and modules thus do not link against glibc.
Having a program linked against an older version of the lib might be ok but a distributed compilation where some devices use a different revision (like 2.14 on your ubuntu PC and 2.15 on the master plug) is bound fail at link time.

Because of that and other nags in the arch/debian/ubuntu interoperation I'm seriously considering an arch chroot on my lucid laptop. thanks to this script : https://wiki.archlinux.org/index.php/Archbootstrap
Philoo
 
Posts: 102
Joined: Wed Aug 10, 2011 9:20 pm

Re: failed build cross-toolchain for ubuntu-12.04-x86_64-bet

Postby Philoo » Fri Apr 13, 2012 3:42 pm

$this->bbcode_second_pass_quote('kmihelich', '
')I'll do things a bit different this round in regard to the ct-ng toolchain by providing tarballs of my final toolchain binaries for v5 and v7h, using the static build options in ct-ng to make them as system-portable as possible. This won't mean they're guaranteed to work. Also, since my system is 64-bit, this means I'm not going to be providing 32-bit binaries. If you're still running a 32-bit desktop/laptop at this point in time, sorry, time to upgrade.


Understood and appreciated, but half of my arch petting zoo is actually 32 bit systems. Would you be kind enough to still provide the xtools-config file ? or maybe even a package in AUR. In terms of portability I do not think you could beat and arch package inside an arch chroot.
Philoo
 
Posts: 102
Joined: Wed Aug 10, 2011 9:20 pm

Re: failed build cross-toolchain for ubuntu-12.04-x86_64-bet

Postby kmihelich » Fri Apr 13, 2012 3:46 pm

Yes, everything provided now will continue to be provided. I'll just be adding some tarballs to download, since lately getting the toolchains built seems to be the hardest part for people, and I can't track down or reproduce whatever is causing the issues. Really, it all builds just fine on my system as I've described. I run Kubuntu 11.10, nothing special outside of official packages.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: failed build cross-toolchain for ubuntu-12.04-x86_64-bet

Postby lulo » Fri Apr 13, 2012 3:59 pm

kmihelich - my system is ubuntu-12.04-beta2+++(+++=actual date this post)-x86_64 (or some cross 32bit-binaries...eq.java, flash, etc.)...fix for ~/cross/bin/.config = > gcc-4.6.3 to gcc-4.7.0 ???...
Philoo...how to build this instance arch chroot for my actual ubuntu ?
lulo
 
Posts: 90
Joined: Mon Nov 28, 2011 1:19 am

Re: failed build cross-toolchain for ubuntu-12.04-x86_64-bet

Postby kmihelich » Fri Apr 13, 2012 4:03 pm

I'm not going to spend time discussing version updates when I haven't even started, and when the native toolchains aren't even at those versions. Speculation and hacks always cause problems.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Next

Return to Arch Linux ARM

Who is online

Users browsing this forum: No registered users and 8 guests