build JDK 7 Windows 7: make jdk fails building sounds
Randy Nielsen
rnielsen at vocera.com
Tue Feb 12 19:25:24 UTC 2013
Actually I think this failure is because I accidentally installed two different versions of the windows 7 sdk. I've rebuilt my system and am starting the build again.
The OpenJDK README does require a specific version of DirectX 9 SDK - the Summer 2004 version. The *problem* is that the Summer 2004 build is not available anywhere - at least I couldn't find it. I settled for August 2006 build, which was the closest I could find. If you or anyone could point me at a link with the 2004 build I'd be grateful.
For Windows at least the OpenJDK build seems to me to be fraught with difficulties in getting the correct version of tools that work together. Most notable are some Microsoft products (DirectX) and recent versions of Cygwin hanging building Hotspot. The almost impossibility of clean uninstalls of Microsoft products adds to the difficulties here. I'm not sure anything can be done about this, at least for a make system for JDK 7 that is clearly long in the tooth.
Do you think that the JDK8 build system will be sturdier with Windows?
Regards,
Randy
-----Original Message-----
From: Kelly O'Hair [mailto:kelly.ohair at oracle.com]
Sent: Tuesday, February 12, 2013 11:11 AM
To: Randy Nielsen
Cc: build-dev at openjdk.java.net
Subject: Re: build JDK 7 Windows 7: make jdk fails building sounds
It is my understanding that this is why we require the use of a specific DirectX SDK.
http://hg.openjdk.java.net/jdk7/build/raw-file/tip/README-builds.html#dxsdk
-kto
On Feb 8, 2013, at 7:07 PM, Randy Nielsen wrote:
> "make jdk" fails building JavaX Sounds library in the include file objidl.h. Output is below. The compiler fails trying to use this: "__RPC__out_xcount_part". The web suggests that the fix is obtained by placing your SDK entries before your VC entries in the PATH and the LIB. I've done this but failure is the same. Does anyone have any suggestions?
>
> Randy
>
> Building lib:C:/OpenJDK/openjdk/build/windows-amd64/bin/jsoundds.dll
> "C:/PROGRA~2/MICROS~2.0/Common7/Tools"/../../Vc/bin/amd64/cl -O1 -Zi
> -nologo -M D /D _STATIC_CPPLIB /D _DISABLE_DEPRECATE_STATIC_CPPLIB
> -Zc:wchar_t- -FdC:/OpenJ
> DK/openjdk/build/windows-amd64/tmp/sun/javax.sound/jsoundds/obj64/PLAT
> FORM_API_W inOS_DirectSound.pdb
> -FmC:/OpenJDK/openjdk/build/windows-amd64/tmp/sun/javax.sou
> nd/jsoundds/obj64/PLATFORM_API_WinOS_DirectSound.map -wd4800 -W3 -D _CRT_SECURE_
> NO_DEPRECATE -D _CRT_NONSTDC_NO_DEPRECATE -DNDEBUG -DWIN32 -DIAL -D_LITTLE_END
> IAN -D_AMD64_ -Damd64 -DWIN32_LEAN_AND_MEAN -I.
> -IC:/OpenJDK/openjdk/build/windo
> ws-amd64/tmp/sun/javax.sound/jsoundds/CClassHeaders
> -I../../../../src/windows/ja vavm/export -I../../../../src/share/javavm/export -I../../../../src/share/native /common -I../../../../src/windows/native/common -I../../../../src/share/native/j
> avax/sound -I../../../../src/windows/native/javax/sound -DX_PLATFORM=X_WINDOWS
> -DX_ARCH=X_AMD64 -DUSE_DAUDIO=TRUE
> -I../../../../src/share/native/com/sun/media
> /sound -IC:/PROGRA~2/MI4ADD~1/Include -c
> -FoC:/OpenJDK/openjdk/build/windows-am
> d64/tmp/sun/javax.sound/jsoundds/obj64/PLATFORM_API_WinOS_DirectSound.obj ../..
> /../../src/windows/native/com/sun/media/sound/PLATFORM_API_WinOS_Direc
> tSound.cpp
>
> PLATFORM_API_WinOS_DirectSound.cpp
> C:\MSSDKWIN7\Windows\v7.1\Include\objidl.h(11280) : error C2061: syntax error :
> identifier '__RPC__out_xcount_part'
> C:\MSSDKWIN7\Windows\v7.1\Include\objidl.h(11281) : error C2059: syntax error :
> ')'
> C:\MSSDKWIN7\Windows\v7.1\Include\objidl.h(11281) : fatal error C1903:
> unable to recover from previous error(s); stopping compilation
> make[4]: ***
> [C:/OpenJDK/openjdk/build/windows-amd64/tmp/sun/javax.sound/jsoundd
> s/obj64/PLATFORM_API_WinOS_DirectSound.obj] Error 2
> make[4]: Leaving directory
> `/cygdrive/c/OpenJDK/openjdk/jdk/make/javax/sound/jso
More information about the build-dev
mailing list