Cross-build failure: _vptr name conflict

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 25
    • Affects Version/s: 25
    • Component/s: 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.*

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

              Created:
              Updated:
              Resolved: