Skip to content

Commit

Permalink
Merge pull request #15790 from keithc-ca/build11
Browse files Browse the repository at this point in the history
Update build instructions for Windows
  • Loading branch information
pshipton committed Aug 29, 2022
2 parents c14fe74 + d263b29 commit de08fa8
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions doc/build-instructions/Build_Instructions_V11.md
Expand Up @@ -367,7 +367,7 @@ You must install a number of software dependencies to create a suitable build en

- [Cygwin](https://cygwin.com/install.html), which provides a Unix-style command line interface. Install all packages in the `Devel` category. In the `Archive` category, install the packages `zip` and `unzip`. In the `Utils` category, install the `cpio` package. Install any further package dependencies that are identified by the installer. More information about using Cygwin can be found [here](https://cygwin.com/docs.html).
- [Windows JDK 11](https://api.adoptopenjdk.net/v3/binary/latest/11/ga/windows/x64/jdk/openj9/normal/adoptopenjdk), which is used as the boot JDK.
- [Microsoft Visual Studio 2017](https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=Community&rel=15), which is the default compiler level used by OpenJDK11.
- [Microsoft Visual Studio 2019](https://aka.ms/vs/16/release/vs_community.exe), which is the version currently used by OpenJ9 builds.
- [Freemarker V2.3.8](https://sourceforge.net/projects/freemarker/files/freemarker/2.3.8/freemarker-2.3.8.tar.gz/download) - only when building with `--with-cmake=no`
- [LLVM/Clang](http://releases.llvm.org/7.0.0/LLVM-7.0.0-win64.exe)
- [NASM Assembler v2.13.03 or newer](https://www.nasm.us/pub/nasm/releasebuilds/?C=M;O=D)
Expand Down Expand Up @@ -398,17 +398,17 @@ cd /cygdrive/c/temp

- Run the following command:
```
wget https://aka.ms/vs/15/release/vs_community.exe -O vs2017.exe
wget https://aka.ms/vs/16/release/vs_community.exe -O vs2019.exe
```
- Before installing Visual Studio, change the permissions on the installation file by running `chmod u+x vs2017.exe`.
- Install Visual Studio by running the file `vs2017.exe` (There is no special step required for installing. Please follow the guide of the installer to install all desired components, the C++ compiler is required).
- Before installing Visual Studio, change the permissions on the installation file by running `chmod u+x vs2019.exe`.
- Install Visual Studio by running the file `vs2019.exe` (There is no special step required for installing. Please follow the guide of the installer to install all desired components, the C++ compiler is required).

Not all of the shared libraries that are included with Visual Studio are registered during installation.
In particular, the `msdia140.dll` libraries must be registered manually by running command prompt as administrator. To do so, execute the following from a command prompt:

```
regsvr32 "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\DIA SDK\bin\msdia140.dll"
regsvr32 "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\DIA SDK\bin\amd64\msdia140.dll"
regsvr32 "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\DIA SDK\bin\msdia140.dll"
regsvr32 "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\DIA SDK\bin\amd64\msdia140.dll"
```

- When building with `--with-cmake=no`, unpack the Freemarker archive:
Expand Down Expand Up @@ -443,7 +443,7 @@ bash get_source.sh
:ledger:
When you have all the source files that you need, run the configure script, which detects how to build in the current build environment.
```
bash configure --disable-warnings-as-errors
bash configure --disable-warnings-as-errors --with-toolchain-version=2019
```

:pencil: If Java 11 is not available on the path, add the `--with-boot-jdk=<path_to_jdk11>` configuration option.
Expand Down Expand Up @@ -1351,7 +1351,6 @@ Given that there is no JIT support for now, you might need to accelerate the com
:rocket:
(this section is based on verification result from HiFive U540 dev board / to be updated)


:pencil: **OpenSSL support:** If you built an OpenJDK with OpenJ9 that includes OpenSSL v1.1.x support, the following acknowledgements apply in accordance with the license terms:

- *This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit. (http://www.openssl.org/).*
Expand Down

0 comments on commit de08fa8

Please sign in to comment.