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

compile error on Alpine with gcc12 after 8298619 in libGetXSpace.c

    XMLWordPrintable

Details

    • b17
    • generic
    • linux

    Backports

      Description

        On Alpine Linux, using gcc12, we run now into this compile warning as error :
        In file included from /openjdk/linuxmuslx86_64/jdk/test/jdk/java/io/File/libGetXSpace.c:31:
        /usr/include/sys/errno.h:1:2: error: #warning redirecting incorrect #include <sys/errno.h> to <errno.h> [-Werror=cpp]
            1 | #warning redirecting incorrect #include <sys/errno.h> to <errno.h>
              | ^~~~~~~
        cc1: all warnings being treated as errors

        Not sure if this warning makes a lot of sense, but we probably better just include <errno.h> like it is done at almost all other places in the codebase ?

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: