[ntp:questions] cross compiling ntp-4.2.0: ./ntpdc-layout: cannot execute binary file

David Wuertele dave-gnus at bfnet.com
Fri Jan 23 18:32:22 UTC 2004


I'm trying to cross-compile ntp.  But during the compile, the
makefiles attempt to run one of the target executables.  This
executable ("ntpdc-layout") was compiled with the cross-compiler, so
it obviously won't execute:

  mipsel-linux-gcc  -g -O2 -Wall -Wcast-qual -Wmissing-prototypes -Wpointer-arith -Wshadow -Wstrict-prototypes   -o ntpdc-layout  ntpdc-layout.o  
  ./ntpdc-layout > layout.here
  /bin/sh: line 1: ./ntpdc-layout: cannot execute binary file
  make[3]: *** [layout.here] Error 126
  make[3]: Leaving directory `/home/dave/C/perforce/thirdparty/www.ntp.org/ntp-4.2.0/ntpdc'

I couldn't find any documentation about ntpdc-layout.  Is there a way
to configure the ntp build so that it doesn't try to execute
ntpdc-layout?  I'm not expert enough with autoconf to teach it how to
use the native compiler for some programs and the cross compiler for
others.

Dave




More information about the questions mailing list