Opened 6 years ago
Last modified 6 years ago
#12482 new Tasks
No longer builds without warnings on MAC OS X 10.11.6 after upgrade to Xcode with Clang 8.0
| Reported by: | anonymous | Owned by: | chris_kohlhoff |
|---|---|---|---|
| Milestone: | Boost 1.61.0 | Component: | asio |
| Version: | Boost 1.61.0 | Severity: | Problem |
| Keywords: | Cc: | sfkaney@… |
Description
After an update to Xcode (version 8) on OS X 10.11.6 I found that my projects won't build due to 'OSMemoryBarrier being deprecated. I tried to rebuild the library with the new tools and found that it won't build either due to the same error.
In file included from /usr/local/include/boost/asio/detail/fenced_block.hpp:24:
/usr/local/include/boost/asio/detail/macos_fenced_block.hpp:51:5: warning: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_thread_fence() from <atomic> instead [-Wdeprecated-declarations]
OSMemoryBarrier();
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libkern/OSAtomicDeprecated.h:749:9: note: 'OSMemoryBarrier' has been explicitly marked deprecated here
void OSMemoryBarrier( void );
^
2 warnings generated.
Change History (4)
comment:1 by , 6 years ago
| Cc: | added |
|---|
comment:2 by , 6 years ago
comment:3 by , 6 years ago
| Severity: | Showstopper → Problem |
|---|---|
| Summary: | No longer builds on MAC OS X 10.11.6 after upgrade to Xcode with Clang 8.0 → No longer builds without warnings on MAC OS X 10.11.6 after upgrade to Xcode with Clang 8.0 |
| Type: | Bugs → Tasks |
comment:4 by , 6 years ago
| Component: | Building Boost → asio |
|---|---|
| Owner: | set to |
Note:
See TracTickets
for help on using tickets.

Using a deprecated API is not an error. Your compiler settings are simply too strict for now.
it needs to be addressed, for sure, but the immediate issue is your problem - not a "showstopper"