[packages/openjdk8] disable -Werror in hotspot
atler
atler at pld-linux.org
Mon Aug 2 12:39:49 CEST 2021
commit d164db4baff882e53a51bc5f59a865cfa25b04ea
Author: Jan Palus <atler at pld-linux.org>
Date: Mon Aug 2 12:38:14 2021 +0200
disable -Werror in hotspot
triggers bogus nonnull warnings treated as errors. noticed already by
icedtea (infra down):
http://openjdk.5641.n7.nabble.com/Bug-3838-New-IcedTea8-Bogus-Wnonnull-warning-on-Zero-builds-td463114.html
possibly caused by gcc 11 regression:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96003
hotspot-disable-werror.patch | 13 +++++++++++++
openjdk8.spec | 2 ++
2 files changed, 15 insertions(+)
---
diff --git a/openjdk8.spec b/openjdk8.spec
index 179aaf7..13f6170 100644
--- a/openjdk8.spec
+++ b/openjdk8.spec
@@ -56,6 +56,7 @@ Patch9: gcc11.patch
Patch10: link-with-as-needed.patch
Patch11: aarch32.patch
Patch12: atomic.patch
+Patch13: hotspot-disable-werror.patch
URL: http://openjdk.java.net/
BuildRequires: /usr/bin/jar
BuildRequires: alsa-lib-devel
@@ -451,6 +452,7 @@ done
%patch11 -p1
%patch12 -p1
%endif
+%patch13 -p1
%build
# Make sure we have /proc mounted - otherwise idlc will fail later.
diff --git a/hotspot-disable-werror.patch b/hotspot-disable-werror.patch
new file mode 100644
index 0000000..bd79aa1
--- /dev/null
+++ b/hotspot-disable-werror.patch
@@ -0,0 +1,13 @@
+# DP: Turn off -Werror for hotspot, overwrites -fpermissive.
+
+--- a/hotspot/make/linux/makefiles/gcc.make
++++ b/hotspot/make/linux/makefiles/gcc.make
+@@ -202,7 +202,7 @@ else
+ endif
+
+ # Compiler warnings are treated as errors
+-WARNINGS_ARE_ERRORS = -Werror
++WARNINGS_ARE_ERRORS =
+
+ ifeq ($(USE_CLANG), true)
+ # However we need to clean the code up before we can unrestrictedly enable this option with Clang
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/openjdk8.git/commitdiff/d164db4baff882e53a51bc5f59a865cfa25b04ea
More information about the pld-cvs-commit
mailing list