하드웨어
32bit 시스템에서 잘 동작하든 toolchain을 64bit 시스템으로 바꾼 후 빌드가 되지 않을 때 다음과 같이 하시면 됩니다.
[에러메세지]
root@tsheaven-H67H2-M3:bin# ./arm-fsl-linux-gnueabi-gcc -v
bash: ./arm-fsl-linux-gnueabi-gcc: 그런 파일이나 디렉터리가 없습니다
root@tsheaven-H67H2-M3:bin#
root@tsheaven-H67H2-M3:bin# file arm-fsl-linux-gnueabi-gcc
arm-fsl-linux-gnueabi-gcc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.0, stripped
[해결방법]
root@tsheaven-H67H2-M3:bin# sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0
root@tsheaven-H67H2-M3:bin# ./arm-fsl-linux-gnueabi-gcc -v
Using built-in specs.
COLLECT_GCC=./arm-fsl-linux-gnueabi-gcc
COLLECT_LTO_WRAPPER=/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/../libexec/gcc/arm-fsl-linux-gnueabi/4.6.2/lto-wrapper
Target: arm-fsl-linux-gnueabi
Configured with: /work/build/.build/src/gcc-linaro-4.6-2011.06-0/configure --build=i686-build_pc-linux-gnu --host=i686-build_pc-linux-gnu --target=arm-fsl-linux-gnueabi --prefix=/work/fsl-linaro-toolchain-2.13 --with-sysroot=/work/fsl-linaro-toolchain-2.13/arm-fsl-linux-gnueabi/multi-libs --enable-languages=c,c++ --with-pkgversion='Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:20' --enable-__cxa_atexit --disable-libmudflap --disable-libgomp --disable-libssp --with-gmp=/work/build/.build/arm-fsl-linux-gnueabi/build/static --with-mpfr=/work/build/.build/arm-fsl-linux-gnueabi/build/static --with-mpc=/work/build/.build/arm-fsl-linux-gnueabi/build/static --with-ppl=/work/build/.build/arm-fsl-linux-gnueabi/build/static --with-cloog=/work/build/.build/arm-fsl-linux-gnueabi/build/static --with-libelf=/work/build/.build/arm-fsl-linux-gnueabi/build/static --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm -L/work/build/.build/arm-fsl-linux-gnueabi/build/static/lib -lpwl' --enable-threads=posix --enable-target-optspace --enable-plugin --enable-multilib --with-local-prefix=/work/fsl-linaro-toolchain-2.13/arm-fsl-linux-gnueabi/multi-libs --disable-nls --enable-c99 --enable-long-long --with-system-zlib
Thread model: posix
gcc version 4.6.2 20110630 (prerelease) (Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:20)
root@tsheaven-H67H2-M3:bin#
아래의 링크에서 한가지 더 패치를 해 주셔야 합니다.
http://forum.falinux.com/zbxe/index.php?document_srl=832248&mid=hardware