RFR: 8295779: Xcode 14.0 fails to build jdk on m1 macos
Lutz Schmidt
lucy at openjdk.org
Thu Nov 10 16:52:39 UTC 2022
On Wed, 19 Oct 2022 15:33:31 GMT, Archie L. Cobbs <duke at openjdk.org> wrote:
> Building on MacOS 12.6 M1 with Xcode 14.0 fails due to C compiler unused parameter warnings:
>
> Creating support/modules_libs/java.desktop/libosx.dylib from 1 file(s)
As an interim solution until LCMS 2.14 has been pulled in, you could suppress the warning like that:
diff --git a/make/modules/java.desktop/lib/Awt2dLibraries.gmk b/make/modules/java.desktop/lib/Awt2dLibraries.gmk
index ce14776503f..55070197ebb 100644
--- a/make/modules/java.desktop/lib/Awt2dLibraries.gmk
+++ b/make/modules/java.desktop/lib/Awt2dLibraries.gmk
@@ -306,7 +306,7 @@ $(eval $(call SetupJdkLibrary, BUILD_LIBLCMS, \
libawt/java2d, \
HEADERS_FROM_SRC := $(LIBLCMS_HEADERS_FROM_SRC), \
DISABLED_WARNINGS_gcc := format-nonliteral stringop-truncation, \
- DISABLED_WARNINGS_clang := format-nonliteral, \
+ DISABLED_WARNINGS_clang := format-nonliteral unused-but-set-parameter, \
LDFLAGS := $(LDFLAGS_JDKLIB) \
$(call SET_SHARED_LIBRARY_ORIGIN), \
LDFLAGS_unix := -L$(INSTALL_LIBRARIES_HERE), \
There are a few other places which need a similar fix.
-------------
PR: https://git.openjdk.org/jdk/pull/10768
More information about the client-libs-dev
mailing list