title: Configuration aarch64-apple-darwin supported by gmp, mpfr and mpc but not by gcc-5.2.0
body: <p>I am under mac OSX, using apple's <code>clang</code>/<code>clang++</code> and am cross building various libraries for iOS8.4. The main goal is to cross build <code>gcc-5.2.0</code> for iOS8.4, so that I have to build at least <code>gmp</code>, <code>mpfr</code> and <code>mpc</code>.</p>
  
  <p>I built <code>gmp</code> (last snapshot at the time this question is written) as follows :</p>
  
  <pre><code>../configure --prefix=/usr/local/GNU-CROSS/gmp-6.1.0/ CC="clang -fembed-bitcode -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk -Wno-error -Wno-implicit-function-declaration -mios-version-min=8.4 -no-integrated-as -arch arm64 -target arm64-apple-darwin" CPP="clang -E" CPPFLAGS="-fembed-bitcode -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk -Wno-error -Wno-implicit-function-declaration -mios-version-min=8.4 -no-integrated-as -arch arm64 -target arm64-apple-darwin" --host=aarch64-apple-darwin --disable-assembly --enable-static --disable-shared
  make -j 4
  sudo make install
  </code></pre>
  
  <p>I built <code>mpfr-3.1.3</code> as follows :</p>
  
  <pre><code>../configure --prefix=/usr/local/GNU-CROSS/mpfr-3.1.3 CC="clang -fembed-bitcode -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk -Wno-error -Wno-implicit-function-declaration -mios-version-min=8.4 -no-integrated-as -arch arm64 -target arm64-apple-darwin" CPP="clang -E" CPPFLAGS="-fembed-bitcode -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk -Wno-error -Wno-implicit-function-declaration -mios-version-min=8.4 -no-integrated-as -arch arm64 -target arm64-apple-darwin" --with-gmp=/usr/local/GNU-CROSS/gmp-6.1.0/ --host=aarch64-apple-darwin --disable-assembly --enable-static --disable-shared
  make -j 4
  sudo make install
  </code></pre>
  
  <p>and <code>mpc-1.0.3</code> as follows :</p>
  
  <pre><code>LD_LIBRARY_PATH=/usr/local/GNU-CROSS/gmp-6.1.0/lib/:/usr/local/GNU-CROSS/mpfr-3.1.3/lib/ ../configure --prefix=/usr/local/GNU-CROSS/mpc-1.0.3 CC="clang -fembed-bitcode -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk -Wno-error -Wno-implicit-function-declaration -mios-version-min=8.4 -no-integrated-as -arch arm64 -target arm64-apple-darwin" CPP="clang -E" CPPFLAGS="-fembed-bitcode -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk -Wno-error -Wno-implicit-function-declaration -mios-version-min=8.4 -no-integrated-as -arch arm64 -target arm64-apple-darwin" --with-gmp=/usr/local/GNU-CROSS/gmp-6.1.0/ --with-mpfr=/usr/local/GNU-CROSS/mpfr-3.1.3/ --host=aarch64-apple-darwin --disable-assembly --enable-static --disable-shared
  LD_LIBRARY_PATH=/usr/local/GNU-CROSS/gmp-6.1.0/lib/:/usr/local/GNU-CROSS/mpfr-3.1.3/lib/ make -j 4
  sudo make install
  </code></pre>
  
  <p>Now, I am trying to build <code>gcc-5.2.0</code>as follows :</p>
  
  <pre><code>LD_LIBRARY_PATH=/usr/local/GNU-CROSS/gmp-6.1.0/lib/:/usr/local/GNU-CROSS/mpfr-3.1.3/lib/:/usr/local/GNU-CROSS/mpc-1.0.3/lib/ ../configure --prefix=/usr/local/GNU-CROSS/gcc-5.2.0 CC="clang -fembed-bitcode -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk -Wno-error -Wno-implicit-function-declaration -mios-version-min=8.4 -no-integrated-as -arch arm64 -target arm64-apple-darwin" CPP="clang -E" CPPFLAGS="-fembed-bitcode -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk -Wno-error -Wno-implicit-function-declaration -mios-version-min=8.4 -no-integrated-as -arch arm64 -target arm64-apple-darwin" --enable-checking=release --with-gmp=/usr/local/GNU-CROSS/gmp-6.1.0/ --with-mpfr=/usr/local/GNU-CROSS/mpfr-3.1.3/ --with-mpc=/usr/local/GNU-CROSS/mpc-1.0.3/ --host=aarch64-apple-darwin --disable-assembly --enable-static --disable-shared
  LD_LIBRARY_PATH=/usr/local/GNU-CROSS/gmp-6.1.0/lib/:/usr/local/GNU-CROSS/mpfr-3.1.3/lib/:/usr/local/GNU-CROSS/mpc-1.0.3/lib/ make -j 4
  </code></pre>
  
  <p>and have <code>Configuration aarch64-apple-darwin not supported</code>. Too bad.</p>
  
  <p>What can I do ? This configuration is supported by <code>gmp</code>, <code>mpfr</code> and <code>mpc</code> but not by <code>gcc-5.2.0</code>. Is there another close configuration that I could use instead ? Like arm*-none-* or aarch64-none-* ?</p>
  
  <p><em>Remark.</em> I tried <code>armv7</code> instead of <code>arm64</code> and <code>aarch64</code>, same result : <code>Configuration armv7-apple-darwin not supported</code>...</p>