On Sun, Dec 7, 2008 at 4:26 PM, Charles Oliver Nutter <span dir="ltr"><<a href="mailto:charles.nutter@sun.com" target="_blank">charles.nutter@sun.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Ben Evans wrote:<br><br>
> I'm a bit out of my depth here, and someone should definitely check my<br>
> assertion that the patches to array.hpp, debug.cpp, etc really don't<br>
> need to be applied against the bsd-port tree.<br>
><br>
> I'm going to post this same compile fail to the bsd-port-dev list as<br>
> well - anyone else got any ideas?<br>
<br>
</div>At a glance it almost looks like it's doubling something else up...some<br>
code that already exists elsewhere (in that file or in another file)<br>
getting applied and conflicting. Can you search for some of those redefs<br>
and see if maybe it's another piece that exists already?<br>
</blockquote><div><br>OK, looking at this last part of the error:<br><br>
/Users/boxcat/projects/jdk7-<div>b40-bsd/sources/hotspot/src/cpu/x86/vm/interp_masm_x86_32.hpp: In member function 'void InterpreterMacroAssembler::empty_expression_stack()':<br>/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/cpu/x86/vm/interp_masm_x86_32.hpp:123: error: call of overloaded 'movptr(Address, int)' is ambiguous<br>
/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/cpu/x86/vm/assembler_x86.hpp:2099: note: candidates are: void MacroAssembler::movptr(Address, intptr_t)<br>/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/cpu/x86/vm/assembler_x86.hpp:2101: note: void MacroAssembler::movptr(Address, RegisterImpl*)<br>
make[6]: *** [incls/_precompiled.incl.gch] Error 1<br>make[5]: *** [the_vm] Error 2<br>make[4]: *** [product] Error 2<br>make[3]: *** [generic_build2] Error 2<br>make[2]: *** [product] Error 2<br>make[1]: *** [hotspot-build] Error 2<br>
make: *** [build_product_image] Error 2</div> <br>I think this is the same as a build issue reported on the bsd-port-dev list. My understanding is that the underlying issue is that OpenJDK codebase assumes that int32_t and intptr_t are the same, whereas OS X has intptr_t as a 64-bit quantity.<br>
</div></div>
<br>Once this is fixed, it may resolve more of the errors above it in the error trace I posted.<br><br>Thanks,<br><br>Ben<br>