Latest instructions on getting and patching

Charles Oliver Nutter charles.nutter at sun.com
Sun Mar 15 12:08:38 PDT 2009


Charles Oliver Nutter wrote:
> Charles Oliver Nutter wrote:
>> Ok gents, I've *finally* gotten time to circle back to MLVM work. JRuby 
>> 1.2.0 will go out tomorrow, and with the pycon VM summit coming up in a 
>> little over a week, I'd like to spend some time hacking JRuby to work 
>> with current MLVM patches.
>>
>> So any pointers to the latest instructions? Hopefully someone has gotten 
>> it to patch and build against the bsd port?
> 
> I'm starting based on the mlvm readme here:
> 
> http://hg.openjdk.java.net/mlvm/mlvm/file/0bf6d77bfb0b/README.txt
> 
> We should try to put a link to that somewhere on the main MLVM page, 
> since it includes the appropriate fclone steps, etc.

Ok, hit my first snag. The instructions seem to work ok up to the point 
of doing make. But the patches seemed to apply correctly, which is good.

Here's the output I'm stuck at for the moment:

~/projects/davinci ➔ (cd patches/make; make)
cd ../..; bash patches/make/link-patch-dirs.sh sources patches
+ ln -s /Users/headius/projects/davinci/patches/hotspot 
/Users/headius/projects/bsd-port/hotspot/.hg/patches
+ ln -s /Users/headius/projects/davinci/patches/jdk 
/Users/headius/projects/bsd-port/jdk/.hg/patches
+ ln -s /Users/headius/projects/davinci/patches/langtools 
/Users/headius/projects/bsd-port/langtools/.hg/patches
# Should be identical files:
cd ../..; ls -il patches/hotspot/series sources/hotspot/.hg/patches/series
60223243 -rw-r--r--  1 headius  headius  466 Mar 15 14:01 
patches/hotspot/series
60223243 -rw-r--r--  1 headius  headius  466 Mar 15 14:01 
sources/hotspot/.hg/patches/series
cd ../..; ksh   patches/make/each-patch-repo.sh \
		"hg qpop -a; hg qselect buildable testable" \
			"\$(ksh   `pwd`/patches/make/current-release.sh)"
+ (cd sources/hotspot; hg qpop -a; hg qselect buildable testable $(ksh 
  /Users/headius/projects/davinci/patches/make/current-release.sh))
Patch queue now empty
+ (cd sources/jdk; hg qpop -a; hg qselect buildable testable $(ksh 
/Users/headius/projects/davinci/patches/make/current-release.sh))
Patch queue now empty
+ (cd sources/langtools; hg qpop -a; hg qselect buildable testable $(ksh 
   /Users/headius/projects/davinci/patches/make/current-release.sh))
Patch queue now empty
# report what happened:
cd ../..; ksh   patches/make/each-patch-repo.sh 'hg qselect; hg qunapplied'
+ (cd sources/hotspot; hg qselect; hg qunapplied)
buildable
f6c0827e5919
testable
meth.patch
+ (cd sources/jdk; hg qselect; hg qunapplied)
buildable
d8eb2738db6b
testable
anonk.patch
meth.patch
+ (cd sources/langtools; hg qselect; hg qunapplied)
05b47447cbcf
buildable
testable
gibbons.patch
quid.patch
meth.patch
# If this command fails, consider setting RELAX_CHECKS=true or 
FORCE_VERSIONS=true.
cd ../..; ksh   patches/make/each-patch-repo.sh \
		hg diff --git -I src -r "\$(ksh 
`pwd`/patches/make/current-release.sh)" \
		"> current-diffs.txt;" \
		"if [ ! -s current-diffs.txt ]; then rm current-diffs.txt;" \
		"else grep '^diff' current-diffs.txt; exit 1; fi"
+ (cd sources/hotspot; hg diff --git -I src -r $(ksh 
/Users/headius/projects/davinci/patches/make/current-release.sh) > 
current-diffs.txt; if [ ! -s current-diffs.txt ]; then rm 
current-diffs.txt; else grep '^diff' current-diffs.txt; exit 1; fi)
+ (cd sources/jdk; hg diff --git -I src -r $(ksh 
/Users/headius/projects/davinci/patches/make/current-release.sh) > 
current-diffs.txt; if [ ! -s current-diffs.txt ]; then rm 
current-diffs.txt; else grep '^diff' current-diffs.txt; exit 1; fi)
+ (cd sources/langtools; hg diff --git -I src -r $(ksh 
/Users/headius/projects/davinci/patches/make/current-release.sh) > 
current-diffs.txt; if [ ! -s current-diffs.txt ]; then rm 
current-diffs.txt; else grep '^diff' current-diffs.txt; exit 1; fi)
cd ../..; ksh   patches/make/each-patch-repo.sh \
		'(! hg qunapplied | read something) || hg qpush -a'
+ (cd sources/hotspot; (! hg qunapplied | read something) || hg qpush -a)
(working directory not at tip)
applying meth.patch
skipping indy.patch - guarded by ['+8fb16f199266', '+jdk7-b38']
skipping annot.patch - guarded by '-testable'
skipping callcc.patch - guarded by '-testable'
skipping tailc.patch - guarded by '-testable'
Now at: meth.patch
+ (cd sources/jdk; (! hg qunapplied | read something) || hg qpush -a)
(working directory not at tip)
applying anonk.patch
applying meth.patch
skipping indy.patch - guarded by '-testable'
skipping callcc.patch - guarded by '-testable'
Now at: meth.patch
+ (cd sources/langtools; (! hg qunapplied | read something) || hg qpush -a)
(working directory not at tip)
applying gibbons.patch
applying quid.patch
applying meth.patch
Now at: meth.patch
cd ../..; ksh   patches/make/each-patch-repo.sh \
		"(cd make; make)"
+ (cd sources/hotspot; (cd make; make))
Makefile:302: target `/Xusage.txt' given more than once in the same rule.
cd /Users/headius/projects/davinci/sources/hotspot/make; \
	make VM_TARGET=product generic_build2
Makefile:302: target `/Xusage.txt' given more than once in the same rule.
mkdir -p /Users/headius/projects/davinci/sources/hotspot/build/windows
cd /Users/headius/projects/davinci/sources/hotspot/build/windows; \
	    MAKEFLAGS= MFLAGS= nmake /NOLOGO -f 
\\Users\\headius\\projects\\davinci\\sources\\hotspot\\make\\windows\\build.make 
\
		      Variant=compiler2 \
 
WorkSpace=\\Users\\headius\\projects\\davinci\\sources\\hotspot \
		 
BootStrapDir=\\System\\Library\\Frameworks\\JavaVM.framework\\Versions\\soylatte\\Home 
\
                       BuildUser= \
		       JDK_MKTG_VERSION=7.0 JDK_MAJOR_VER=1 JDK_MINOR_VER=7 
JDK_MICRO_VER=0 BUILD_WIN_SA=1 
JAVA_HOME=\\System\\Library\\Frameworks\\JavaVM.framework\\Versions\\soylatte\\Home 
OUTPUTDIR=\\Users\\headius\\projects\\davinci\\sources\\hotspot\\build\\windows 
GAMMADIR=\\Users\\headius\\projects\\davinci\\sources\\hotspot 
MAKE_VERBOSE=y HOTSPOT_RELEASE_VERSION=15.0-b01 
JRE_RELEASE_VERSION="1.7.0" HOTSPOT_BUILD_VERSION=internal product
/bin/sh: nmake: command not found
make[2]: *** [generic_build2] Error 127
make[1]: *** [product] Error 2
*** Exit status 2.
+ (cd sources/jdk; (cd make; make))
common/Defs.gmk:179: ../make/common/Defs-.gmk: No such file or directory
make[1]: -p: Command not found
make[1]: -p: Command not found
make[1]: execvp: /Users/headius/projects/davinci/sources/jdk/make: 
Permission denied
make[1]: +%Y: Command not found
/bin/sh: -n: command not found
/bin/sh: - : invalid option
/bin/sh: - : invalid option
/bin/sh: -n: command not found
/bin/sh: - : invalid option
../make/common/shared/Sanity-Settings.gmk:72: WARNING: BOOT_VER should 
not be empty [Sanity-Settings.gmk]
../make/common/shared/Sanity-Settings.gmk:74: WARNING: ABS_OUTPUTDIR 
should not be empty [Sanity-Settings.gmk]
../make/common/shared/Sanity-Settings.gmk:107: WARNING: CC_VER should 
not be empty [Sanity-Settings.gmk]
../make/common/shared/Sanity-Settings.gmk:115: WARNING: ZIP_VER should 
not be empty [Sanity-Settings.gmk]
../make/common/shared/Sanity-Settings.gmk:116: WARNING: UNZIP_VER should 
not be empty [Sanity-Settings.gmk]
../make/common/shared/Sanity-Settings.gmk:120: WARNING: ANT_VER should 
not be empty [Sanity-Settings.gmk]
../make/common/shared/Sanity-Settings.gmk:133: WARNING: COMPILE_APPROACH 
should not be empty [Sanity-Settings.gmk]
../make/common/shared/Sanity-Settings.gmk:138: WARNING: 
COMPILER_WARNINGS_FATAL should not be empty [Sanity-Settings.gmk]
../make/common/shared/Sanity-Settings.gmk:140: WARNING: 
INCREMENTAL_BUILD should not be empty [Sanity-Settings.gmk]
../make/common/shared/Sanity-Settings.gmk:161: WARNING: PLATFORM should 
not be empty [Sanity-Settings.gmk]
../make/common/shared/Sanity-Settings.gmk:162: WARNING: ARCH should not 
be empty [Sanity-Settings.gmk]
../make/common/shared/Sanity-Settings.gmk:163: WARNING: LIBARCH should 
not be empty [Sanity-Settings.gmk]
../make/common/shared/Sanity-Settings.gmk:164: WARNING: ARCH_FAMILY 
should not be empty [Sanity-Settings.gmk]
../make/common/shared/Sanity-Settings.gmk:165: WARNING: ARCH_DATA_MODEL 
should not be empty [Sanity-Settings.gmk]
../make/common/shared/Sanity-Settings.gmk:166: WARNING: ARCHPROP should 
not be empty [Sanity-Settings.gmk]
../make/common/shared/Sanity-Settings.gmk:187: WARNING: OS_VERSION 
should not be empty [Sanity-Settings.gmk]
../make/common/shared/Sanity-Settings.gmk:188: WARNING: OS_NAME should 
not be empty [Sanity-Settings.gmk]
../make/common/shared/Sanity-Settings.gmk:189: WARNING: TEMP_FREE_SPACE 
should not be empty [Sanity-Settings.gmk]
../make/common/shared/Sanity-Settings.gmk:190: WARNING: FREE_SPACE 
should not be empty [Sanity-Settings.gmk]
../make/common/shared/Sanity-Settings.gmk:196: WARNING: MAKE_VER should 
not be empty [Sanity-Settings.gmk]
../make/common/shared/Sanity-Settings.gmk:203: WARNING: JDK_VERSION 
should not be empty [Sanity-Settings.gmk]
../make/common/shared/Sanity-Settings.gmk:206: WARNING: FULL_VERSION 
should not be empty [Sanity-Settings.gmk]
../make/common/shared/Sanity-Settings.gmk:211: WARNING: 
USRJDKINSTANCES_PATH should not be empty [Sanity-Settings.gmk]
make[1]: *** No rule to make target `../make/common/Defs-.gmk'.  Stop.
*** Exit status 2.
+ (cd sources/langtools; (cd make; make))
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/soylatte/Home 
ANT_OPTS=-Djava.io.tmpdir='/Users/headius/projects/davinci/sources/langtools/build/ant-tmp' 
/usr/share/ant/bin/ant -diagnostics > ../build/ant-diagnostics.log
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/soylatte/Home 
ANT_OPTS=-Djava.io.tmpdir='/Users/headius/projects/davinci/sources/langtools/build/ant-tmp' 
/usr/share/ant/bin/ant 
-Dboot.java.home=/System/Library/Frameworks/JavaVM.framework/Versions/soylatte/Home 
build
Buildfile: build.xml
...




More information about the mlvm-dev mailing list