Building GMP for ARM AT91SAM7

Michał spock2 at o2.pl
Thu May 14 13:18:07 CEST 2009


Hello,

I added "make clean" before "make" and now "make check" finishes but 
with the following message:

...
make  check-TESTS
make[4]: Entering directory `/home/spock/Desktop/gmp-4.3.0/tests'
/bin/bash: line 8: ./t-bswap: cannot execute binary file
FAIL: t-bswap
/bin/bash: line 8: ./t-constants: cannot execute binary file
FAIL: t-constants
/bin/bash: line 8: ./t-count_zeros: cannot execute binary file
FAIL: t-count_zeros
/bin/bash: line 8: ./t-gmpmax: cannot execute binary file
FAIL: t-gmpmax
/bin/bash: line 8: ./t-hightomask: cannot execute binary file
FAIL: t-hightomask
/bin/bash: line 8: ./t-modlinv: cannot execute binary file
FAIL: t-modlinv
/bin/bash: line 8: ./t-popc: cannot execute binary file
FAIL: t-popc
/bin/bash: line 8: ./t-parity: cannot execute binary file
FAIL: t-parity
/bin/bash: line 8: ./t-sub: cannot execute binary file
FAIL: t-sub
==================================
9 of 9 tests failed
Please report to gmp-bugs at swox.com
==================================
make[4]: *** [check-TESTS] Error 1
make[4]: Leaving directory `/home/spock/Desktop/gmp-4.3.0/tests'
make[3]: *** [check-am] Error 2
make[3]: Leaving directory `/home/spock/Desktop/gmp-4.3.0/tests'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory `/home/spock/Desktop/gmp-4.3.0/tests'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/spock/Desktop/gmp-4.3.0'
make: *** [check] Error 2

What does it exactly mean?

Kind Regards
Michal


Torbjorn Granlund pisze:
> Michał <spock2 at o2.pl> writes:
>
>   I am trying to build GMP library for ARM AT91SAM7 microcontroller
>   (stand alone without linux). I am working on ubuntu and I have already
>   installed GNU ARM toolchain.
>   
>   ./configure --build=athlon64-pc-linux-gnu --host=arm-elf
>   
>   Finishes without errors but when I execute make, I get following errors:
>   
>   tmp-add_n.s: Assembler messages:
>   tmp-add_n.s:58: Error: no such instruction: `stmfd r13!,{r8,r9,r14}'
>   tmp-add_n.s:59: Error: too many memory references for `movs'
>   tmp-add_n.s:60: Error: no such instruction: `bcc .Lskip1'
>   tmp-add_n.s:61: Error: no such instruction: `ldr r12,[r1],'
>   tmp-add_n.s:62: Error: no such instruction: `ldr r14,[r2],'
>   ...
>   Does anyone have any idea what can cause such kind of problem?
>   
> ARM assembly chokes an athlon64 assembly.  You need to set up a cross
> compilation environment (presumably this is what you call GNU ARM
> toolchain), and point GMP to its tools.  GMP will not always
> automatically be able to guess the ARM tools path.
>
> See also the section in the GMP manual about cross compilation.
>
>   



More information about the gmp-discuss mailing list