Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8350344

Cross-build failure: _vptr name conflict

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 25
    • 25
    • hotspot
    • b11
    • aarch64
    • linux

      ARM cross build with Linaro GCC 7.3-2018.05 gives the following error:

      src/hotspot/share/code/codeBlob.hpp:349:21: error: member '_vptr' conflicts with virtual function table field name
         static const Vptr _vptr;
                           ^~~~~
      src/hotspot/share/code/codeBlob.hpp:437:21: error: member '_vptr' conflicts with virtual function table field name
         static const Vptr _vptr;
                           ^~~~~
      src/hotspot/share/code/codeBlob.hpp:477:21: error: member '_vptr' conflicts with virtual function table field name
         static const Vptr _vptr;
                           ^~~~~
      src/hotspot/share/code/codeBlob.hpp:560:21: error: member '_vptr' conflicts with virtual function table field name
         static const Vptr _vptr;

      Workaround (rename _vptr field):
      sed s/_vptr/_vpntr/ -i src/hotspot/share/code/nmethod.* src/hotspot/share/code/codeBlob.*

            bulasevich Boris Ulasevich
            bulasevich Boris Ulasevich
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: