JDK-8233698 : GCC 4.8.5 build failure after JDK-8233530
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 14
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-11-06
  • Updated: 2020-01-09
  • Resolved: 2019-11-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 14
14 b23Fixed
Related Reports
Relates :  
Description
Compiling on RHEL, with: 
* Toolchain:      gcc (GNU Compiler Collection)
* C Compiler:     Version 4.8.5 (at /usr/bin/gcc)
* C++ Compiler:   Version 4.8.5 (at /usr/bin/g++)

...breaks after JDK-8233530:

/home/shade/jdk-jdk/src/hotspot/share/memory/operator_new.cpp:95:24: error: unknown option after '#pragma GCC diagnostic' kind [-Werror=pragmas]
 PRAGMA_DISABLE_GCC_WARNING("-Wc++14-compat")
                        ^
cc1plus: error: unrecognized command line option "-Wno-cast-function-type" [-Werror]
cc1plus: error: unrecognized command line option "-Wno-misleading-indentation" [-Werror]
cc1plus: error: unrecognized command line option "-Wno-implicit-fallthrough" [-Werror]
cc1plus: error: unrecognized command line option "-Wno-int-in-bool-context" [-Werror]
cc1plus: all warnings being treated as errors
gmake[3]: *** [/home/shade/jdk-jdk/build/linux-x86_64-server-fastdebug/hotspot/variant-server/libjvm/objs/operator_new.o] Error 1

Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/5bc2e9c9604d User: shade Date: 2019-11-06 18:37:54 +0000
06-11-2019

RFR: https://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/2019-November/036848.html
06-11-2019