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 sfkaney@…, 6 years ago

Cc: sfkaney@… added

comment:2 by anonymous, 6 years ago

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"

comment:3 by anonymous, 6 years ago

Severity: ShowstopperProblem
Summary: No longer builds on MAC OS X 10.11.6 after upgrade to Xcode with Clang 8.0No longer builds without warnings on MAC OS X 10.11.6 after upgrade to Xcode with Clang 8.0
Type: BugsTasks

comment:4 by Kohei Takahashi, 6 years ago

Component: Building Boostasio
Owner: set to chris_kohlhoff
Note: See TracTickets for help on using tickets.