Compilation error: forbidden functions do not match previous declaration

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: