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