-
Bug
-
Resolution: Fixed
-
P2
-
8, 11
-
b09
-
os_x
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8248925 | 8u271 | David Buck | P2 | Resolved | Fixed | b01 |
JDK-8240784 | 8u261 | David Buck | P2 | Closed | Fixed | b01 |
JDK-8244868 | 8u251 | David Buck | P2 | Resolved | Fixed | b34 |
JDK-8251582 | emb-8u271 | David Buck | P2 | Resolved | Fixed | team |
JDK-8246846 | emb-8u261 | David Buck | P2 | Resolved | Fixed | team |
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
This is because Xcode comes with two different standard library implementations, the gnu libstdc++ and the newer libc++. Clang in more recent versions has deprecated libstdc++ and Xcode has picked that up.
In order to change to libc++, we must also change our deployment target from 10.7 to at least 10.9, as specified in the warning message. We currently use 10.7 because that was the minimum version when we brought the mac port in. However, for JDK 9, Oracle already specified the minimum supported version of Macos to be 10.10, so we should be fine bumping the deployment target to that version. We cannot do that until we switch to the new Xcode version however, so for now, lets stick to 10.9.
Making this change in the build is easy, just bump the MACOSX_MINIMUM_VERSION variable in flags.m4 to 10.9 and then change the -stdlib=libstdc++ argument in JVM_LDFLAGS (or remove it altogether). However, when doing so we trigger a lot of warnings which need to be addressed. These are beyond me to get right.
- backported by
-
JDK-8244868 Change macosx deployment target to 10.9
- Resolved
-
JDK-8246846 Change macosx deployment target to 10.9
- Resolved
-
JDK-8248925 Change macosx deployment target to 10.9
- Resolved
-
JDK-8251582 Change macosx deployment target to 10.9
- Resolved
-
JDK-8240784 Change macosx deployment target to 10.9
- Closed
- relates to
-
JDK-8198910 java.desktop needs to update some deprecated APIs now that we're changing deployment target to 10.9 from 10.7
- Open
-
JDK-8199356 Fix hotspot to allow stdlib to use libc++ and to allow changing the deployment target to 10.9
- Closed
-
JDK-8199341 java.desktop should consider explicitly asking which std lib it wants to use
- Closed
-
JDK-8199619 Building HotSpot on Windows should define NOMINMAX
- Closed