I'm getting the following error when compiling Hotspot Clang 20:
/usr/include/string.h:356:14: error: exception specification in declaration does not match previous declaration
356 | extern char *strtok (char *__restrict __s, const char *__restrict __delim)
Full compilation log in the attached file. I bisected the first commit introducing this problem to be related toJDK-8314488.
Note: building on recent Clang versions was already broken due to JDK-8357579, this is an unrelated problem.
/usr/include/string.h:356:14: error: exception specification in declaration does not match previous declaration
356 | extern char *strtok (char *__restrict __s, const char *__restrict __delim)
Full compilation log in the attached file. I bisected the first commit introducing this problem to be related to
Note: building on recent Clang versions was already broken due to JDK-8357579, this is an unrelated problem.
- caused by
-
JDK-8314488 Compiling the JDK with C++17
-
- Resolved
-
- duplicates
-
JDK-8367051 Build failure with clang on linux and AIX after switch to C++17
-
- Resolved
-
- relates to
-
JDK-8357579 Compilation error: first argument in call to 'memset' is a pointer to non-trivially copyable type
-
- Open
-