Running pre-built linaro toolchain failed on Ubuntu 11.04, 64bit server
Javier Martinez Canillas
martinez.javier at gmail.com
Thu Jan 12 06:10:18 UTC 2012
On Thu, Jan 12, 2012 at 12:28 AM, 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!
>
Hello,
Not sure if is a useful information but I had a similar error message
on a Fedora16 x86_64 box. But now after installing the Linux Standard
Base (LSB) and LSB 32 compatibility packages is working well.
$ yum install redhat-lsb
$ yum install redhat-lsb.i686
Best regards,
--
Javier Martínez Canillas
(+34) 682 39 81 69
Barcelona, Spain
More information about the linaro-toolchain
mailing list