Hi Wookey,

Thanks for your response. Here is the error I get when I do the "make
check" step on the foundation model after having done the "configure" and
"make" steps on the x86_64 linux build machine. I used the configure
options you provided.

1. On x86_64 linux build machine:
---------------------------------------------------
$./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=""
$make
. . .
build goes fine with the following final lines in the output:
. . .
f.o printf/snprntffuns.o printf/sprintf.o printf/sprintffuns.o
printf/vasprintf.o printf/vfprintf.o printf/vprintf.o printf/vsnprintf.o
printf/vsprintf.o printf/repl-vsnprintf.o scanf/doscan.o scanf/fscanf.o
scanf/fscanffuns.o scanf/scanf.o scanf/sscanf.o scanf/sscanffuns.o
scanf/vfscanf.o scanf/vscanf.o scanf/vsscanf.o rand/rand.o rand/randclr.o
rand/randdef.o rand/randiset.o rand/randlc2s.o rand/randlc2x.o
rand/randmt.o rand/randmts.o rand/rands.o rand/randsd.o rand/randsdui.o
rand/randbui.o rand/randmui.o
libtool: link: aarch64-linux-gnu-ranlib .libs/libgmp.a
libtool: link: rm -fr .libs/libgmp.lax
libtool: link: ( cd ".libs" && rm -f "libgmp.la" && ln -s "../libgmp.la" "
libgmp.la" )
make[2]: Leaving directory
`/home/anilss/Linaro/pkgs/gmp/cross_arm64/gmp-5.1.3-aarch64'
make[1]: Leaving directory
`/home/anilss/Linaro/pkgs/gmp/cross_arm64/gmp-5.1.3-aarch64
$
--------------------------------------------------
2. On Foundation Model I encounter the following errors when doing "make
check"
-------------------------------------------------
root@genericarmv8:~/anilss/pkgs/gmp/cross_arm64/gmp-5.1.3-aarch64# make
check
make  check-recursive
make[1]: Entering directory
`/home/root/anilss/pkgs/gmp/cross_arm64/gmp-5.1.3-aarch64'
Making check in tests
make[2]: Entering directory
`/home/root/anilss/pkgs/gmp/cross_arm64/gmp-5.1.3-aarch64/tests'
Making check in .
make[3]: Entering directory
`/home/root/anilss/pkgs/gmp/cross_arm64/gmp-5.1.3-aarch64/tests'
make  libtests.la t-bswap t-constants t-count_zeros t-gmpmax t-hightomask
t-modlinv t-popc t-parity t-sub
make[4]: Entering directory
`/home/root/anilss/pkgs/gmp/cross_arm64/gmp-5.1.3-aarch64/tests'
/bin/bash ../libtool --tag=CC   --mode=compile aarch64-linux-gnu-gcc
-std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I..    -O2 -pedantic
-fomit-frame-pointer -march=armv8-a -mtune=generic -c -o memory.lo memory.c
libtool: compile:  aarch64-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I.
-I.. -I.. -O2 -pedantic -fomit-frame-pointer -march=armv8-a -mtune=generic
-c memory.c  -fPIC -DPIC -o .libs/memory.o
*../libtool: line 1128: aarch64-linux-gnu-gcc: command not found*
make[4]: *** [memory.lo] Error 1
make[4]: Leaving directory
`/home/root/anilss/pkgs/gmp/cross_arm64/gmp-5.1.3-aarch64/tests'
make[3]: *** [check-am] Error 2
make[3]: Leaving directory
`/home/root/anilss/pkgs/gmp/cross_arm64/gmp-5.1.3-aarch64/tests'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory
`/home/root/anilss/pkgs/gmp/cross_arm64/gmp-5.1.3-aarch64/tests'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory
`/home/root/anilss/pkgs/gmp/cross_arm64/gmp-5.1.3-aarch64'
make: *** [check] Error 2
root@genericarmv8:~/anilss/pkgs/gmp/cross_arm64/gmp-5.1.3-aarch64#

Thanks and Regards,
Anil



On 12 November 2013 19:20, Wookey <woo...@wookware.org> wrote:

> +++ 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
>
_______________________________________________
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev

Reply via email to