Skip to content

Commit 713483c

Browse files
committed
8265373: Change to GCC 10.3 for building on Linux at Oracle
Reviewed-by: mikael
1 parent 3990713 commit 713483c

File tree

2 files changed

+23
-13
lines changed

2 files changed

+23
-13
lines changed

make/conf/jib-profiles.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,10 @@ var getJibProfilesProfiles = function (input, common, data) {
419419
"linux-x64": {
420420
target_os: "linux",
421421
target_cpu: "x64",
422-
dependencies: ["devkit", "gtest", "graphviz", "pandoc"],
423-
configure_args: concat(common.configure_args_64bit,
422+
dependencies: ["devkit", "gtest", "build_devkit", "graphviz", "pandoc"],
423+
configure_args: concat(
424+
(input.build_cpu == "x64" ? common.configure_args_64bit
425+
: "--openjdk-target=x86_64-linux-gnu"),
424426
"--with-zlib=system", "--disable-dtrace",
425427
(isWsl(input) ? [ "--host=x86_64-unknown-linux-gnu",
426428
"--build=x86_64-unknown-linux-gnu" ] : [])),
@@ -1044,10 +1046,10 @@ var getJibProfilesProfiles = function (input, common, data) {
10441046
var getJibProfilesDependencies = function (input, common) {
10451047

10461048
var devkit_platform_revisions = {
1047-
linux_x64: "gcc10.2.0-OL6.4+1.0",
1049+
linux_x64: "gcc10.3.0-OL6.4+1.0",
10481050
macosx: "Xcode12.4+1.0",
10491051
windows_x64: "VS2019-16.9.3+1.0",
1050-
linux_aarch64: "gcc10.2.0-OL7.6+1.0",
1052+
linux_aarch64: "gcc10.3.0-OL7.6+1.0",
10511053
linux_arm: "gcc8.2.0-Fedora27+1.0",
10521054
linux_ppc64le: "gcc8.2.0-Fedora27+1.0",
10531055
linux_s390x: "gcc8.2.0-Fedora27+1.0"
@@ -1122,7 +1124,10 @@ var getJibProfilesDependencies = function (input, common) {
11221124
organization: common.organization,
11231125
ext: "tar.gz",
11241126
module: "devkit-" + input.build_platform,
1125-
revision: devkit_platform_revisions[input.build_platform]
1127+
revision: devkit_platform_revisions[input.build_platform],
1128+
// Only set --with-build-devkit when cross compiling.
1129+
configure_args: (input.build_cpu == input.target_cpu ? false
1130+
: "--with-build-devkit=" + input.get("build_devkit", "home_path"))
11261131
},
11271132

11281133
lldb: {

make/devkit/Tools.gmk

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,17 @@ endif
8787
# Define external dependencies
8888

8989
# Latest that could be made to work.
90-
GCC_VER := 10.2.0
91-
ifeq ($(GCC_VER), 10.2.0)
90+
GCC_VER := 10.3.0
91+
ifeq ($(GCC_VER), 10.3.0)
92+
gcc_ver := gcc-10.3.0
93+
binutils_ver := binutils-2.36.1
94+
ccache_ver := ccache-3.7.11
95+
mpfr_ver := mpfr-4.1.0
96+
gmp_ver := gmp-6.2.0
97+
mpc_ver := mpc-1.1.0
98+
gdb_ver := gdb-10.1
99+
REQUIRED_MIN_MAKE_MAJOR_VERSION := 4
100+
else ifeq ($(GCC_VER), 10.2.0)
92101
gcc_ver := gcc-10.2.0
93102
binutils_ver := binutils-2.35
94103
ccache_ver := ccache-3.7.11
@@ -245,12 +254,8 @@ $(foreach p,GCC BINUTILS CCACHE MPFR GMP MPC GDB,$(eval $(call Download,$(p))))
245254

246255
RPM_ARCHS := $(ARCH) noarch
247256
ifeq ($(ARCH),x86_64)
248-
ifeq ($(BUILD),$(HOST))
249-
ifeq ($(TARGET),$(HOST))
250-
# When building the native compiler for x86_64, enable mixed mode.
251-
RPM_ARCHS += i386 i686
252-
endif
253-
endif
257+
# Enable mixed mode.
258+
RPM_ARCHS += i386 i686
254259
else ifeq ($(ARCH),i686)
255260
RPM_ARCHS += i386
256261
else ifeq ($(ARCH), armhfp)

0 commit comments

Comments
 (0)