Running pre-built linaro toolchain failed on Ubuntu 11.04, 64bit server

Michael Hope michael.hope at linaro.org
Tue Jan 17 23:14:27 UTC 2012


On Thu, Jan 12, 2012 at 12:28 PM, Michael Hope <michael.hope at linaro.org> wrote:
> On Wed, Jan 11, 2012 at 11:56 PM, Lv Terry-R65388 <r65388 at freescale.com> wrote:
>> Hi Michael,
>>
>>        I changed the symbol link of /lib/ld-linux.so.2.
>>
>>        sudo ln -s -f /lib32/ld-linux.so.2 /lib/ld-linux.so.2
>>
>>        But it seems the problem is still not resolved.
>>
>> r65388 at shlinux3:~/toolchain_ltib/gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12/arm-fsl-linux-gnueabi/bin$ ls -la /lib/ld*
>> lrwxrwxrwx 1 root root 20 2012-01-11 15:42 /lib/ld-linux.so.2 -> /lib32/ld-linux.so.2
>> r65388 at shlinux3:~/toolchain_ltib/gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12/arm-fsl-linux-gnueabi/bin$ ./arm-linux-gnueabi-gcc
>> -bash: ./arm-linux-gnueabi-gcc: No such file or directory
>>
>>        I'll check the server again.
>
> Hi Terry.  I couldn't reproduce the problem on a fresh install of
> Ubuntu 11.10 x86_64 Server.
>
> I started with a clean install and saw similar to your problem:
>
> cbuild at crucis-oneiric:~$
> ./gcc-linaro-arm-linux-gnueabi-2011.12-20111219+bzr2309~linux/bin/arm-linux-gnueabi-gcc
> -bash: ./gcc-linaro-arm-linux-gnueabi-2011.12-20111219+bzr2309~linux/bin/arm-linux-gnueabi-gcc:
> No such file or directory
>
> I then installed lsb using `sudo apt-get install lsb`.  This changed
> the error to one about missing the 32 bit libstdc++:
>
> cbuild at crucis-oneiric:~$
> ./gcc-linaro-arm-linux-gnueabi-2011.12-20111219+bzr2309~linux/bin/arm-linux-gnueabi-gcc
> ./gcc-linaro-arm-linux-gnueabi-2011.12-20111219+bzr2309~linux/bin/arm-linux-gnueabi-gcc:
> error while loading shared libraries: libstdc++.so.6: cannot open
> shared object file: No such file or directory
>
> I then installed the 32 bit libraries using `sudo apt-get install
> ia32-libs`. The binary then works:
>
> cbuild at crucis-oneiric:~$
> ./gcc-linaro-arm-linux-gnueabi-2011.12-20111219+bzr2309~linux/bin/arm-linux-gnueabi-gcc
> arm-linux-gnueabi-gcc: fatal error: no input files
>
> For reference, here's the linkers afterwards:
>
> cbuild at crucis-oneiric:~$ ls -la /lib/ld*
> lrwxrwxrwx 1 root root 25 2011-10-05 11:07 /lib/ld-linux.so.2 ->
> i386-linux-gnu/ld-2.13.so
> lrwxrwxrwx 1 root root 13 2012-01-12 12:15 /lib/ld-lsb.so.1 -> ld-linux.so.2
> lrwxrwxrwx 1 root root 13 2012-01-12 12:15 /lib/ld-lsb.so.2 -> ld-linux.so.2
> lrwxrwxrwx 1 root root 13 2012-01-12 12:15 /lib/ld-lsb.so.3 -> ld-linux.so.2
>
> cbuild at crucis-oneiric:~$ ls -la /lib/i386-linux-gnu/ld*
> -rwxr-xr-x 1 root root 126152 2011-10-05 11:07 /lib/i386-linux-gnu/ld-2.13.so
> lrwxrwxrwx 1 root root     10 2011-10-05 11:07
> /lib/i386-linux-gnu/ld-linux.so.2 -> ld-2.13.so
>
> From our tests yesterday you have the linker and all of the libraries
> needed to run the problem.  The error message from bash is probably
> due to a broken symlink.  I recommend you look into that futher.  Good
> luck and let me know if I can help!

Hi Terry.  Did you have any luck with this?  If you're still stuck
then consider:
 http://people.linaro.org/~michaelh/incoming/binaries/gcc-linaro-arm-linux-gnueabi-2012.01-20120112+bzr2318~linux.tar.xz

This uses /lib/ld-linux.so.2 as the loader which removes one potential problem.

If it helps, I'm happy to log into your machine and have a poke around.

-- Michael



More information about the linaro-toolchain mailing list