OpenJDK 7 build fails on Snow Leopard

Michael Franz mvfranz at gmail.com
Thu Oct 1 04:12:23 PDT 2009


Snow Leopard has gcc-4.0 and gcc-4.2.  You can switch for the build by
specifying CC=gcc-4.0 and CXX=g++-4.0 before/when calling make.

On Thu, Oct 1, 2009 at 3:16 AM, John Rose <John.Rose at sun.com> wrote:

> 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?
>
> -- John
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/bsd-port-dev/attachments/20091001/18abe7ce/attachment.html 


More information about the bsd-port-dev mailing list