Skip to content

Commit fea8da4

Browse files
authored
Merge pull request #22686 from pshipton/build25
Update build instructions and include V25
2 parents 1cbeada + 9a56456 commit fea8da4

File tree

7 files changed

+887
-43
lines changed

7 files changed

+887
-43
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Copyright IBM Corp. and others 2022
2+
#
3+
# This program and the accompanying materials are made available under
4+
# the terms of the Eclipse Public License 2.0 which accompanies this
5+
# distribution and is available at https://www.eclipse.org/legal/epl-2.0/
6+
# or the Apache License, Version 2.0 which accompanies this distribution and
7+
# is available at https://www.apache.org/licenses/LICENSE-2.0.
8+
#
9+
# This Source Code may also be made available under the following
10+
# Secondary Licenses when the conditions for such availability set
11+
# forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
12+
# General Public License, version 2 with the GNU Classpath
13+
# Exception [1] and GNU General Public License, version 2 with the
14+
# OpenJDK Assembly Exception [2].
15+
#
16+
# [1] https://www.gnu.org/software/classpath/license.html
17+
# [2] https://openjdk.org/legal/assembly-exception.html
18+
#
19+
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0 OR GPL-2.0-only WITH OpenJDK-assembly-exception-1.0
20+
21+
# This file installs package dependencies for building OpenJDK V18 with OpenJ9 on AIX 64-bit systems
22+
# To use this file, specify `yum shell yum_install_aix-ppc64.txt`
23+
24+
install autoconf-2.69-1.noarch
25+
install git-2.8.1-1.ppc
26+
install unzip-6.0-3.ppc
27+
install wget-1.17.1-1.ppc
28+
install zip-3.0-2.ppc
29+
install zsh-4.0.4-3.ppc
30+
install gcc-6.3.0-1.ppc
31+
install bc-1.06-2.ppc
32+
install bison-1.875-3.ppc
33+
update bzip2.ppc
34+
install cpio-2.12-2.ppc
35+
update glib2.ppc
36+
install pkg-config-0.19-6.ppc
37+
install gawk-3.1.3-1.ppc
38+
install popt-1.16-3.ppc
39+
update curl.ppc
40+
install pcre-8.33-1.ppc
41+
install wget-1.17.1-1.ppc
42+
install sed-4.1.1-1.ppc
43+
install make-4.1-2.ppc
44+
install libXrender-devel-0.9.8-1waixX11.ppc
45+
install libXft-2.3.2-2waixX11.ppc
46+
install libffi-devel-3.0.12-1.ppc
47+
install cups-devel-2.0.2-2.ppc
48+
install freetype2-devel-2.6.3-1.ppc
49+
run

buildenv/docker/mkdocker.sh

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ validate_options() {
260260
esac
261261
fi
262262

263-
all_versions="8 11 17 21 23 next"
263+
all_versions="8 11 17 21 25 next"
264264
local -A known_version
265265
local version
266266
for version in $all_versions ; do
@@ -692,24 +692,17 @@ bootjdk_dirs() {
692692
bootjdk_url() {
693693
local jdk_arch=${arch/x86_64/x64}
694694
local jdk_version=$1
695-
if [ $jdk_version -le 23 ] ; then
696-
echo https://api.adoptopenjdk.net/v3/binary/latest/$jdk_version/ga/linux/$jdk_arch/jdk/openj9/normal/adoptopenjdk
697-
else
698-
echo https://api.adoptium.net/v3/binary/latest/$jdk_version/ga/linux/$jdk_arch/jdk/hotspot/normal/eclipse
699-
fi
695+
echo https://api.adoptopenjdk.net/v3/binary/latest/$jdk_version/ga/linux/$jdk_arch/jdk/openj9/normal/adoptopenjdk
700696
}
701697

702698
bootjdk_version() {
703699
local jdk_version=$1
704700
case $jdk_version in
705-
8 | 11 | 17)
701+
8 | 11 | 17 | 21 | 25)
706702
echo $jdk_version
707703
;;
708-
21)
709-
echo 21
710-
;;
711-
23 | next)
712-
echo 23
704+
next)
705+
echo 25
713706
;;
714707
*)
715708
echo "Unsupported JDK version: '$jdk_version'" >&2

doc/build-instructions/Build_Instructions_V11.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ documentation for the next release of OpenJ9 can be found [here](https://eclipse
4545

4646
## Linux
4747
:penguin:
48-
This build process provides detailed instructions for building a Linux x86-64 binary of **OpenJDK V11** with OpenJ9 on Ubuntu 16.04. The binary can be built directly on your system, in a virtual machine, or in a Docker container :whale:.
48+
This build process provides detailed instructions for building a Linux x86-64 binary of **OpenJDK V11** with OpenJ9 on Ubuntu 22. The binary can be built directly on your system, in a virtual machine, or in a Docker container :whale:.
4949

5050
If you are using a different Linux distribution, you might have to review the list of libraries that are bundled with your distribution and/or modify the instructions to use equivalent commands to the Advanced Packaging Tool (APT). For example, for Centos, substitute the `apt-get` command with `yum`.
5151

@@ -132,7 +132,7 @@ Now fetch additional sources from the Eclipse OpenJ9 project and its clone of Ec
132132
bash get_source.sh
133133
```
134134

135-
:pencil: **OpenSSL support:** If you want to build an OpenJDK with OpenJ9 binary with OpenSSL support and you do not have a built version of OpenSSL v3.x available locally, you must specify `-openssl-branch=<branch>` where `<branch>` is an OpenSSL branch (or tag) like `openssl-3.0.13`. If the specified version of OpenSSL is already available in the standard location (SRC_DIR/openssl), `get_source.sh` uses it. Otherwise, the script deletes the content and downloads the specified version of OpenSSL source to the standard location and builds it. If you already have the version of OpenSSL in the standard location but you want a fresh copy, you must delete your current copy.
135+
:pencil: **OpenSSL support:** If you want to build an OpenJDK with OpenJ9 binary with OpenSSL support and you do not have a built version of OpenSSL v3.x available locally, you must specify `-openssl-branch=<branch>` where `<branch>` is an OpenSSL branch (or tag) like `openssl-3.5.2`. If the specified version of OpenSSL is already available in the standard location (SRC_DIR/openssl), `get_source.sh` uses it. Otherwise, the script deletes the content and downloads the specified version of OpenSSL source to the standard location and builds it. If you already have the version of OpenSSL in the standard location but you want a fresh copy, you must delete your current copy.
136136

137137
### 3. Configure
138138
:penguin:
@@ -261,7 +261,7 @@ Now fetch additional sources from the Eclipse OpenJ9 project and its clone of Ec
261261
bash get_source.sh
262262
```
263263

264-
:pencil: **OpenSSL support:** If you want to build an OpenJDK with OpenJ9 binary with OpenSSL support and you do not have a built version of OpenSSL v3.x available locally, you must specify `-openssl-branch=<branch>` where `<branch>` is an OpenSSL branch (or tag) like `openssl-3.0.13`. If the specified version of OpenSSL is already available in the standard location (SRC_DIR/openssl), `get_source.sh` uses it. Otherwise, the script deletes the content and downloads the specified version of OpenSSL source to the standard location and builds it. If you already have the version of OpenSSL in the standard location but you want a fresh copy, you must delete your current copy.
264+
:pencil: **OpenSSL support:** If you want to build an OpenJDK with OpenJ9 binary with OpenSSL support and you do not have a built version of OpenSSL v3.x available locally, you must specify `-openssl-branch=<branch>` where `<branch>` is an OpenSSL branch (or tag) like `openssl-3.5.2`. If the specified version of OpenSSL is already available in the standard location (SRC_DIR/openssl), `get_source.sh` uses it. Otherwise, the script deletes the content and downloads the specified version of OpenSSL source to the standard location and builds it. If you already have the version of OpenSSL in the standard location but you want a fresh copy, you must delete your current copy.
265265

266266
### 3. Configure
267267
:blue_book:
@@ -415,7 +415,7 @@ bash get_source.sh
415415

416416
:pencil: Create the directory that is going to contain the OpenJDK clone by using the `mkdir` command in the Cygwin bash shell and not using Windows Explorer. This ensures that it will have proper Cygwin attributes, and that its children will inherit those attributes.
417417

418-
:pencil: **OpenSSL support:** If you want to build an OpenJDK with OpenJ9 binary with OpenSSL support and you do not have a built version of OpenSSL v3.x available locally, you must specify `-openssl-branch=<branch>` where `<branch>` is an OpenSSL branch (or tag) like `openssl-3.0.13`. If the specified version of OpenSSL is already available in the standard location (SRC_DIR/openssl), `get_source.sh` uses it. Otherwise, the script deletes the content and downloads the specified version of OpenSSL source to the standard location and builds it. If you already have the version of OpenSSL in the standard location but you want a fresh copy, you must delete your current copy.
418+
:pencil: **OpenSSL support:** If you want to build an OpenJDK with OpenJ9 binary with OpenSSL support and you do not have a built version of OpenSSL v3.x available locally, you must specify `-openssl-branch=<branch>` where `<branch>` is an OpenSSL branch (or tag) like `openssl-3.5.2`. If the specified version of OpenSSL is already available in the standard location (SRC_DIR/openssl), `get_source.sh` uses it. Otherwise, the script deletes the content and downloads the specified version of OpenSSL source to the standard location and builds it. If you already have the version of OpenSSL in the standard location but you want a fresh copy, you must delete your current copy.
419419

420420
### 3. Configure
421421
:ledger:
@@ -508,7 +508,7 @@ The following instructions guide you through the process of building a macOS **O
508508
:apple:
509509
You must install a number of software dependencies to create a suitable build environment on your system (the specified versions are minimums):
510510

511-
- [Xcode 10.3, use >= 11.4.1 to support code signing](https://developer.apple.com/download/more/) (requires an Apple account to log in).
511+
- [Xcode 12.4 x86, 13.0 aarch64](https://developer.apple.com/download/more/) (requires an Apple account to log in).
512512
- [macOS OpenJDK 11](https://api.adoptopenjdk.net/v3/binary/latest/11/ga/mac/x64/jdk/openj9/normal/adoptopenjdk), which is used as the boot JDK.
513513

514514
The following dependencies can be installed by using [Homebrew](https://brew.sh/) (the specified versions are minimums):
@@ -555,7 +555,7 @@ Now fetch additional sources from the Eclipse OpenJ9 project and its clone of Ec
555555
bash get_source.sh
556556
```
557557

558-
:pencil: **OpenSSL support:** If you want to build an OpenJDK with OpenJ9 binary with OpenSSL support and you do not have a built version of OpenSSL v3.x available locally, you must specify `-openssl-branch=<branch>` where `<branch>` is an OpenSSL branch (or tag) like `openssl-3.0.13`. If the specified version of OpenSSL is already available in the standard location (SRC_DIR/openssl), `get_source.sh` uses it. Otherwise, the script deletes the content and downloads the specified version of OpenSSL source to the standard location and builds it. If you already have the version of OpenSSL in the standard location but you want a fresh copy, you must delete your current copy.
558+
:pencil: **OpenSSL support:** If you want to build an OpenJDK with OpenJ9 binary with OpenSSL support and you do not have a built version of OpenSSL v3.x available locally, you must specify `-openssl-branch=<branch>` where `<branch>` is an OpenSSL branch (or tag) like `openssl-3.5.2`. If the specified version of OpenSSL is already available in the standard location (SRC_DIR/openssl), `get_source.sh` uses it. Otherwise, the script deletes the content and downloads the specified version of OpenSSL source to the standard location and builds it. If you already have the version of OpenSSL in the standard location but you want a fresh copy, you must delete your current copy.
559559

560560
### 3. Configure
561561
:apple:
@@ -671,7 +671,7 @@ Now fetch additional sources from the Eclipse OpenJ9 project and its clone of Ec
671671
bash get_source.sh
672672
```
673673

674-
:pencil: **OpenSSL support:** On an AArch64 Linux system if you want to build an OpenJDK with OpenJ9 binary with OpenSSL support and you do not have a built version of OpenSSL v3.x available locally, you must specify `-openssl-branch=<branch>` where `<branch>` is an OpenSSL branch (or tag) like `openssl-3.0.13`. If the specified version of OpenSSL is already available in the standard location (SRC_DIR/openssl), `get_source.sh` uses it. Otherwise, the script deletes the content and downloads the specified version of OpenSSL source to the standard location and builds it. If you already have the version of OpenSSL in the standard location but you want a fresh copy, you must delete your current copy.
674+
:pencil: **OpenSSL support:** On an AArch64 Linux system if you want to build an OpenJDK with OpenJ9 binary with OpenSSL support and you do not have a built version of OpenSSL v3.x available locally, you must specify `-openssl-branch=<branch>` where `<branch>` is an OpenSSL branch (or tag) like `openssl-3.5.2`. If the specified version of OpenSSL is already available in the standard location (SRC_DIR/openssl), `get_source.sh` uses it. Otherwise, the script deletes the content and downloads the specified version of OpenSSL source to the standard location and builds it. If you already have the version of OpenSSL in the standard location but you want a fresh copy, you must delete your current copy.
675675

676676
### 3. Prepare for build on AArch64 Linux
677677

0 commit comments

Comments
 (0)