[Q] Endian-ness checks when cross-compiling

Edwin Foo efoo at MIT.EDU
Fri Jun 12 12:26:57 PDT 1998


>Uum, which version of kaffe are you talking? I'm also using cross
>compiler with kaffe-0.10.0 but detecting endian has no problem.

I'm using kaffe-0.10.0 -- actually, a kaffe-snap.tar.gz downloaded on 6/6/98.

As far as I can tell, the configure script for this section reads as follows:

if test $ac_cv_c_bigendian = unknown; then
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross
compiling" 1>&2; exit 1; }
else
  <... text of conftest.c follows for testing endianess ... >

It gets to this point after trying some other methods of determining
endianness (namely, is BIG_ENDIAN defined by the compiler?) and fails.
Since ac_cv_c_bigendian is still unknown, it then trys to compile and run a
test program to find out, and if it's a cross compiler, it just dumps out
with the above error message. So, the combination of these two things make
the configure script fail for my invokation.

-Edwin


------------------------------------------------------------------------
Edwin Foo        | MIT Computer Science '98 - Systems and Architecture
efoo at mit.edu     | DEC Cambridge Research Lab - Scalable Computing Group
(617) 225-9715   | Residential Computing Consultant (RCC) Developer

       "Love must be sincere; Hate what is evil; cling to what is good."
http://hesed.mit.edu/~efoo                       - Romans 12:9 <><
------------------------------------------------------------------------


More information about the kaffe mailing list