On Sat, Dec 6, 2008 at 12:47 PM, Ben Evans <span dir="ltr">&lt;<a href="mailto:benjamin.john.evans@googlemail.com">benjamin.john.evans@googlemail.com</a>&gt;</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 class="Ih2E3d">On Fri, Dec 5, 2008 at 9:32 PM, Charles Oliver Nutter <span dir="ltr">&lt;<a href="mailto:charles.nutter@sun.com" target="_blank">charles.nutter@sun.com</a>&gt;</span> wrote:<br></div><div class="gmail_quote">
<div class="Ih2E3d"><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>
&gt; OK, so I have 2 separate source trees, one which is b38, which does not<br>
&gt; have bsd-specific source in it, and one which is b33 with bsd ported code.<br>
&gt;<br>
&gt; So, essentially I&#39;m trying to apply the patches from b38 to a b33 tree.<br>
&gt; Is this a wise thing to do, or should I be asking if anyone else on the<br>
&gt; bsd-port-dev group has got a more up to date code tree building on OS X?<br>
<br>
</div>I&#39;m in the same boat as you. I tried a few different ways to get the<br>
MLVM patches to apply to the BSD ported OpenJDK and simply couldn&#39;t make<br>
it go. There&#39;s files that don&#39;t exist or have moved, and significant<br>
changes to many others.</blockquote></div><div>&nbsp;<br>OK, I&#39;ve got the latest bsd-port, and am trying to apply the patches - which are failing.</div></div></blockquote><div><br>I think I&#39;m making some progress.<br>
<br>I&#39;ve got the latest bsd-port code, and I think I can make the patches apply. I get these failures:<br><br>patching file src/share/vm/utilities/array.hpp<br>Hunk #1 FAILED at 39<br>Hunk #2 FAILED at 110<br>Hunk #3 FAILED at 156<br>
Hunk #4 FAILED at 234<br>4 out of 4 hunks FAILED -- saving rejects to file src/share/vm/utilities/array.hpp.rej<br>patching file src/share/vm/utilities/debug.cpp<br>Hunk #1 FAILED at 566<br>Hunk #2 FAILED at 594<br>Hunk #3 FAILED at 620<br>
Hunk #4 FAILED at 658<br>4 out of 4 hunks FAILED -- saving rejects to file src/share/vm/utilities/debug.cpp.rej<br>patching file src/share/vm/utilities/growableArray.hpp<br>Hunk #1 FAILED at 110<br>Hunk #2 FAILED at 120<br>
Hunk #3 FAILED at 158<br>3 out of 3 hunks FAILED -- saving rejects to file src/share/vm/utilities/growableArray.hpp.rej<br>patching file src/share/vm/utilities/hashtable.cpp<br>Hunk #1 FAILED at 42<br>Hunk #2 FAILED at 52<br>
2 out of 2 hunks FAILED -- saving rejects to file src/share/vm/utilities/hashtable.cpp.rej<br>patch failed to apply<br><br>But on examining those .rej files and the source trees, it seems that those patch hunks have already been applied in the bsd-port code, so I don&#39;t think they need to be re-applied by the patch.<br>
<br>I&#39;m trying to build via:<br><br>make ALT_JDK_IMPORT_PATH=/usr/local/soylatte16-i386-1.0.3 ALT_BOOTDIR=/usr/local/soylatte16-i386-1.0.3 ALT_BINARY_PLUGS_PATH=$HOME/jdk-7-icedtea-plugs ALT_FREETYPE_HEADERS_PATH=/usr/X11R6/include ALT_FREETYPE_LIB_PATH=/usr/X11R6/lib ALT_CUPS_HEADERS_PATH=/usr/include ANT_HOME=/usr/share/ant NO_DOCS=true HOTSPOT_BUILD_JOBS=1<br>
<br>and the build starts and gets a certain way through. The currently-failing compile is: <br><br>g++ -D_ALLBSD_SOURCE -D_GNU_SOURCE -DIA32 -DPRODUCT -I. -I../generated/adfiles -I../generated/jvmtifiles -I/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/asm -I/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/c1 -I/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/ci -I/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/classfile -I/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/code -I/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/compiler -I/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/gc_implementation -I/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/gc_implementation/concurrentMarkSweep -I/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/gc_implementation/g1 -I/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/gc_implementation/parallelScavenge -I/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/gc_implementation/parNew -I/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/gc_implementation/shared -I/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/gc_interface -I/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/interpreter -I/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/libadt -I/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/memory -I/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/oops -I/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/opto -I/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/prims -I/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/runtime -I/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/services -I/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/utilities -I/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/cpu/x86/vm -I/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/os/bsd/vm -I/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/os_cpu/bsd_x86/vm -I../generated -DHOTSPOT_RELEASE_VERSION=&quot;\&quot;14.0-b08\&quot;&quot; -DHOTSPOT_BUILD_TARGET=&quot;\&quot;product\&quot;&quot; -DHOTSPOT_BUILD_USER=&quot;\&quot;boxcat\&quot;&quot; -DHOTSPOT_LIB_ARCH=\&quot;i386\&quot; -DJRE_RELEASE_VERSION=&quot;\&quot;1.7.0-internal-boxcat_2008_12_07_12_22-b00\&quot;&quot; -DHOTSPOT_VM_DISTRO=&quot;\&quot;OpenJDK\&quot;&quot; -DCOMPILER2 -DCOMPILER1 -fPIC -fno-rtti -fno-exceptions -pthread -fcheck-new -m32 -march=i586 -mstackrealign -pipe -O3 -fno-strict-aliasing -DVM_LITTLE_ENDIAN&nbsp; -Wpointer-arith -Wconversion -Wsign-compare&nbsp;&nbsp;&nbsp; -c -x c++-header -c ../generated/incls/_precompiled.incl -o incls/_precompiled.incl.gch <br>
/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/runtime/globals_extension.hpp:78: error: redefinition of 'Flag_AnonymousClasses'<br>/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/runtime/globals_extension.hpp:78: error: 'Flag_AnonymousClasses' previously defined here<br>
/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/runtime/globals_extension.hpp:144: error: redefinition of 'Flag_AnonymousClasses_bool'<br>/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/runtime/globals_extension.hpp:144: error: 'Flag_AnonymousClasses_bool' previously defined here<br>
/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/oops/constantPoolOop.hpp:63: error: multiple definition of 'enum constantPoolOopDesc::FlagBit'<br>/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/oops/constantPoolOop.hpp:53: error: previous definition here<br>
/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/oops/constantPoolOop.hpp:64: error: declaration of 'FB_has_pseudo_string'<br>/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/oops/constantPoolOop.hpp:54: error: conflicts with previous declaration 'constantPoolOopDesc::FlagBit constantPoolOopDesc::FB_has_pseudo_string'<br>
/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/oops/constantPoolOop.hpp:67: error: 'int constantPoolOopDesc::flags() const' and 'int constantPoolOopDesc::flags() const' cannot be overloaded<br>/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/oops/constantPoolOop.hpp:68: error: 'void constantPoolOopDesc::set_flags(int)' and 'void constantPoolOopDesc::set_flags(int)' cannot be overloaded<br>
/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/oops/constantPoolOop.hpp:69: error: 'bool constantPoolOopDesc::flag_at(constantPoolOopDesc::FlagBit) const' and 'bool constantPoolOopDesc::flag_at(constantPoolOopDesc::FlagBit) const' cannot be overloaded<br>
/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/oops/constantPoolOop.hpp:70: error: 'void constantPoolOopDesc::set_flag_at(constantPoolOopDesc::FlagBit)' and 'void constantPoolOopDesc::set_flag_at(constantPoolOopDesc::FlagBit)' cannot be overloaded<br>
/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/oops/constantPoolOop.hpp:109: error: 'bool constantPoolOopDesc::has_pseudo_string() const' and 'bool constantPoolOopDesc::has_pseudo_string() const' cannot be overloaded<br>
/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/oops/constantPoolOop.hpp:110: error: 'void constantPoolOopDesc::set_pseudo_string()' and 'void constantPoolOopDesc::set_pseudo_string()' cannot be overloaded<br>
/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/oops/constantPoolOop.hpp:330: error: 'bool constantPoolOopDesc::is_pseudo_string_at(int)' and 'bool constantPoolOopDesc::is_pseudo_string_at(int)' cannot be overloaded<br>
/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/oops/constantPoolOop.hpp:332: error: 'oopDesc* constantPoolOopDesc::pseudo_string_at(int)' and 'oopDesc* constantPoolOopDesc::pseudo_string_at(int)' cannot be overloaded<br>
/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/oops/constantPoolOop.hpp:337: error: 'void constantPoolOopDesc::pseudo_string_at_put(int, oopDesc*)' and 'void constantPoolOopDesc::pseudo_string_at_put(int, oopDesc*)' cannot be overloaded<br>
/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/oops/instanceKlass.hpp:388: error: 'oopDesc* instanceKlass::host_klass() const' and 'oopDesc* instanceKlass::host_klass() const' cannot be overloaded<br>/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/oops/instanceKlass.hpp:389: error: 'void instanceKlass::set_host_klass(oopDesc*)' and 'void instanceKlass::set_host_klass(oopDesc*)' cannot be overloaded<br>
/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/oops/instanceKlass.hpp:390: error: 'bool instanceKlass::is_anonymous() const' and 'bool instanceKlass::is_anonymous() const' cannot be overloaded<br>/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/classfile/classFileParser.hpp:236: error: 'bool ClassFileParser::has_cp_patch_at(int)' and 'bool ClassFileParser::has_cp_patch_at(int)' cannot be overloaded<br>
/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/classfile/classFileParser.hpp:243: error: 'Handle ClassFileParser::cp_patch_at(int)' and 'Handle ClassFileParser::cp_patch_at(int)' cannot be overloaded<br>
/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/classfile/classFileParser.hpp:247: error: 'Handle ClassFileParser::clear_cp_patch_at(int)' and 'Handle ClassFileParser::clear_cp_patch_at(int)' cannot be overloaded<br>
/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/classfile/classFileParser.hpp:253: error: 'void ClassFileParser::patch_constant_pool(constantPoolHandle, int, Handle, Thread*)' and 'void ClassFileParser::patch_constant_pool(constantPoolHandle, int, Handle, Thread*)' cannot be overloaded<br>
/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/classfile/classFileParser.hpp:259: error: 'bool ClassFileParser::is_klass_reference(constantPoolHandle, int)' and 'bool ClassFileParser::is_klass_reference(constantPoolHandle, int)' cannot be overloaded<br>
/Users/boxcat/projects/jdk7-b40-bsd/sources/hotspot/src/share/vm/classfile/classFileParser.hpp:296: error: 'instanceKlassHandle ClassFileParser::parseClassFile(symbolHandle, Handle, Handle, GrowableArray&lt;Handle&gt;*, symbolHandle&amp;, Thread*)' and 'instanceKlassHandle ClassFileParser::parseClassFile(symbolHandle, Handle, Handle, GrowableArray&lt;Handle&gt;*, symbolHandle&amp;, Thread*)' cannot be overloaded<br>
/Users/boxcat/projects/jdk7-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:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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<br>CatBasket:sources boxcat$ <br><br>I&#39;m a bit out of my depth here, and someone should definitely check my assertion that the patches to array.hpp, debug.cpp, etc really don&#39;t need to be applied against the bsd-port tree.<br>
<br>I&#39;m going to post this same compile fail to the bsd-port-dev list as well - anyone else got any ideas?<br><br>Thanks,<br><br>Ben<br></div></div><br>