JDK-8307110 : zero build broken after JDK-8304265
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang.foreign
  • Affected Version: 21
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: linux
  • CPU: aarch64
  • Submitted: 2023-04-28
  • Updated: 2024-02-16
  • Resolved: 2023-04-28
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 21
21 b21Fixed
Related Reports
Relates :  
Description
The integration of JDK-8304265 has broken the zero build:

Profile linux-aarch64-zero-debug:

[2023-04-27T22:25:18,654Z] Compiling up to 40 files for jdk.jcmd
[2023-04-27T22:25:19,220Z] /opt/mach5/mesos/work_dir/slaves/741e9afd-8c02-45c3-b2e2-9db1450d0832-S24252/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/983d1ce5-e13b-4356-b5d2-51ea5312a636/runs/ec50edac-0ffb-4d2f-be2d-dca4842bb242/workspace/open/src/java.base/share/native/libfallbackLinker/fallbackLinker.c: In function 'Java_jdk_internal_foreign_abi_fallback_LibFallback_ffi_1get_1struct_1offsets':
[2023-04-27T22:25:19,220Z] /opt/mach5/mesos/work_dir/slaves/741e9afd-8c02-45c3-b2e2-9db1450d0832-S24252/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/983d1ce5-e13b-4356-b5d2-51ea5312a636/runs/ec50edac-0ffb-4d2f-be2d-dca4842bb242/workspace/open/src/java.base/share/native/libfallbackLinker/fallbackLinker.c:62:10: error: implicit declaration of function 'ffi_get_struct_offsets' [-Werror=implicit-function-declaration]
[2023-04-27T22:25:19,220Z]    62 |   return ffi_get_struct_offsets((ffi_abi) abi, jlong_to_ptr(type), jlong_to_ptr(offsets));
[2023-04-27T22:25:19,220Z]       |          ^~~~~~~~~~~~~~~~~~~~~~
[2023-04-27T22:25:19,234Z] cc1: all warnings being treated as errors
[2023-04-27T22:25:19,256Z] Lib.gmk:223: recipe for target '/opt/mach5/mesos/work_dir/slaves/741e9afd-8c02-45c3-b2e2-9db1450d0832-S24252/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/983d1ce5-e13b-4356-b5d2-51ea5312a636/runs/ec50edac-0ffb-4d2f-be2d-dca4842bb242/workspace/build/linux-aarch64-zero-debug/support/native/java.base/libfallbackLinker/static/fallbackLinker.o' failed
[2023-04-27T22:25:19,257Z] make[3]: *** [/opt/mach5/mesos/work_dir/slaves/741e9afd-8c02-45c3-b2e2-9db1450d0832-S24252/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/983d1ce5-e13b-4356-b5d2-51ea5312a636/runs/ec50edac-0ffb-4d2f-be2d-dca4842bb242/workspace/build/linux-aarch64-zero-debug/support/native/java.base/libfallbackLinker/static/fallbackLinker.o] Error 1
[2023-04-27T22:25:19,257Z] make[3]: *** Waiting for unfinished jobs....
[2023-04-27T22:25:19,281Z] make[2]: *** [java.base-static-libs] Error 2
[2023-04-27T22:25:19,281Z] make[2]: *** Waiting for unfinished jobs....
[2023-04-27T22:25:19,281Z] make/Main.gmk:211: recipe for target 'java.base-static-libs' failed
[2023-04-27T22:25:19,294Z] Compiling up to 254 files for jdk.jdi
[2023-04-27T22:27:23,872Z] 
[2023-04-27T22:27:23,872Z] ERROR: Build failed for target 'default (product-bundles test-bundles static-libs-bundles)' in configuration 'linux-aarch64-zero-debug' (exit code 2) 
[2023-04-27T22:27:23,901Z] 

and profile linux-aarch64-zero:

[2023-04-27T22:24:38,857Z] Compiling up to 242 files for jdk.javadoc
[2023-04-27T22:24:42,032Z] /opt/mach5/mesos/work_dir/slaves/741e9afd-8c02-45c3-b2e2-9db1450d0832-S79142/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/af0d917b-a890-4cec-881b-207230b9bde8/runs/b7ddc90b-fee3-43e9-9964-1fc9d9b30a5b/workspace/open/src/java.base/share/native/libfallbackLinker/fallbackLinker.c: In function 'Java_jdk_internal_foreign_abi_fallback_LibFallback_ffi_1get_1struct_1offsets':
[2023-04-27T22:24:42,032Z] /opt/mach5/mesos/work_dir/slaves/741e9afd-8c02-45c3-b2e2-9db1450d0832-S79142/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/af0d917b-a890-4cec-881b-207230b9bde8/runs/b7ddc90b-fee3-43e9-9964-1fc9d9b30a5b/workspace/open/src/java.base/share/native/libfallbackLinker/fallbackLinker.c:62:10: error: implicit declaration of function 'ffi_get_struct_offsets' [-Werror=implicit-function-declaration]
[2023-04-27T22:24:42,032Z]    62 |   return ffi_get_struct_offsets((ffi_abi) abi, jlong_to_ptr(type), jlong_to_ptr(offsets));
[2023-04-27T22:24:42,032Z]       |          ^~~~~~~~~~~~~~~~~~~~~~
[2023-04-27T22:24:42,046Z] cc1: all warnings being treated as errors
[2023-04-27T22:24:42,075Z] make[3]: *** [/opt/mach5/mesos/work_dir/slaves/741e9afd-8c02-45c3-b2e2-9db1450d0832-S79142/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/af0d917b-a890-4cec-881b-207230b9bde8/runs/b7ddc90b-fee3-43e9-9964-1fc9d9b30a5b/workspace/build/linux-aarch64-zero/support/native/java.base/libfallbackLinker/static/fallbackLinker.o] Error 1
[2023-04-27T22:24:42,075Z] Lib.gmk:223: recipe for target '/opt/mach5/mesos/work_dir/slaves/741e9afd-8c02-45c3-b2e2-9db1450d0832-S79142/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/af0d917b-a890-4cec-881b-207230b9bde8/runs/b7ddc90b-fee3-43e9-9964-1fc9d9b30a5b/workspace/build/linux-aarch64-zero/support/native/java.base/libfallbackLinker/static/fallbackLinker.o' failed
[2023-04-27T22:24:42,075Z] make[3]: *** Waiting for unfinished jobs....
[2023-04-27T22:24:42,123Z] make/Main.gmk:211: recipe for target 'java.base-static-libs' failed
[2023-04-27T22:24:42,123Z] make[2]: *** [java.base-static-libs] Error 2
[2023-04-27T22:24:42,123Z] make[2]: *** Waiting for unfinished jobs....
[2023-04-27T22:26:09,694Z] 
[2023-04-27T22:26:09,695Z] ERROR: Build failed for target 'default (product-bundles test-bundles static-libs-bundles)' in configuration 'linux-aarch64-zero' (exit code 2) 
[2023-04-27T22:26:09,697Z] Stopping javac server


Comments
The fix for this bug is integrated in jdk-21+21-1720.
28-04-2023

[~jvernee] - Thanks for the quick resolution of this issue. I'm looking forward to when this fix reaches Tier5 sometime this weekend!!
28-04-2023

Changeset: 4818c798 Author: Jorn Vernee <jvernee@openjdk.org> Date: 2023-04-28 21:43:33 +0000 URL: https://git.openjdk.org/jdk/commit/4818c798bcd0ae84cd15c7ab101902896b620016
28-04-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/13728 Date: 2023-04-28 19:51:02 +0000
28-04-2023

[~pminborg] - Please take a look at these zero build failures that are happening in Tier5. Thanks!
28-04-2023