OpenJDK 7 build fails on Snow Leopard
John.Rose at Sun.COM
Thu Oct 1 00:16:12 PDT 2009
Here's a patch which addresses the printf-format problem. The root
cause appears to be that GCC 4.2 has gotten a little smarter about
handing out portability warnings. It objects to passing a "long int"
to a "%d". The patch attempts to pacify the compiler by changing "%d"
to "%ld", on 32-bit systems only.
With this patch, both normal 32-bit and LP64 versions build on Snow
Leopard, and the LP64 version runs my warm-and-breathing tests.
But the 32-bit binary crashes in at least two different places, and
probably in lots. Smells like a GCC bug; yuck. Can someone clue me
how to install an earlier known-good GCC on Snow Leopard?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1318 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/bsd-port-dev/attachments/20091001/df8105e5/snowleopard.patch.zip
More information about the bsd-port-dev