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

David Wuertele dave at rokulabs.com
Fri Jan 23 21:50:59 UTC 2004

Maciej>  *Host executables*, please -- why is there so much confusion
Maciej> about that?  Have you actually specified
Maciej> "--target=mipsel-linux" rather than "--host=mipsel-linux"?
Maciej> The notion of a target has any meaning only for tools like
Maciej> compilers.

I usually specify both --target=mipsel-linux and --host=mipsel-linux,
because I find that some autoconf packages (NOT COMPILERS, yes, I
understand the difference) only cross-compile properly with --target,
while other packages only work with --host.  In this case, I specified

Maciej>  It looks like a validator for a structure layout established
Maciej> by the compiler.  As such it's not usable when
Maciej> cross-compiling; perhaps an approach similar to current
Maciej> autoconf's AC_CHECK_SIZEOF could be exploited, but that might
Maciej> not actually be worth the hassle.

I ran the ntpdc-layout program on my target, and it output the exact
same content as the layout.std file in the ntp-4.2.0 distribution.  So
I know that I'm safe with the defaults, but the same can't necessarily
be said for other platforms.

Maciej> With it I've just successfully built ntp 4.2.0 for the
Maciej> mipsel-linux host :-) using an i386-linux build system.  Good
Maciej> luck.

Worked great, and was educational.  Thank you for the patch!


More information about the questions mailing list