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

Lv Terry-R65388 r65388 at freescale.com
Wed Jan 11 06:26:38 UTC 2012


Hi Michael,

	Here's the output. formatted. Sorry for last mail.

r65388 at shlinux3:~/toolchain_ltib/gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12/arm-fsl-linux-gnueabi/bin$ md5sum ./arm-linux-gnueabi-gcc 22c4ecfc01b1084856d072d4f70809ce  ./arm-linux-gnueabi-gcc
r65388 at shlinux3:~/toolchain_ltib/gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12/arm-fsl-linux-gnueabi/bin$ /lib32/ld-linux.so.2 ./arm-linux-gnueabi-gcc
arm-linux-gnueabi-gcc: fatal error: no input files compilation terminated.
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
r65388 at shlinux3:~/toolchain_ltib/gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12/arm-fsl-linux-gnueabi/bin$ LD_DEBUG=libs /lib32/ld-linux.so.2 ./arm-linux-gnueabi-gcc
     14645:     find library=libstdc++.so.6 [0]; searching
     14645:      search cache=/etc/ld.so.cache
     14645:       trying file=/usr/lib32/libstdc++.so.6
     14645:
     14645:     find library=libm.so.6 [0]; searching
     14645:      search cache=/etc/ld.so.cache
     14645:       trying file=/lib32/libm.so.6
     14645:
     14645:     find library=libpthread.so.0 [0]; searching
     14645:      search cache=/etc/ld.so.cache
     14645:       trying file=/lib32/libpthread.so.0
     14645:
     14645:     find library=libdl.so.2 [0]; searching
     14645:      search cache=/etc/ld.so.cache
     14645:       trying file=/lib32/libdl.so.2
     14645:
     14645:     find library=libgcc_s.so.1 [0]; searching
     14645:      search cache=/etc/ld.so.cache
     14645:       trying file=/usr/lib32/libgcc_s.so.1
     14645:
     14645:     find library=libc.so.6 [0]; searching
14645:      search cache=/etc/ld.so.cache
     14645:       trying file=/lib32/libc.so.6
     14645:
     14645:
     14645:     calling init: /lib32/libpthread.so.0
     14645:
     14645:
     14645:     calling init: /lib32/libc.so.6
     14645:
     14645:
     14645:     calling init: /usr/lib32/libgcc_s.so.1
     14645:
     14645:
     14645:     calling init: /lib32/libdl.so.2
     14645:
     14645:
     14645:     calling init: /lib32/libm.so.6
     14645:
     14645:
     14645:     calling init: /usr/lib32/libstdc++.so.6
     14645:
     14645:
     14645:     initialize program: ./arm-linux-gnueabi-gcc
     14645:
     14645:
     14645:     transferring control: ./arm-linux-gnueabi-gcc
     14645:
arm-linux-gnueabi-gcc: fatal error: no input files compilation terminated.
     14645:
     14645:     calling fini: ./arm-linux-gnueabi-gcc [0]
     14645:
     14645:
     14645:     calling fini: /usr/lib32/libstdc++.so.6 [0]
     14645:
     14645:
     14645:     calling fini: /lib32/libm.so.6 [0]
     14645:
     14645:
     14645:     calling fini: /lib32/libpthread.so.0 [0]
     14645:
     14645:
     14645:     calling fini: /lib32/libdl.so.2 [0]
     14645:
     14645:
     14645:     calling fini: /usr/lib32/libgcc_s.so.1 [0]
     14645:

	Thanks~~

Yours
Terry

-----Original Message-----
From: Michael Hope [mailto:michael.hope at linaro.org] 
Sent: 2012年1月11日 14:12
To: Lv Terry-R65388
Cc: linaro-toolchain at lists.linaro.org
Subject: Re: Running pre-built linaro toolchain failed on Ubuntu 11.04, 64bit server

On Wed, Jan 11, 2012 at 7:03 PM, Lv Terry-R65388 <r65388 at freescale.com> wrote:
> Hi Michael,
>
>        I remove gcc-arm-linux-gnueabi from the server and run ldd ./arm-linux-gnueabi-gcc again.
>
> r65388 at shlinux3:~/toolchain_ltib/gcc-linaro-4.6.3-glibc-2.13-singlelib
> -2011.12/arm-fsl-linux-gnueabi/bin$ ldd ./arm-linux-gnueabi-gcc
>        linux-gate.so.1 =>  (0xf773c000)
>        libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xf762f000)
>        libm.so.6 => /lib32/libm.so.6 (0xf7605000)
>        libpthread.so.0 => /lib32/libpthread.so.0 (0xf75e9000)
>        libdl.so.2 => /lib32/libdl.so.2 (0xf75e4000)
>        libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf75c6000)
>        libc.so.6 => /lib32/libc.so.6 (0xf744c000)
>        /lib/ld-lsb.so.3 => /lib/ld-linux.so.2 (0xf773d000) 
> 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
>
>        It seems arm-linux-gnueabi-gcc still can't work. But some address changed in running ldd command.

Yip, but that's due to address space randomisation.

This is quite strange.  The ldd output shows it's a executable and can resolve all of the libraries.  Could you try a few more things?


michaelh at crucis:~/linaro/binary/check/gcc-linaro-arm-linux-gnueabi-2011.12-20111219+bzr2309~linux/bin$
md5sum arm-linux-gnueabi-gcc
22c4ecfc01b1084856d072d4f70809ce  arm-linux-gnueabi-gcc

michaelh at crucis:~/linaro/binary/check/gcc-linaro-arm-linux-gnueabi-2011.12-20111219+bzr2309~linux/bin$
/lib32/ld-linux.so.2 ./arm-linux-gnueabi-gcc
arm-linux-gnueabi-gcc: fatal error: no input files compilation terminated.


michaelh at crucis:~/linaro/binary/check/gcc-linaro-arm-linux-gnueabi-2011.12-20111219+bzr2309~linux/bin$
LD_DEBUG=libs /lib32/ld-linux.so.2 ./arm-linux-gnueabi-gcc

     17090:     find library=libstdc++.so.6 [0]; searching
     17090:      search cache=/etc/ld.so.cache
     17090:       trying file=/usr/lib32/libstdc++.so.6
     17090:
     17090:     find library=libm.so.6 [0]; searching
     17090:      search cache=/etc/ld.so.cache
     17090:       trying file=/lib32/libm.so.6
     17090:
     17090:     find library=libpthread.so.0 [0]; searching
     17090:      search cache=/etc/ld.so.cache
     17090:       trying file=/lib32/libpthread.so.0
     17090:
     17090:     find library=libdl.so.2 [0]; searching
     17090:      search cache=/etc/ld.so.cache
     17090:       trying file=/lib32/libdl.so.2
     17090:
     17090:     find library=libgcc_s.so.1 [0]; searching
     17090:      search cache=/etc/ld.so.cache
     17090:       trying file=/usr/lib32/libgcc_s.so.1
     17090:
     17090:     find library=libc.so.6 [0]; searching
     17090:      search cache=/etc/ld.so.cache
     17090:       trying file=/lib32/libc.so.6
     17090:
     17090:
     17090:     calling init: /lib32/libpthread.so.0
     17090:
     17090:
     17090:     calling init: /lib32/libc.so.6
     17090:
     17090:
     17090:     calling init: /usr/lib32/libgcc_s.so.1
     17090:
     17090:
     17090:     calling init: /lib32/libdl.so.2
     17090:
     17090:
     17090:     calling init: /lib32/libm.so.6
     17090:
     17090:
     17090:     calling init: /usr/lib32/libstdc++.so.6
     17090:
     17090:
     17090:     initialize program: ./arm-linux-gnueabi-gcc
     17090:
     17090:
     17090:     transferring control: ./arm-linux-gnueabi-gcc
     17090:
arm-linux-gnueabi-gcc: fatal error: no input files compilation terminated.
     17090:

-- Michael



More information about the linaro-toolchain mailing list