JDK-8271956 : AArch64: C1 build failed after JDK-8270947
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 17,18
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • CPU: aarch64
  • Submitted: 2021-08-05
  • Updated: 2022-11-07
  • Resolved: 2021-08-09
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 17 JDK 18
17.0.6Fixed 18 b10Fixed
Related Reports
Relates :  
Description
./configure --with-debug-level=release --with-jvm-variants=client

=== Output from failing command(s) repeated here ===
* For target hotspot_variant-client_libjvm_objs_macroAssembler_aarch64.o:
/home/haosun01/jdk/jdk_src/src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp: In member function 'u_char* MacroAssembler::zero_words(Register, Register)':
/home/haosun01/jdk/jdk_src/src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp:4642:30: error: invalid use of incomplete type 'class CompileTask'
 4642 |         && is_c2_compile(task->comp_level())) {
      |                              ^~
In file included from /home/haosun01/jdk/jdk_src/src/hotspot/share/ci/ciEnv.hpp:32,
                 from /home/haosun01/jdk/jdk_src/src/hotspot/share/c1/c1_Compilation.hpp:28,
                 from /home/haosun01/jdk/jdk_src/src/hotspot/share/c1/c1_ValueType.hpp:28,
                 from /home/haosun01/jdk/jdk_src/src/hotspot/share/c1/c1_LIR.hpp:29,
                 from /home/haosun01/jdk/jdk_src/src/hotspot/share/c1/c1_FrameMap.hpp:30,
                 from /home/haosun01/jdk/jdk_src/src/hotspot/share/c1/c1_CodeStubs.hpp:28,
                 from /home/haosun01/jdk/jdk_src/src/hotspot/share/c1/c1_LIRAssembler.hpp:28,
                 from /home/haosun01/jdk/jdk_src/src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp:55:
/home/haosun01/jdk/jdk_src/src/hotspot/share/code/dependencies.hpp:60:7: note: forward declaration of 'class CompileTask'
   60 | class CompileTask;
      |       ^~~~~~~~~~~

* All command lines available in /home/haosun01/jdk/build/make-support/failure-logs.
=== End of repeated output ===
Comments
A pull request was submitted for review. URL: https://git.openjdk.org/jdk11u-dev/pull/1507 Date: 2022-11-07 20:49:21 +0000
07-11-2022

Fix request [17u] I backport this for parity with 17.0.6-oracle. No risk, trivial change. Follow-up to 8270947. Clean backport. SAP nightly testing passed.
18-10-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/797 Date: 2022-10-14 14:13:36 +0000
14-10-2022

Changeset: b84a9c7b Author: Hao Sun <haosun@openjdk.org> Committer: Aleksey Shipilev <shade@openjdk.org> Date: 2021-08-09 09:38:13 +0000 URL: https://git.openjdk.java.net/jdk/commit/b84a9c7b377282bd9b3d9ac78707f0c12f8dc53d
09-08-2021

ILW = Client build failure on aarch64 due to missing header, only client build on aarch64, no workaround = MLH = P4
06-08-2021

I suppose header `compiler/compileTask.hpp` is missing for COMPILER1
06-08-2021