[Desire Android Development] Droidzone:
Do you know what this error means and how to correct it? Problem with building toolchain..

[CFG ] checking version of /home/droidzone/ct-ng/bin/.build/arm-msm-linux-gnueabi/build/gcc-core-static/bin/arm-msm-linux-gnueabi-gcc... 4.6.2, ok
[CFG ] checking for gnumake... (cached) make
[CFG ] checking version of make... 3.81, ok
[CFG ] checking for gnumsgfmt... (cached) msgfmt
[CFG ] checking version of msgfmt... 0.18.1, ok
[CFG ] checking for makeinfo... (cached) makeinfo
[CFG ] checking version of makeinfo... 4.13, ok
[CFG ] checking for sed... (cached) sed
[CFG ] checking version of sed... 4.2.1, ok
[CFG ] checking for autoconf... (cached) autoconf
[CFG ] checking whether autoconf works... (cached) yes
[CFG ] checking LD_LIBRARY_PATH variable... ok
[CFG ] checking whether GCC supports -static-libgcc... (cached) -static-libgcc
[CFG ] checking for bash... (cached) /home/droidzone/ct-ng/bin/.build/tools/bin/bash
[CFG ] checking for gawk... (cached) gawk
[CFG ] checking for perl... (cached) /usr/bin/perl
[CFG ] checking for install-info... (cached) /usr/sbin/install-info
[CFG ] checking for bison... (cached) /usr/bin/bison
[CFG ] checking for signed size_t type... (cached) no
[CFG ] checking for libc-friendly stddef.h... (cached) yes
[CFG ] checking whether we need to use -P to assemble .S files... (cached) no
[CFG ] checking for .set assembler directive... (cached) yes
[CFG ] checking for assembler gnu_unique_object symbol type... (cached) yes
[CFG ] checking for .symver assembler directive... (cached) yes
[CFG ] checking for ld --version-script... (cached) yes
[CFG ] checking for .previous assembler directive... (cached) yes
[CFG ] checking for .protected and .hidden assembler directive... (cached) yes
[CFG ] checking whether __attribute__((visibility())) is supported... (cached) yes
[CFG ] checking for broken __attribute__((visibility()))... (cached) no
[CFG ] checking for broken __attribute__((alias()))... (cached) no
[CFG ] checking whether to put _rtld_local into .sdata section... (cached) no
[CFG ] checking for .preinit_array/.init_array/.fini_array support... (cached) yes
[CFG ] checking for libunwind-support in compiler... (cached) no
[CFG ] checking for -z nodelete option... (cached) yes
[CFG ] checking for -z nodlopen option... (cached) yes
[CFG ] checking for -z initfirst option... (cached) yes
[CFG ] checking for -Bgroup option... (cached) yes
[CFG ] checking for libgcc_s suffix... (cached)
[CFG ] checking for --as-needed option... (cached) no
[CFG ] checking whether --noexecstack is desirable for .S files... (cached) yes
[CFG ] checking for -z combreloc... (cached) yes
[CFG ] checking for -z execstack... (cached) yes
[CFG ] checking for -fpie... (cached) no
[CFG ] checking for --hash-style option... (cached) yes
[CFG ] checking for -fno-toplevel-reorder -fno-section-anchors... (cached) yes
[CFG ] checking for -fstack-protector... (cached) no
[CFG ] checking for -fgnu89-inline... (cached) yes
[CFG ] checking whether cc puts quotes around section names... (cached) no
[CFG ] checking for assembler .weak directive... (cached) yes
[CFG ] checking whether CFI directives are supported... (cached) yes
[CFG ] checking for ld --no-whole-archive... (cached) yes
[CFG ] checking for gcc -fexceptions... (cached) yes
[CFG ] checking for __builtin_expect... (cached) no
[CFG ] checking for __builtin_memset... (cached) no
[CFG ] checking for redirection of built-in functions... (cached) yes
[CFG ] checking for __thread... (cached) yes
[CFG ] checking for tls_model attribute... (cached) yes
[CFG ] checking for libgd... no
[CFG ] checking for is_selinux_enabled in -lselinux... (cached) no
[CFG ] checking for grep that handles long lines and -e... (cached) /home/droidzone/ct-ng/bin/.build/tools/bin/grep
[CFG ] checking for egrep... (cached) /home/droidzone/ct-ng/bin/.build/tools/bin/grep -E
[CFG ] checking for ANSI C header files... (cached) no
[CFG ] checking for sys/types.h... (cached) no
[CFG ] checking for sys/stat.h... (cached) no
[CFG ] checking for stdlib.h... (cached) no
[CFG ] checking for string.h... (cached) no
[CFG ] checking for memory.h... (cached) no
[CFG ] checking for strings.h... (cached) no
[CFG ] checking for inttypes.h... (cached) no
[CFG ] checking for stdint.h... (cached) no
[CFG ] checking for unistd.h... (cached) no
[CFG ] checking size of long double... (cached) 0
[CFG ] running configure fragment for ports/sysdeps/arm/elf
[CFG ] checking for ARM TLS support... (cached) yes
[CFG ] /home/droidzone/ct-ng/bin/.build/src/glibc-2.14/ports/sysdeps/arm/elf/configure: 43: 0: Too many open files
[CFG ] running configure fragment for ports/sysdeps/unix/sysv/linux/arm/eabi
[CFG ] running configure fragment for sysdeps/unix/sysv/linux
[ERROR] Build failed in step 'Installing C library headers'
[ERROR] Error happened in '/home/droidzone/ct-ng/lib/ct-ng-1.9.3/scripts/functions' in function 'CT_DoExecLog' (line unknown, sorry)
[ERROR] called from '/home/droidzone/ct-ng/lib/ct-ng-1.9.3/scripts/build/libc/glibc.sh' at line # 129 in function 'do_libc_headers'
[ERROR] called from '/home/droidzone/ct-ng/lib/ct-ng-1.9.3/scripts/crosstool-NG.sh' at line # 597 in function 'main'
[ERROR] Look at '/home/droidzone/x-tools/arm-msm-linux-gnueabi/build.log' for more info on this error.
[ERROR] (elapsed: 29:43.76)

Edit #1: I set ct-ng debug mode and Save intermediate steps ON..

Retrying...

Edit #2: Stumbled on an IRC log that documented a similiar situation. The recommendation was to restart build..

Accordingly pressed ^C where the build failed last time

[INFO ] =================================================================
[INFO ] Installing static core C compiler
[INFO ] Installing static core C compiler: done in 336.92s (at 09:28)
[INFO ] Saving state to restart at step 'libc_headers'...
[INFO ] =================================================================
[INFO ] Installing C library headers

Edit #3, It now proceeds more..

droidzone@supernova:~/ct-ng/bin$ ./ct-ng libc_headers+
[INFO ] Performing some trivial sanity checks
[INFO ] Build started 20120123.111456
[INFO ] Building environment variables
[INFO ] Restoring state at step 'libc_headers', as requested.
[INFO ] =================================================================
[INFO ] Installing C library headers
[INFO ] Installing C library headers: done in 24.94s (at 00:32)
[INFO ] Saving state to restart at step 'libc_start_files'...
[INFO ] =================================================================
[INFO ] Installing C library start files
[WARN ] Removing "-pipe" for use with glibc>=2.6
[INFO ] Installing C library start files: done in 20.97s (at 01:00)
[INFO ] Saving state to restart at step 'cc_core_pass_2'...
[INFO ] =================================================================
[INFO ] Installing shared core C compiler
[INFO ] Installing shared core C compiler: done in 367.37s (at 07:13)
[INFO ] Saving state to restart at step 'libc'...
[INFO ] =================================================================
[INFO ] Installing C library
[WARN ] Removing "-pipe" for use with glibc>=2.6

Hooray.. :D

[INFO ] Performing some trivial sanity checks
[INFO ] Build started 20120123.114032
[INFO ] Building environment variables
[INFO ] Restoring state at step 'cc', as requested.
[INFO ] =================================================================
[INFO ] Installing final compiler
[INFO ] Installing final compiler: done in 555.00s (at 09:26)
[INFO ] Saving state to restart at step 'libc_finish'...
[INFO ] Saving state to restart at step 'libelf_target'...
[INFO ] Saving state to restart at step 'binutils_target'...
[INFO ] Saving state to restart at step 'debug'...
[INFO ] Saving state to restart at step 'test_suite'...
[INFO ] Saving state to restart at step 'finish'...
[INFO ] =================================================================
[INFO ] Cleaning-up the toolchain's directory
[INFO ] Stripping all toolchain executables
[INFO ] Cleaning-up the toolchain's directory: done in 1.62s (at 10:54)
[INFO ] Build completed at 20120123.115126
[INFO ] (elapsed: 46:29.87)
[INFO ] Finishing installation (may take a few seconds)...
[10:54] / droidzone@supernova:~/ct-ng/bin$