RFR: 8262276: Debug build of WebKit fails
PrimosK
github.com+1519324+primosk at openjdk.java.net
Wed Mar 10 10:03:08 UTC 2021
On Tue, 9 Mar 2021 15:46:06 GMT, Arun Joseph <ajoseph at openjdk.org> wrote:
>> I think this is actually a lack of physical memory. I was doing tests inside Windows Sandbox which has 4GB of memory by default.
>>
>> After repeating the build procedure inside VM with 16GB of memory the build succeeded.
>>
>> Side question - I see there was:
>> `C:\jfx\build\modular-sdk\modules_libs\javafx.web\jfxwebkit.dll`
>> produced but I don't see any PDB files (debugging and project state information) despite `CONF = DebugNative` is present. Am I missing something?
>
> The PDB files are located in `modules\javafx.web\build\win\Debug\bin\jfxwebkit.pdb`. At present, they are not copied to sdk. This bug (https://bugs.openjdk.java.net/browse/JDK-8263259) is created to fix the same.
@arun-Joseph , thanks. This is exactly where PDB files were located.
To give something back to the community I've prepared a script ([openjfx-build-env.zip](https://github.com/openjdk/jfx/files/6114811/openjfx-build-env.zip)) which installs [Chocolatey ](https://chocolatey.org/) and all required dependencies needed to came up with `JavaFX` & `WebKit` Windows build environment quickly - _please use at your own risk_).
I suggest using dedicated/clean Windows 10 Virtual machine or Windows Sandbox ([with 8GB memory](https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-sandbox/windows-sandbox-configure-using-wsb-file#memory-in-mb)).
Steps needed to create JavaFX build from JFX Github repository (with included pull/417):
1. Run `PowerShell` as `Administrator`
2. Run `openjfx-build-env.bat` (extracted from [openjfx-build-env.zip](https://github.com/openjdk/jfx/files/6114811/openjfx-build-env.zip))
3. Run `Cygwin`
4. Run (last two commands won't be needed anymore after this pull request will be merged to the master):
`git clone https://github.com/openjdk/jfx.git` (from `C:`)
`git fetch https://git.openjdk.java.net/jfx pull/417/head:pull/417`(from `C:/jfx`)
`git checkout pull/417` (from `C:/jfx`)
5. OPTIONAL: Only if `WebKit` and native debug is needed:
Edit `gradle.properties` (renamed from `gradle.properties.template`) inside `C:/jfx` and set:
`COMPILE_WEBKIT = true`
`CONF = DebugNative`
6. Run `chmod +x gradlew` (from `C:/jfx`)
7. Run `./gradlew --console=plain` (from `C:/jfx`)
Side notes:
- Due to [JDK-8263259](https://bugs.openjdk.java.net/browse/JDK-8263259), the PDB files will be placed inside `c:/jfx/modules/javafx.web/build/win/Debug/bin/jfxwebkit.pdb`.
-------------
PR: https://git.openjdk.java.net/jfx/pull/417
More information about the openjfx-dev
mailing list