Build gmp (version >= 6.0.0a) on iPad mini 3

Marc Glisse marc.glisse at inria.fr
Tue Oct 6 19:26:58 UTC 2015


On Sat, 3 Oct 2015, Ludwig von Mises wrote:

> I have already successfully built gcc-5.2.0 (with gmp 6.0.0a, mpfr 3.1.2,
> mpc 1.0.3, isl 0.14 and cloog 0.18.4) on mac os X and various linux OS'se
> (ubuntu 15.04 64 bits, Trisquel 7 64bits...)
>
> I was tasked to fully build gcc 5.2 on iPad mini 3 (jailbroken, of course),
> so that I had to start with gmp's build. To start, I ran gcc's config.guess
> script which showed "arm64-apple-darwin14.0.0" to me. This (rightly)
> worried me a bit. Nevertheless I did
>
> curl -kO https://ftp.gnu.org/gnu/gmp/gmp-6.0.0a.tar.bz2
>
> tar -xjvf gmp-6.0.0a.tar.bz2
>
> cd gmp-6.0.0
>
> mkdir build && cd build
>
> ../configure --prefix=/usr/local/lvm/gmp-6.0.0 --enable-cxx
>
> which shout at me the following :
>
> checking build system type... Invalid configuration
> `arm64-apple-darwin14.0.0': machine `arm64-apple' not recognized
>
> configure: error: /bin/sh ../config.sub arm64-apple-darwin14.0.0 failed

If that's what you are getting, the problem seems to be directly with the 
upstream FSF config.guess / config.sub (renamed configfsf.guess and 
configfsf.sub in GMP). The files contain instructions on submitting 
patches, I don't see much more on http://savannah.gnu.org/projects/config 
.

> Would anyone have an idea on how to proceed ?

The whole bit about building a compiler confused me. I assume you already 
have a compiler on your ipad if you are trying to compile GMP natively on 
it?

-- 
Marc Glisse


More information about the gmp-discuss mailing list