<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ltib - fails to build Busybox in Ubuntu 12.04 in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/ltib-fails-to-build-Busybox-in-Ubuntu-12-04/m-p/227818#M16507</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ltib is latest downloaded from freescale : L3.0.35_1.1.0_121218_source.tar.gz&lt;/P&gt;&lt;P&gt;Applied all the necessary patches for the build to work on ubuntu 12.04 and ltib builds well past the blue configuration screen.&lt;/P&gt;&lt;P&gt;However when trying to build the busybox it fails with a linker problem.&lt;/P&gt;&lt;P&gt;It appears the build script is not finding necessary libraries: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the linker error script is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==========&lt;/P&gt;&lt;P&gt;/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.6.2/../../../../arm-fsl-linux-gnueabi/bin/ld: cannot find /lib/libc.so.6&lt;/P&gt;&lt;P&gt;/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.6.2/../../../../arm-fsl-linux-gnueabi/bin/ld: cannot find /usr/lib/libc_nonshared.a&lt;/P&gt;&lt;P&gt;/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.6.2/../../../../arm-fsl-linux-gnueabi/bin/ld: cannot find /lib/ld-linux.so.3&lt;/P&gt;&lt;P&gt;collect2: ld returned 1 exit status&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RPM build errors:&lt;/P&gt;&lt;P&gt;Build time for busybox: 5 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Started: Sat Mar 16 20:00:41 2013&lt;/P&gt;&lt;P&gt;Ended:&amp;nbsp;&amp;nbsp; Sat Mar 16 20:00:47 2013&lt;/P&gt;&lt;P&gt;Elapsed: 6 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These packages failed to build:&lt;/P&gt;&lt;P&gt;busybox&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;========================&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Any advice will be appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Mar 2013 20:21:47 GMT</pubDate>
    <dc:creator>makislivadas</dc:creator>
    <dc:date>2013-03-16T20:21:47Z</dc:date>
    <item>
      <title>ltib - fails to build Busybox in Ubuntu 12.04</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ltib-fails-to-build-Busybox-in-Ubuntu-12-04/m-p/227818#M16507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ltib is latest downloaded from freescale : L3.0.35_1.1.0_121218_source.tar.gz&lt;/P&gt;&lt;P&gt;Applied all the necessary patches for the build to work on ubuntu 12.04 and ltib builds well past the blue configuration screen.&lt;/P&gt;&lt;P&gt;However when trying to build the busybox it fails with a linker problem.&lt;/P&gt;&lt;P&gt;It appears the build script is not finding necessary libraries: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the linker error script is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==========&lt;/P&gt;&lt;P&gt;/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.6.2/../../../../arm-fsl-linux-gnueabi/bin/ld: cannot find /lib/libc.so.6&lt;/P&gt;&lt;P&gt;/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.6.2/../../../../arm-fsl-linux-gnueabi/bin/ld: cannot find /usr/lib/libc_nonshared.a&lt;/P&gt;&lt;P&gt;/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.6.2/../../../../arm-fsl-linux-gnueabi/bin/ld: cannot find /lib/ld-linux.so.3&lt;/P&gt;&lt;P&gt;collect2: ld returned 1 exit status&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RPM build errors:&lt;/P&gt;&lt;P&gt;Build time for busybox: 5 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Started: Sat Mar 16 20:00:41 2013&lt;/P&gt;&lt;P&gt;Ended:&amp;nbsp;&amp;nbsp; Sat Mar 16 20:00:47 2013&lt;/P&gt;&lt;P&gt;Elapsed: 6 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These packages failed to build:&lt;/P&gt;&lt;P&gt;busybox&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;========================&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Any advice will be appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Mar 2013 20:21:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ltib-fails-to-build-Busybox-in-Ubuntu-12-04/m-p/227818#M16507</guid>
      <dc:creator>makislivadas</dc:creator>
      <dc:date>2013-03-16T20:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: ltib - fails to build Busybox in Ubuntu 12.04</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ltib-fails-to-build-Busybox-in-Ubuntu-12-04/m-p/227819#M16508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Managed to fix this following this thread&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="https://community.nxp.com/thread/117194"&gt;LTIB on Ubuntu 12.04&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;In particular doing this suggestion:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;---------------------------------&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I just noticed that my earlier note was cryptic, but in this case, you're seeing the same problem as I had: LTIB is trying to find libraries in your host system directories. In other words, it's trying to load /&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;lib/libc.so.6 instead of finding the library within the LTIB tree.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The answer seems to be simple. Go into ltib/dist/lfs/base_libs/base_libs.spec and find these lines:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # remove absolute paths from text search files (if they exist)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; perl -w -e '&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @ARGV = grep { `file $_` =~ m,ASCII C program text, } @ARGV;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit(0) unless @ARGV;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remove the last two (the lines beginning with "@ARGV" and "exit(0)" and you should be good to go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;----------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;still curous why this script works on 10.04 but needs to be corrected in 12.04.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Mar 2013 12:31:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ltib-fails-to-build-Busybox-in-Ubuntu-12-04/m-p/227819#M16508</guid>
      <dc:creator>makislivadas</dc:creator>
      <dc:date>2013-03-17T12:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: ltib - fails to build Busybox in Ubuntu 12.04</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ltib-fails-to-build-Busybox-in-Ubuntu-12-04/m-p/227820#M16509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The same problem dealt with the same way as you shown.&lt;/P&gt;&lt;P&gt;But my ubuntu 12.04 is the 64bit version copy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before do the same way, I used to make symbol link for the so files as the make error above. But it can not work anymore.&lt;/P&gt;&lt;P&gt;So, I think it mast be 32bit --&amp;gt; 64bit version, and can not find the so files as the regular way as the script does as Ubuntu 10.04.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe this is the cause.&lt;/P&gt;&lt;P&gt;I don't know what version of the Ubuntu 10.04 you use (32bit or 64bit):smileyblush:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 00:50:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ltib-fails-to-build-Busybox-in-Ubuntu-12-04/m-p/227820#M16509</guid>
      <dc:creator>tongchunyang</dc:creator>
      <dc:date>2013-11-13T00:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: ltib - fails to build Busybox in Ubuntu 12.04</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ltib-fails-to-build-Busybox-in-Ubuntu-12-04/m-p/227821#M16510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This fix handles both 32bit and 64bit version of Ubuntu 12.04 and any other versions of ubuntu later then 12.04, in the same way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 10:28:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ltib-fails-to-build-Busybox-in-Ubuntu-12-04/m-p/227821#M16510</guid>
      <dc:creator>makislivadas</dc:creator>
      <dc:date>2013-11-13T10:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: ltib - fails to build Busybox in Ubuntu 12.04</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ltib-fails-to-build-Busybox-in-Ubuntu-12-04/m-p/227822#M16511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 19:25:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ltib-fails-to-build-Busybox-in-Ubuntu-12-04/m-p/227822#M16511</guid>
      <dc:creator>jkobs2014</dc:creator>
      <dc:date>2014-03-20T19:25:10Z</dc:date>
    </item>
  </channel>
</rss>

