compilation problem.

vasu
Hi...
     I was trying to compile kernel for mini2440. I got tool chain in DVD
from friendly arm...i extracted the tool chain and i got opt folder. I
exported toolchain path as below:

export ARCH=arm
export PATH=$PATH:/home/vasu/opt/FriendlyARM/toolschain/4.4.3/bin
export CROSS_COMPILE=arm-none-linux-gnueabi-

I am using core i3 with fedora 15.
when i was trying to compile the source i was getting the following error.

/home/vasu/opt/FriendlyARM/toolschain/4.4.3/bin/../libexec/gcc/arm-none-linux-gn
ueabi/4.4.3/cc1:
error while loading shared libraries: libstdc++.so.6: cannot open shared
object file: No such file or directory
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2

please suggest me the way to solve the problem.

Thanks
Vasu

Juergen Beisert
32 versus 64 bit system issue? The file command show the toolchain from the
DVD is of 32 bit type:

$ file cc1
cc1: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically
linked (uses shared libs), for GNU/Linux 2.6.9, not stripped

If you run a 64 bit host system you must install something 32 bit backward
compatible libraries (depends on the distribution you are using)

Run the 'ldd' command on 'cc1' to get a full list of libraries this
executable needs to run:

$ ldd cc1
 linux-gate.so.1 =>  (0xa77c0000)
 libcloog.so.0 => /opt/FriendlyARM/toolschain/4.4.3/lib/libcloog.so.0
 libppl_c.so.2 => /opt/FriendlyARM/toolschain/4.4.3/lib/libppl_c.so.2
 libppl.so.7 => /opt/FriendlyARM/toolschain/4.4.3/lib/libppl.so.7
 libgmpxx.so.4 => /usr/lib/libgmpxx.so.4
 libmpfr.so.1 => /usr/lib/libmpfr.so.1
 libgmp.so.3 => /usr/lib/libgmp.so.3
 libc.so.6 => /lib/libc.so.6
 libstdc++.so.6 => /usr/lib/libstdc++.so.6
 libm.so.6 => /lib/libm.so.6
 libgcc_s.so.1 => /usr/lib/libgcc_s.so.1
 /lib/ld-linux.so.2