I solved this (and other errors) by changing globalDefinitions.hpp. I am not sure if they are correct, but it allowed me to compile on Snow Leopard.
--- hotspot/src/share/vm/utilities/globalDefinitions.hpp.orig 2009-09-13 20:59:21.000000000 -0400 +++ hotspot/src/share/vm/utilities/globalDefinitions.hpp 2009-09-13 20:59:39.000000000 -0400 @@ -1105,6 +1105,8 @@ // Format 32-bit quantities. #define INT32_FORMAT "%d" #define UINT32_FORMAT "%u" +#define LONG_FORMAT "%ld" +#define ULONG_FORMAT "%lu" #define INT32_FORMAT_W(width) "%" #width "d" #define UINT32_FORMAT_W(width) "%" #width "u" @@ -1146,10 +1148,17 @@ #define SIZE_FORMAT UINT64_FORMAT #define SSIZE_FORMAT INT64_FORMAT #else // !_LP64 +#ifdef __APPLE__ +#define PTR_FORMAT LONG_FORMAT +#define UINTX_FORMAT ULONG_FORMAT +#define INTX_FORMAT LONG_FORMAT +#define SIZE_FORMAT LONG_FORMAT +#else #define PTR_FORMAT PTR32_FORMAT #define UINTX_FORMAT UINT32_FORMAT #define INTX_FORMAT INT32_FORMAT #define SIZE_FORMAT UINT32_FORMAT +#endif #define SSIZE_FORMAT INT32_FORMAT #endif // _LP64 Michael On Sat, Sep 12, 2009 at 7:53 PM, Andrew John Hughes < gnu_and...@member.fsf.org> wrote: > 2009/9/12 Michael Franz <mvfr...@gmail.com>: > > vsrikarunyan, > > > > Did this solve your problem? It got me past the original error, but I am > > not getting : > > hotspot/src/share/vm/runtime/arguments.cpp: In static member function > > 'static void Arguments::set_aggressive_opts_flags()': > > hotspot/src/share/vm/runtime/arguments.cpp:1375: warning: format '%d' > > expects type 'int', but argument 3 has type 'intx' > > make[7]: *** [arguments.o] Error 1 > > > > I guess this might be a gcc 4.2 vs 4.0 issue rather than Snow Leopard > issue. > > >