build the kernel

2716 ワード

On 11/20/2010 01:41 PM, Stuart Hughes wrote:
Hi Rob,

Unfortunately I'm short of time so I can't go back and look in detail,
but I recall someone posting a similar issue recently.

I think the issue was that the toolchains are 32 bit and unless you have
the 32bit compatibility libs installed on a 64bit Linux distro, you get
this failure.

Please search the mailing list archives, I'm pretty sure I saw this.
Yes it's been seen before.  If the output of "file
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc", shows something like:/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs)... And you're running on Ubuntu/Debian, try "sudo apt-get install ia32-libs"to install 32-bit versions of the host libraries that link to your 32-bit executable, and allow it to run on x64 systems.
Regards, Stuart

Rob Savoye wrote:
I'm having the same problem using ltib from CVS and also with
L2.6.31_10.08.01_SDK. After fixing one problem with mtd-utils (removed
-Werror from the Makefile). I repeated this from scratch twice, so
unless I'm dong something wrong repeatedly, there is a problem. The
older snapshot built just fine. Basically after ./ltib -m config, I get
stopped with this message:

./ltib
sh:
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc:
not found

I get the same problem with gcc 4.4.3. So the file it's trying to
execute exists, but it won't execute.

address@hidden:/opt/ltib$  file
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc


/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc:
ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically
linked (uses shared libs), for GNU/Linux 2.2.5, not stripped

address@hidden:/opt/ltib$
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc
-v

-bash:
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc:
No such file or directory

With -v, I should get some debug output, so I assume the gcc executable
is non functional. This is on a x86_64 Ubuntu 11.04 system. Maybe I'm
just missing something, I'm more used to the traditional GNU style of
cross compiling.

        - rob -