gmp-5.0.1 failure to compile on i686 using --host=arm-cortex_a8-linux-gnu

adriancant at adriancant at
Fri Dec 30 06:22:40 CET 2011

Please could someone inform me as to how to overcome the failure of my
attempts to compile gmp for an arm machine.

i have attempted to build using a cross compiler but the build fails
with, "Specified HOST_CC doesn't seem to work".

it appears that the configure script is attempting to run a host arm
a.out binary on the i686 build machine with the code from the configure
script below giving an expected error of :
./configure: line 9519: ./a.out: cannot execute binary file

Is this a bug or am i missing something? I have attached the config.log

cat >conftest.c <<EOF
main ()
gmp_compile="$HOST_CC conftest.c"
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}:
\"$gmp_compile\""; } >&5 (eval $gmp_compile) 2>&5
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5
2>&1; then cc_for_build_works=yes

adriancant at

-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: text/x-log
Size: 28107 bytes
Desc: not available
URL: <>

More information about the gmp-bugs mailing list