JDK-8302905 : arm32 Raspberry Pi OS build broken by JDK-8301494
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P1
  • Status: Closed
  • Resolution: Fixed
  • CPU: arm
  • Submitted: 2023-02-20
  • Updated: 2023-07-11
  • Resolved: 2023-02-21
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 b11Fixed
Related Reports
Relates :  
Description
Failure to build on "Raspbian GNU/Linux 11 (bullseye)"

configure: Using gcc C compiler version 10.2.1 [gcc (Raspbian 10.2.1-6+rpi1) 10.2.1 20210110]

...

=== Output from failing command(s) repeated here ===
* For target hotspot_variant-server_libjvm_objs_interpreterRT_arm.o:
/home/martin/ws/jdk/src/hotspot/cpu/arm/interpreterRT_arm.cpp: In member function 'virtual void SlowSignatureHandler::pass_object()':
/home/martin/ws/jdk/src/hotspot/cpu/arm/interpreterRT_arm.cpp:309:56: error: operands to '?:' have different types 'std::nullptr_t' and 'intptr_t' {aka 'int'}
  309 |       _toGP[_last_gp++] = (*(intptr_t*)from_addr == 0) ? nullptr : from_addr;
      |                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/home/martin/ws/jdk/src/hotspot/cpu/arm/interpreterRT_arm.cpp:311:45: error: operands to '?:' have different types 'std::nullptr_t' and 'intptr_t' {aka 'int'}
  311 |       *_to++ = (*(intptr_t*)from_addr == 0) ? nullptr : from_addr;
      |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~

* All command lines available in /home/martin/ws/jdk/build/linux-arm-server-release/make-support/failure-logs.
=== End of repeated output ===

Comments
Changeset: 91a2b5ec Author: David Holmes <dholmes@openjdk.org> Date: 2023-02-21 01:23:06 +0000 URL: https://git.openjdk.org/jdk/commit/91a2b5ec6f90b9895924a49319c2c6b7007d96bd
21-02-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/12679 Date: 2023-02-21 00:20:51 +0000
21-02-2023

Fix in progress. PR very soon.
21-02-2023

This looks like a case where it should be 0 rather than nullptr. [~martin] does that change fix it for you?
20-02-2023

git bisect assigns blame
20-02-2023