-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
-
11
-
None
-
generic
-
os_x
Building 11u on the latest macos-13 GHA platform (XCode 14, clang 14) fails as we are passing arguments to a function without a prototype (see [1] for examples) and this is deprecated in this platform.
The build should exclude the `-Werror,-Wdeprecated-non-prototype` flags in the builds.
This is a 11u only issue, as the make infrastructure was reorganized inJDK-8244044 after OpenJDK 15, and enhanced afterwards. Backporting JDK-8244044 is an important change that should be avoided unless strictly necessary.
[1]
```
src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:430:43: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:458:44: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:677:43: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:706:44: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:922:48: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:1140:48: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:1498:53: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:1736:55: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
```
The build should exclude the `-Werror,-Wdeprecated-non-prototype` flags in the builds.
This is a 11u only issue, as the make infrastructure was reorganized in
[1]
```
src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:430:43: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:458:44: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:677:43: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:706:44: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:922:48: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:1140:48: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:1498:53: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:1736:55: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
```
- relates to
-
JDK-8318039 GHA: Bump macOS and Xcode versions
- Resolved
- links to
-
Review(pr/2844) openjdk/jdk11u-dev/2854