Skip to content

Commit 1802cb5

Browse files
committed
8319570: Change to GCC 13.2.0 for building on Linux at Oracle
Reviewed-by: ihse, dholmes
1 parent d992033 commit 1802cb5

File tree

4 files changed

+24
-11
lines changed

4 files changed

+24
-11
lines changed

doc/building.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ <h2 id="native-compiler-toolchain-requirements">Native Compiler
540540
<tbody>
541541
<tr class="odd">
542542
<td>Linux</td>
543-
<td>gcc 11.2.0</td>
543+
<td>gcc 13.2.0</td>
544544
</tr>
545545
<tr class="even">
546546
<td>macOS</td>
@@ -561,7 +561,7 @@ <h3 id="gcc">gcc</h3>
561561
generate a warning by <code>configure</code> and are unlikely to
562562
work.</p>
563563
<p>The JDK is currently known to be able to compile with at least
564-
version 11.2 of gcc.</p>
564+
version 13.2 of gcc.</p>
565565
<p>In general, any version between these two should be usable.</p>
566566
<h3 id="clang">clang</h3>
567567
<p>The minimum accepted version of clang is 3.5. Older versions will not

doc/building.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ issues.
336336

337337
| Operating system | Toolchain version |
338338
| ------------------ | ------------------------------------------- |
339-
| Linux | gcc 11.2.0 |
339+
| Linux | gcc 13.2.0 |
340340
| macOS | Apple Xcode 14.3.1 (using clang 14.0.3) |
341341
| Windows | Microsoft Visual Studio 2022 version 17.6.5 |
342342

@@ -350,7 +350,7 @@ features that it does support.
350350
The minimum accepted version of gcc is 5.0. Older versions will generate a warning
351351
by `configure` and are unlikely to work.
352352

353-
The JDK is currently known to be able to compile with at least version 11.2 of
353+
The JDK is currently known to be able to compile with at least version 13.2 of
354354
gcc.
355355

356356
In general, any version between these two should be usable.

make/conf/jib-profiles.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,10 +1085,10 @@ var getJibProfilesProfiles = function (input, common, data) {
10851085
var getJibProfilesDependencies = function (input, common) {
10861086

10871087
var devkit_platform_revisions = {
1088-
linux_x64: "gcc11.2.0-OL6.4+1.0",
1088+
linux_x64: "gcc13.2.0-OL6.4+1.0",
10891089
macosx: "Xcode14.3.1+1.0",
10901090
windows_x64: "VS2022-17.6.5+1.0",
1091-
linux_aarch64: input.build_cpu == "x64" ? "gcc11.2.0-OL7.6+1.1" : "gcc11.2.0-OL7.6+1.0",
1091+
linux_aarch64: "gcc13.2.0-OL7.6+1.0",
10921092
linux_arm: "gcc8.2.0-Fedora27+1.0",
10931093
linux_ppc64le: "gcc8.2.0-Fedora27+1.0",
10941094
linux_s390x: "gcc8.2.0-Fedora27+1.0",

make/devkit/Tools.gmk

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ KERNEL_HEADERS_RPM := kernel-headers
5555

5656
ifeq ($(BASE_OS), OL)
5757
ifeq ($(ARCH), aarch64)
58-
BASE_URL := http://yum.oracle.com/repo/OracleLinux/OL7/6/base/$(ARCH)/
58+
BASE_URL := https://yum.oracle.com/repo/OracleLinux/OL7/6/base/$(ARCH)/
5959
LINUX_VERSION := OL7.6
6060
KERNEL_HEADERS_RPM := kernel-uek-headers
6161
else
62-
BASE_URL := http://yum.oracle.com/repo/OracleLinux/OL6/4/base/$(ARCH)/
62+
BASE_URL := https://yum.oracle.com/repo/OracleLinux/OL6/4/base/$(ARCH)/
6363
LINUX_VERSION := OL6.4
6464
endif
6565
else ifeq ($(BASE_OS), Fedora)
@@ -96,8 +96,17 @@ endif
9696
# Define external dependencies
9797

9898
# Latest that could be made to work.
99-
GCC_VER := 11.3.0
100-
ifeq ($(GCC_VER), 11.3.0)
99+
GCC_VER := 13.2.0
100+
ifeq ($(GCC_VER), 13.2.0)
101+
gcc_ver := gcc-13.2.0
102+
binutils_ver := binutils-2.41
103+
ccache_ver := ccache-3.7.12
104+
mpfr_ver := mpfr-4.2.0
105+
gmp_ver := gmp-6.3.0
106+
mpc_ver := mpc-1.3.1
107+
gdb_ver := gdb-13.2
108+
REQUIRED_MIN_MAKE_MAJOR_VERSION := 4
109+
else ifeq ($(GCC_VER), 11.3.0)
101110
gcc_ver := gcc-11.3.0
102111
binutils_ver := binutils-2.39
103112
ccache_ver := ccache-3.7.12
@@ -670,7 +679,11 @@ $(PREFIX)/Tools.gmk: ./Tools.gmk
670679
rm -rf $@
671680
cp $< $@
672681

673-
THESE_MAKEFILES := $(PREFIX)/Makefile $(PREFIX)/Tools.gmk
682+
$(PREFIX)/Tars.gmk: ./Tars.gmk
683+
rm -rf $@
684+
cp $< $@
685+
686+
THESE_MAKEFILES := $(PREFIX)/Makefile $(PREFIX)/Tools.gmk $(PREFIX)/Tars.gmk
674687

675688
##########################################################################################
676689

0 commit comments

Comments
 (0)