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

adriancant at hotmail.co.uk adriancant at hotmail.co.uk
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
int
main ()
{
  exit(0);
}
EOF
gmp_compile="$HOST_CC conftest.c"
cc_for_build_works=no
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}:
\"$gmp_compile\""; } >&5 (eval $gmp_compile) 2>&5
  ac_status=$?
  $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
  fi
fi

adriancant at hotmail.co.uk

-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: text/x-log
Size: 28107 bytes
Desc: not available
URL: <http://gmplib.org/list-archives/gmp-bugs/attachments/20111230/27d0ca1d/attachment-0001.bin>


More information about the gmp-bugs mailing list