title: crosstool-ng build fail
body: <p>I am using a guide from <a href="https://web.archive.org/web/20121101075104/http://free-electrons.com/doc/training/embedded-linux/labs.pdf" rel="nofollow noreferrer">Free-Electrons.com</a></p>
  <p>I am trying to install the crosstool-ng compiler and have go to the point where you run the following command under the title <strong>Produce The Toolchain</strong> on page 6.</p>
  <pre><code>./ct-ng build
  </code></pre>
  <p>It should be noted that the article says to use <strong>Release 1.4.2 of Crosstool-ng</strong> which I have done.</p>
  <p>During the build it will fail saying that it can not download <strong>sstrip</strong>  which appears to be documented <strong><a href="http://old.nabble.com/Crosstool-NG:-error-retrieving-sstrip.c-td21789614.html" rel="nofollow noreferrer">here</a></strong></p>
  <p><strong>Example of Fail:</strong></p>
  <pre><code>[INFO ]  Retrieving needed toolchain components' tarballs
  [EXTRA]    Retrieving 'sstrip'
  [ERROR]    Could not retrieve 'sstrip'.
  [00:10] / make: *** [build] Error 1
  </code></pre>
  <p>In short the reason is that the repository has move and the posted solution is:</p>
  <pre><code>Yes, the buildroot repository has migrated to git from svn after the 1.4.0
  release was out, so 1.4.0 still uses the old URL.
  
  Please try:
  http://ymorin.is-a-geek.org/download/crosstool-ng/01-fixes/1.4.0/002-sstrip-URL.patch
  And while you're at it, you should also apply both of:
  http://ymorin.is-a-geek.org/download/crosstool-ng/01-fixes/1.4.0/000-glibc-2.8+_from_cvs_if_addon.patch
  http://ymorin.is-a-geek.org/download/crosstool-ng/01-fixes/1.4.0/001-glibc_force_ports_ARM_MIPS.patch
  </code></pre>
  <p>OK so installing the patch was a little weird but based on the <a href="https://web.archive.org/web/20100707133950/http://ymorin.is-a-geek.org/download/crosstool-ng/01-fixes/00-README" rel="nofollow noreferrer">README</a></p>
  <blockquote>
  <p>The patches should be applied directly at the top-level of the
  crosstool-NG directory with a command like:</p>
  <pre><code>patch -p1 &lt; ..../xxx-blabla.patch
  </code></pre>
  <p>(replace ..../xxx-blabla.patch with an actual patch name)</p>
  </blockquote>
  <p>So what I did was:</p>
  <pre><code>%&gt; patch -p1 /felabs/sysdev/toolchain/crosstool-ng-1.4.2/scripts/build/tools/200-sstrip.sh&lt;002-sstrip-URL.patch
  </code></pre>
  <p>I am not sure if the above command was correct but upon running the <strong>./ct-ng build</strong> it now downloads the sscript so I guess it's Ok.</p>
  <p>I should have applied the other two patches but was not sure of the source file, anyway the new build continued to this point:</p>
  <pre><code>[INFO ]  Build started 20110629.182838
  [INFO ]  Checking environment sanity
  [INFO ]  Building environment variables
  [EXTRA]  Preparing working directories
  [WARN ]  You did not specify the build system. That's OK, I can guess...
  [EXTRA]  Installing user-supplied crosstool-NG configuration
  [EXTRA]  =================================================================
  [EXTRA]  Dumping internal crosstool-NG configuration
  [EXTRA]    Building a toolchain for:
  [EXTRA]      build  = i686-linux-gnu
  [EXTRA]      host   = i686-linux-gnu
  [EXTRA]      target = arm-unknown-linux-uclibcgnueabi
  [EXTRA]  Dumping internal crosstool-NG configuration: done in 0.05s (at 00:01)
  [INFO ]  =================================================================
  [INFO ]  Retrieving needed toolchain components' tarballs
  [EXTRA]    Retrieving 'ltrace_0.5.orig'
  [EXTRA]    Saving 'ltrace_0.5.orig.tar.gz' to local storage
  [EXTRA]    Retrieving 'strace-4.5.17'
  [EXTRA]    Saving 'strace-4.5.17.tar.bz2' to local storage
  [INFO ]  Retrieving needed toolchain components' tarballs: done in 8.54s (at 00:09)
  [INFO ]  =================================================================
  [INFO ]  Extracting and patching toolchain components
  [INFO ]  Extracting and patching toolchain components
  [EXTRA]    Extracting 'linux-2.6.29'
  [EXTRA]    Patching 'linux-2.6.29'
  [EXTRA]    Extracting 'gmp-4.2.4'
  [EXTRA]    Patching 'gmp-4.2.4'
  [EXTRA]    Extracting 'mpfr-2.4.1'
  [EXTRA]    Patching 'mpfr-2.4.1'
  [EXTRA]    Extracting 'binutils-2.19.1'
  [EXTRA]    Patching 'binutils-2.19.1'
  [EXTRA]    Extracting 'gcc-4.3.2'
  [EXTRA]    Patching 'gcc-4.3.2'
  [EXTRA]    Extracting 'uClibc-0.9.30.1'
  [EXTRA]    Patching 'uClibc-0.9.30.1'    
  [EXTRA]    Extracting 'libelf-0.8.10'
  [EXTRA]    Patching 'libelf-0.8.10'
  [EXTRA]    Extracting 'sstrip'
  [EXTRA]    Patching 'sstrip'
  [EXTRA]    Extracting 'gdb-6.8'
  [ERROR]    Build failed in step 'Extracting and patching toolchain components'
  [ERROR]    Error happened in '/home/swamprat/felabs/sysdev/toolchain/crosstool-ng-1.4.2/scripts/functions' in function 'CT_DoExecLog' (line unknown, sorry)
  [ERROR]          called from '/home/swamprat/felabs/sysdev/toolchain/crosstool-ng-1.4.2/scripts/functions' at line # 535 in function 'CT_Extract'
  [ERROR]          called from '/home/swamprat/felabs/sysdev/toolchain/crosstool-ng-1.4.2/scripts/build/debug/300-gdb.sh' at line # 60 in function 'do_debug_gdb_extract'
  [ERROR]          called from '/home/swamprat/felabs/sysdev/toolchain/crosstool-ng-1.4.2/scripts/build/debug.sh' at line # 28 in function 'do_debug_extract'
  [ERROR]          called from '/home/swamprat/felabs/sysdev/toolchain/crosstool-ng-1.4.2/scripts/crosstool-NG.sh' at line # 470 in function 'main'
  [ERROR]    Look at '/usr/local/xtools/arm-unknown-linux-uclibcgnueabi/build.log' for more info on this error.
  [ERROR]  (elapsed: 1:53.45)
  [01:53] / make: *** [build] Error 2
  </code></pre>
  <p><strong>This is where I'm stuck any ideas ?</strong></p>