Hi Michael,
Here's the output.
r65388@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@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@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@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@linaro.org] Sent: 2012年1月11日 14:12 To: Lv Terry-R65388 Cc: linaro-toolchain@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@freescale.com wrote:
Hi Michael,
I remove gcc-arm-linux-gnueabi from the server and run ldd ./arm-linux-gnueabi-gcc again.
r65388@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@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@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@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@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