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

Compile error in cgroup coding when using toolchain clang

XMLWordPrintable

    • b19
    • generic
    • linux

      When building on Linux but with toolchain-type clang , I run into this error :

      === Output from failing command(s) repeated here ===
      * For target hotspot_variant-server_libjvm_objs_cgroupSubsystem_linux.o:
      In file included from /jdk/src/hotspot/os/linux/cgroupSubsystem_linux.cpp:30:
      /jdk/src/hotspot/os/linux/cgroupV2Subsystem_linux.hpp:67:17: error: 'subsystem_path' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
          const char* subsystem_path() {
                      ^
      /jdk/src/hotspot/os/linux/cgroupSubsystem_linux.hpp:213:25: note: overridden virtual function is here
          virtual const char* subsystem_path() = 0;
                              ^
      In file included from /jdk/src/hotspot/os/linux/cgroupSubsystem_linux.cpp:30:
      /jdk/src/hotspot/os/linux/cgroupV2Subsystem_linux.hpp:73:10: error: 'set_subsystem_path' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
          void set_subsystem_path(const char* cgroup_path) {
               ^
      /jdk/src/hotspot/os/linux/cgroupSubsystem_linux.hpp:214:18: note: overridden virtual function is here
          virtual void set_subsystem_path(const char* cgroup_path) = 0;
                       ^
      In file included from /jdk/src/hotspot/os/linux/cgroupSubsystem_linux.cpp:30:
         ... (rest of output omitted)
      * For target hotspot_variant-server_libjvm_objs_cgroupV2Subsystem_linux.o:
      In file included from /jdk/src/hotspot/os/linux/cgroupV2Subsystem_linux.cpp:25:
      /jdk/src/hotspot/os/linux/cgroupV2Subsystem_linux.hpp:67:17: error: 'subsystem_path' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
          const char* subsystem_path() {
                      ^
      /jdk/src/hotspot/os/linux/cgroupSubsystem_linux.hpp:213:25: note: overridden virtual function is here
          virtual const char* subsystem_path() = 0;
                              ^
      In file included from /jdk/src/hotspot/os/linux/cgroupV2Subsystem_linux.cpp:25:
      /jdk/src/hotspot/os/linux/cgroupV2Subsystem_linux.hpp:73:10: error: 'set_subsystem_path' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
          void set_subsystem_path(const char* cgroup_path) {
               ^
      /jdk/src/hotspot/os/linux/cgroupSubsystem_linux.hpp:214:18: note: overridden virtual function is here
          virtual void set_subsystem_path(const char* cgroup_path) = 0;
                       ^
      In file included from /jdk/src/hotspot/os/linux/cgroupV2Subsystem_linux.cpp:25:
         ... (rest of output omitted)


      We use this clang on the build machine
      clang --version
      clang version 15.0.7
      Target: x86_64-suse-linux

            mbaesken Matthias Baesken
            mbaesken Matthias Baesken
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: