Bug while compiling libgcj under AIX

Andrew Pinski pinskia@physics.uc.edu
Mon Jan 5 16:50:00 GMT 2004


On Jan 5, 2004, at 08:39, Dean Hill wrote:
> If this fix is not made, then you get a fastjar executable that runs, 
> but it will think all jar files are invalid because the jar 
> header/signature is interpreted as little endian.

You are trying to build libgcj with GCC 3.3.x or before, right?

This problem should have been fixed on the mainline, I build all the 
time on powerpc-apple-darwin7.2.0 which is a big endian and config.h 
contains:

/* whether byteorder is bigendian */
#define WORDS_BIGENDIAN 1

/* Define if the host machine stores words of multi-word integers in
    big-endian order. */
#define HOST_WORDS_BIG_ENDIAN 1


Patch which fixed this problem:
2002-11-23  H.J. Lu <hjl@gnu.org>

         * acinclude.m4: Include ../config/accross.m4.
         (gcc_AC_COMPILE_CHECK_SIZEOF): Removed.
         (gcc_AC_EXAMINE_OBJECT): Removed.
         (gcc_AC_C_COMPILE_ENDIAN): Removed.
         * aclocal.m4; Rebuild.

         * configure.in: Replace AC_C_BIGENDIAN with 
AC_C_BIGENDIAN_CROSS.
         Replace AC_CHECK_SIZEOF with AC_COMPILE_CHECK_SIZEOF.
         * configure: Likewise.

Thanks,
Andrew Pinski



More information about the Java mailing list