JDK-8185826 : HotSpot build failure with GCC 7.1.1
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 10
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2017-08-04
  • Updated: 2019-07-18
  • Resolved: 2017-08-04
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 10
10 b21Fixed
Related Reports
Relates :  
Relates :  
Description
http://mail.openjdk.java.net/pipermail/hotspot-dev/2017-August/027746.html

I tried to jdk10/hs on Fedora 26 x86_64 with GCC 7.1.1, however it was failed as below:
-------------------
/home/ysuenaga/OpenJDK/jdk10-hs/hotspot/src/share/vm/oops/array.hpp: In static member function 'static int Array<T>::size(int, int)':
/home/ysuenaga/OpenJDK/jdk10-hs/hotspot/src/share/vm/oops/array.hpp:138:12: error: there are no arguments to 'align_size_up' that depend on a template parameter, so a declaration of 'align_size_up' must be available [-fpermissive]
      return align_size_up(byte_sizeof(length, elm_byte_size), BytesPerWord) / BytesPerWord; // FIXME
             ^~~~~~~~~~~~~
/home/ysuenaga/OpenJDK/jdk10-hs/hotspot/src/share/vm/oops/array.hpp:138:12: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
In file included from /home/ysuenaga/OpenJDK/jdk10-hs/hotspot/src/share/vm/runtime/os.inline.hpp:30:0,
                  from /home/ysuenaga/OpenJDK/jdk10-hs/hotspot/src/share/vm/runtime/thread.inline.hpp:31,
    ... (rest of output omitted)
-------------------

I think this failure is since JDK-8072061:
   http://hg.openjdk.java.net/jdk10/hs/hotspot/rev/731370f39fcd#l42.35


http://mail.openjdk.java.net/pipermail/hotspot-dev/2017-August/027753.html

align_size_up() as recently removed.

8178499: Remove _ptr_ and _size_ infixes from align functions