+++ Anil Singhar [2013-11-12 18:44 +0530]: > Hi, > > I am trying to cross compile a package wi the following steps. The build > goes fine except that when I try to run the same on the foundation model > it doesn't work. Here are all the steps in details: > > 1. Installed the linaro gcc and set up the environment as follows: > > ------------------------------------------------------------------------------------------------ > export > > AARCH64_TOOLCHAIN=/home/anilss/Linaro/tools/gcc-linaro-aarch64-linux-gnu-4.7-2013.04-20130415_linux/bin > export PATH=$PATH:$AARCH64_TOOLCHAIN > export ARCH=aarch64 > export CROSS_COMPILE=aarch64-linux-gnu- > > 2. Now on my build machine (x86_64 machine running linux), from source > root of the package (i.e. GMP) I want to cross compile: > anilss@anilss:~/Linaro/pkgs/gmp/cross_arm64/gmp-5.1.3-aarch64$./configure > --build=coreisbr-unknown-linux-gnu --host=aarch64-linux-gnu > --target=aarch64-linux-gnu > anilss@anilss:~/Linaro/pkgs/gmp/cross_arm64/gmp-5.1.3-aarch64$make > > 3. Then On the foundation model, where the above source tree is mounted, I > do: > $ make check > > However this fails.
You have to say _how_ it fails for anyone to have any chance of helping. > Any ideas on what is going wrong..? > Also is the triplet correct for host and foundation model (running oe > linux)? Maybe. Not sure what a coreisbr-unknown-linux-gnu is. Here is a build log from an (ubuntu) gmp cross-build which might give some clues: http://people.linaro.org/~wookey/buildd/quantal-arm64/sbuild-ma/gmp_2:5.0.2+dfsg-2ubuntu2arm64-quantal-bootstrap-arm64-20121117-234708.6930.log where the configure line was: ../configure --prefix=/usr --enable-cxx --enable-fat --build x86_64-linux-gnu --host aarch64-linux-gnu --target aarch64-linux-gnu --libdir=/usr/lib/aarch64-linux-gnu \ AR=aarch64-linux-gnu-ar CC="aarch64-linux-gnu-gcc" CFLAGS="-Wall -g -O3 -Wa,--defsym,USES_THUMB=1" \ CXX="aarch64-linux-gnu-g++" CXXFLAGS="" There are probably some OE crossbuild logs online somewhere you could compare with too, which would be more directly relevant. Wookey -- Principal hats: Linaro, Emdebian, Wookware, Balloonboard, ARM http://wookware.org/ _______________________________________________ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev