trouble building mlvm
Iulian Dragos
jaguarul at gmail.com
Tue Dec 16 03:09:27 PST 2008
I'm trying to build a version of JDK7 with invoke dynamic support. So
far, I managed to build the 'base' jdk7, but had no success applying
the required patches to get mlvm. I've been trying for 2 days before
giving up and seeking help.
I followed the instructions found in the patches/README file. The
applied patches fail:
dragos at lamppc8 OpenJDK $ sh patches/make/each-patch-repo.sh hg qpush -a
+ (cd sources/hotspot; hg qpush -a)
patch series already fully applied
+ (cd sources/jdk; hg qpush -a)
patch series already fully applied
+ (cd sources/langtools; hg qpush -a)
applying quid.patch
applying meth.patch
patching file src/share/classes/com/sun/tools/javac/comp/Check.java
Hunk #1 succeeded at 209 with fuzz 2 (offset 0 lines).
patching file src/share/classes/com/sun/tools/javac/comp/Resolve.java
Hunk #4 FAILED at 1304
1 out of 4 hunks FAILED -- saving rejects to file
src/share/classes/com/sun/tools/javac/comp/Resolve.java.rej
patching file src/share/classes/com/sun/tools/javac/parser/Parser.java
Hunk #1 FAILED at 330
Hunk #2 FAILED at 1066
2 out of 2 hunks FAILED -- saving rejects to file
src/share/classes/com/sun/tools/javac/parser/Parser.java.rej
patching file src/share/classes/com/sun/tools/javac/util/Name.java
Hunk #1 FAILED at 436
Hunk #2 FAILED at 477
Hunk #3 FAILED at 570
Hunk #4 FAILED at 611
4 out of 4 hunks FAILED -- saving rejects to file
src/share/classes/com/sun/tools/javac/util/Name.java.rej
patch failed, unable to continue (try -v)
patch failed, rejects left in working dir
Errors during apply, please fix and refresh meth.patch
What's more, none of the patches that are reported as 'already
applied' are actually applied. For instance, looking for
'CallSite.java' in the jdk repository yields nothing.
So I changed the guards to be more permissive (the current release is
jdk7-b41, but patches expect b34 or b38), and I added more tags using
qselect. This triggers patches under jdk/ and they actually succeed.
Unfortunately, the patches under hotspot/ fail miserably:
dragos at lamppc8 hotspot $ hg qpush -a
applying meth.patch
patching file src/share/vm/utilities/array.hpp
Hunk #1 FAILED at 39
Hunk #2 FAILED at 110
Hunk #3 FAILED at 156
Hunk #4 FAILED at 234
4 out of 4 hunks FAILED -- saving rejects to file
src/share/vm/utilities/array.hpp.rej
patching file src/share/vm/utilities/debug.cpp
Hunk #1 FAILED at 566
Hunk #2 FAILED at 594
Hunk #3 FAILED at 620
Hunk #4 FAILED at 658
4 out of 4 hunks FAILED -- saving rejects to file
src/share/vm/utilities/debug.cpp.rej
patching file src/share/vm/utilities/growableArray.hpp
Hunk #1 FAILED at 110
Hunk #2 FAILED at 120
Hunk #3 FAILED at 158
3 out of 3 hunks FAILED -- saving rejects to file
src/share/vm/utilities/growableArray.hpp.rej
patching file src/share/vm/utilities/hashtable.cpp
Hunk #1 FAILED at 42
Hunk #2 FAILED at 52
2 out of 2 hunks FAILED -- saving rejects to file
src/share/vm/utilities/hashtable.cpp.rej
patch failed, unable to continue (try -v)
patch failed, rejects left in working dir
Errors during apply, please fix and refresh meth.patch
BTW, in the build instructions, these are the only directories that
appear as being 'patchable'. However, running
patches/make/each-patch-repo.sh touches a third one: langtools. Are
the instructions outdated, or langtools shouldn't be touched?
Thanks for any help,
Iulian
PS. I am a complete novice in Mercurial.
--
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais
More information about the mlvm-dev
mailing list