another hotspot build failure
Alexander Strange
astrange at apple.com
Tue Aug 3 12:13:52 PDT 2010
On Aug 3, 2010, at 7:37 AM, Stephen Bannasch wrote:
> I got this error trying to build last night on MacOS 10.6.4:
>
> cc1plus: warnings being treated as errors
> /Users/stephen/dev/java/src/bsd/hotspot/src/share/vm/services/attachListener.cpp: In function 'jint set_uint64_t_flag(const
> char*, AttachOperation*, outputStream*)':
> /Users/stephen/dev/java/src/bsd/hotspot/src/share/vm/services/attachListener.cpp:265: warning: format '%lu' expects type 'long
> unsigned int*', but argument 3 has type 'uint64_t*'
> […]
Here's a patch that fixes that.
The basic problem is that systems tend to vary at random in between using 'long' and 'long long' defining uint64_t, intptr_t, jlong, etc. This (hopefully) doesn't affect programs, but does break -Wformat -Werror.
This was the shortest way I found to get it working on 10.6.4 across x86-32 and -64, but it's based on a somewhat older revision of hotspot. Some assembly might be required.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/bsd-port-dev/attachments/20100803/fe9607c6/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compile_Wformat
Type: application/octet-stream
Size: 3045 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/bsd-port-dev/attachments/20100803/fe9607c6/compile_Wformat.obj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/bsd-port-dev/attachments/20100803/fe9607c6/attachment-0001.html
More information about the bsd-port-dev
mailing list