RFR: 7181175 Enable hotspot builds on Windows with MinGW/MSYS (original) (raw)

Kelly O'Hair kelly.ohair at oracle.com
Wed Jul 18 17:48:19 UTC 2012


Notes below... just chatted with Tim in his office...

On Jul 17, 2012, at 9:46 PM, Tim Bell wrote:

On 07/17/12 17:16, David Holmes wrote:

I'm not sure if you are agreeing with me :) so to be clear. We have: Thanks for the clarification. I think we all agree here, but best to be sure.

COMPILEJAVAC="$(BootStrapDir)\bin\javac" $(BOOTSTRAPJAVACFLAGS) COMPILERMIC="$(BootStrapDir)\bin\rmic" at present. Correct. This is in hotspot/make/windows/makefiles/rules.make But if we were to change that to COMPILERMIC="$(BootStrapDir)\bin\rmic" $(BOOTSTRAPRMICFLAGS) for example, then "$(COMPILERMIC)" -classpath ... would not work. Again, correct. Unfortunately, my efforts to do the logical thing are running off into the tall weeds: ######################################################################## ######################################################################## ##### Entering hotspot for target(s) allproduct ##### ######################################################################## _cd ./hotspot/make && _ make JDKTOPDIR=/d/tools/jdk8/7152336-closed/jdk JDKMAKESHAREDDIR=/d/tools/jdk8/7152336-closed/jdk/make/common/shared EXTERNALSANITYCONTROL=true SOURCELANGUAGEVERSION=7 TARGETCLASSVERSION=7 MILESTONE=internal BUILDNUMBER=b00 JDKBUILDNUMBER=b00 FULLVERSION=1.8.0-internal-tbbell201207162052-b00 PREVIOUSJDKVERSION=1.7.0 JDKVERSION=1.8.0 JDKMKTGVERSION=8 JDKMAJORVERSION=1 JDKMINORVERSION=8 JDKMICROVERSION=0 PREVIOUSMAJORVERSION=1 PREVIOUSMINORVERSION=7 PREVIOUSMICROVERSION=0 ARCHDATAMODEL=64 COOKEDBUILDNUMBER=0 ANTHOME="D:/APACHE1.0" ALTOUTPUTDIR=D:/tools/jdk8/7152336-closed/windows-amd64/hotspot/outputdir ALTEXPORTPATH=D:/tools/jdk8/7152336-closed/windows-amd64/hotspot/import BUILDFLAVOR=product ALTSLASHJAVA="D:/java/" ALTBOOTDIR=C:/PROGRA1/Java/JDK17~1.00 ALTLANGTOOLSDIST=D:/tools/jdk8/7152336-closed/windows-amd64/langtools/dist allproduct INFO: ENABLEFULLDEBUGSYMBOLS=1

the above is a GNU make, and the =/d/ paths should be ok.

make[2]: Entering directory `/d/tools/jdk8/7152336-closed/hotspot/make' _cd /d/tools/jdk8/7152336-closed/hotspot/make; _ make BUILDFLAVOR=product VMTARGET=product genericbuild2 ALTOUTPUTDIR=D:/tools/jdk8/7152336-closed/windows-amd64/hotspot/outputdir INFO: ENABLEFULLDEBUGSYMBOLS=1

The above is a GNU make too.

make[3]: Entering directory `/d/tools/jdk8/7152336-closed/hotspot/make' mkdir -p D:/tools/jdk8/7152336-closed/windows-amd64/hotspot/outputdir

But this next one is an NMAKE. And I don't think the /d/ paths are right here.

_cd D:/tools/jdk8/7152336-closed/windows-amd64/hotspot/outputdir; _ _MAKEFLAGS= MFLAGS= nmake -NOLOGO -f /d/tools/jdk8/7152336-closed/hotspot/make/windows/build.make _ _Variant=compiler2 _ _WorkSpace=/d/tools/jdk8/7152336-closed/hotspot _ _BootStrapDir=/c/PROGRA1/Java/JDK171.00 _ _BuildUser=tbbell _ LP64=1 ARCH=x86 BUILDARCH=amd64 Platformarch=x86 Platformarchmodel=x8664 ENABLEFULLDEBUGSYMBOLS=1 ZIPDEBUGINFOFILES=1 RM="rm -f" ZIPEXE=zip JDKMKTGVERSION=8 JDKMAJORVER=1 JDKMINORVER=8 JDKMICROVER=0 JDKBUILDNUMBER=0 BUILDWINSA=1 JAVAHOME=/c/PROGRA1/Java/JDK171.00 OUTPUTDIR=/d/tools/jdk8/7152336-closed/windows-amd64/hotspot/outputdir GAMMADIR=/d/tools/jdk8/7152336-closed/hotspot MAKEVERBOSE=y HOTSPOTRELEASEVERSION=24.0-b14 JRERELEASEVERSION=1.8.0-internal-tbbell201207162052-b00 HOTSPOTBUILDVERSION= product mkdir windowsamd64compiler2

I would have expected a whole bunch of stuff here as the VM is built... but it goes to SA next? Is that right?

I think the very first NMAKE needs to be investigated first.

-kto

cd windowsamd64compiler2 nmake -nologo -f d:/tools/jdk8/7152336-closed/hotspot\make\windows\makefiles\top.make BUILDFLAVOR=product ARCH=x86 nmake in .\generated cd generated && c:\PROGRA2\MICROS2.0\VC\BIN\amd64\nmake.EXE -NOLOGO -f d:/tools/jdk8/7152336-closed/hotspot\make\windows\makefiles\generated.make DIR=.\generated BUILDFLAVOR=product mkdir -p ../generated/saclasses ...Building sa-jdi.jar ...c:/PROGRA1/Java/JDK171.00/bin/javac -g -encoding ascii -source 6 -target 6 -classpath c:/PROGRA1/Java/JDK171.00/lib/tools.jar -d ../generated/saclasses .... c:/PROGRA1/Java/JDK171.00/bin/rmic -classpath ../generated/saclasses -d ../generated/saclasses sun.jvm.hotspot.debugger.remote.RemoteDebuggerServer echo sun.jvm.hotspot.runtime.VM.saBuildVersion=24.0-b14> ../generated/saclasses/sa.properties The system cannot find the path specified. NMAKE : fatal error U1077: 'echo' : return code '0x1' Stop. NMAKE : fatal error U1077: 'cd' : return code '0x2' Stop. NMAKE : fatal error U1077: 'c:\PROGRA2\MICROS2.0\VC\BIN\amd64\nmake.EXE' : return code '0x2' Stop. make[3]: *** [genericbuild2] Error 2 make[3]: Leaving directory /d/tools/jdk8/7152336-closed/hotspot/make'_ _make[2]: *** [product] Error 2_ _make[2]: Leaving directory /d/tools/jdk8/7152336-closed/hotspot/make' make[1]: *** [hotspot-build] Error 2 make[1]: Leaving directory `/d/tools/jdk8/7152336-closed' make: *** [buildproductimage] Error 2



More information about the build-dev mailing list