-
Bug
-
Resolution: Fixed
-
P3
-
24
-
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
=== 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
- relates to
-
JDK-8338236 Compile error in cgroup code on Linux when using clang
-
- Resolved
-
- links to
-
Commit(master) openjdk/jdk/6e486181
-
Review(master) openjdk/jdk/21391