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

Compilation error: forbidden functions do not match previous declaration

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • None
    • hotspot
    • None

      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 to JDK-8314488.

      Note: building on recent Clang versions was already broken due to JDK-8357579, this is an unrelated problem.

            Unassigned Unassigned
            fandreuzzi Francesco Andreuzzi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: