Opened 2 years ago

Last modified 2 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 Changed 2 years ago by sfkaney@…

Cc: sfkaney@… added

comment:2 Changed 2 years ago by anonymous

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 Changed 2 years ago by anonymous

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 Changed 2 years ago by Kohei Takahashi

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