Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Errors on building mesos on macOS Sierra
In file included from ../../src/appc/spec.cpp:17:
In file included from ../../3rdparty/stout/include/stout/os.hpp:63:
In file included from ../../3rdparty/stout/include/stout/os/su.hpp:23:
../../3rdparty/stout/include/stout/os/posix/su.hpp:241:9: error: 'syscall' is deprecated: first deprecated in macOS 10.12 - syscall(2) is unsupported; please
switch to a supported interface. For SYS_kdebug_trace use kdebug_signpost(). [-Werror,-Wdeprecated-declarations]
if (::syscall(SYS_initgroups, ngroups, _gids, uid.get()) == -1) {
^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int syscall(int, ...);
^
In file included from ../../src/appc/spec.cpp:19:
In file included from ../../3rdparty/stout/include/stout/protobuf.hpp:31:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/repeated_field.h:58:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/generated_message_util.h:44:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/stubs/once.h:81:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/stubs/atomicops.h:184:
../3rdparty/protobuf-2.6.1/src/google/protobuf/stubs/atomicops_internals_macosx.h:47:9: error: 'OSAtomicCompareAndSwap32' is deprecated: first deprecated in
macOS 10.12 - Use std::atomic_compare_exchange_strong_explicit(std::memory_order_relaxed) from <atomic> instead [-Werror,-Wdeprecated-declarations]
if (OSAtomicCompareAndSwap32(old_value, new_value,
^
/usr/include/libkern/OSAtomicDeprecated.h:502:9: note: 'OSAtomicCompareAndSwap32' has been explicitly marked deprecated here
bool OSAtomicCompareAndSwap32( int32_t __oldValue, int32_t __newValue, volatile int32_t *__theValue );
^
In file included from ../../src/appc/spec.cpp:19:
In file included from ../../3rdparty/stout/include/stout/protobuf.hpp:31:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/repeated_field.h:58:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/generated_message_util.h:44:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/stubs/once.h:81:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/stubs/atomicops.h:184:
../3rdparty/protobuf-2.6.1/src/google/protobuf/stubs/atomicops_internals_macosx.h:61:13: error: 'OSAtomicCompareAndSwap32' is deprecated: first deprecated in
macOS 10.12 - Use std::atomic_compare_exchange_strong_explicit(std::memory_order_relaxed) from <atomic> instead [-Werror,-Wdeprecated-declarations]
} while (!OSAtomicCompareAndSwap32(old_value, new_value,
^
/usr/include/libkern/OSAtomicDeprecated.h:502:9: note: 'OSAtomicCompareAndSwap32' has been explicitly marked deprecated here
bool OSAtomicCompareAndSwap32( int32_t __oldValue, int32_t __newValue, volatile int32_t *__theValue );
^
In file included from ../../src/appc/spec.cpp:19:
In file included from ../../3rdparty/stout/include/stout/protobuf.hpp:31:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/repeated_field.h:58:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/generated_message_util.h:44:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/stubs/once.h:81:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/stubs/atomicops.h:184:
../3rdparty/protobuf-2.6.1/src/google/protobuf/stubs/atomicops_internals_macosx.h:68:10: error: 'OSAtomicAdd32' is deprecated: first deprecated in macOS 10.12 -
Use std::atomic_fetch_add_explicit(std::memory_order_relaxed) from <atomic> instead [-Werror,-Wdeprecated-declarations]
return OSAtomicAdd32(increment, const_cast<Atomic32*>(ptr));
^
/usr/include/libkern/OSAtomicDeprecated.h:146:9: note: 'OSAtomicAdd32' has been explicitly marked deprecated here
int32_t OSAtomicAdd32( int32_t __theAmount, volatile int32_t *__theValue );
^
In file included from ../../src/appc/spec.cpp:19:
In file included from ../../3rdparty/stout/include/stout/protobuf.hpp:31:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/repeated_field.h:58:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/generated_message_util.h:44:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/stubs/once.h:81:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/stubs/atomicops.h:184:
../3rdparty/protobuf-2.6.1/src/google/protobuf/stubs/atomicops_internals_macosx.h:73:10: error: 'OSAtomicAdd32Barrier' is deprecated: first deprecated in macOS
10.12 - Use std::atomic_fetch_add() from <atomic> instead [-Werror,-Wdeprecated-declarations]
return OSAtomicAdd32Barrier(increment, const_cast<Atomic32*>(ptr));
^
/usr/include/libkern/OSAtomicDeprecated.h:161:9: note: 'OSAtomicAdd32Barrier' has been explicitly marked deprecated here
int32_t OSAtomicAdd32Barrier( int32_t __theAmount, volatile int32_t *__theValue );
^
In file included from ../../src/appc/spec.cpp:19:
In file included from ../../3rdparty/stout/include/stout/protobuf.hpp:31:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/repeated_field.h:58:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/generated_message_util.h:44:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/stubs/once.h:81:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/stubs/atomicops.h:184:
../3rdparty/protobuf-2.6.1/src/google/protobuf/stubs/atomicops_internals_macosx.h:77:3: error: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12
- Use std::atomic_thread_fence() from <atomic> instead [-Werror,-Wdeprecated-declarations]
OSMemoryBarrier();
^
/usr/include/libkern/OSAtomicDeprecated.h:749:9: note: 'OSMemoryBarrier' has been explicitly marked deprecated here
void OSMemoryBarrier( void );
^
In file included from ../../src/appc/spec.cpp:19:
In file included from ../../3rdparty/stout/include/stout/protobuf.hpp:31:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/repeated_field.h:58:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/generated_message_util.h:44:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/stubs/once.h:81:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/stubs/atomicops.h:184:
../3rdparty/protobuf-2.6.1/src/google/protobuf/stubs/atomicops_internals_macosx.h:85:9: error: 'OSAtomicCompareAndSwap32Barrier' is deprecated: first deprecated
in macOS 10.12 - Use std::atomic_compare_exchange_strong() from <atomic> instead [-Werror,-Wdeprecated-declarations]
if (OSAtomicCompareAndSwap32Barrier(old_value, new_value,
^
/usr/include/libkern/OSAtomicDeprecated.h:518:9: note: 'OSAtomicCompareAndSwap32Barrier' has been explicitly marked deprecated here
bool OSAtomicCompareAndSwap32Barrier( int32_t __oldValue, int32_t __newValue, volatile int32_t *__theValue );
^
In file included from ../../src/appc/spec.cpp:19:
In file included from ../../3rdparty/stout/include/stout/protobuf.hpp:31:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/repeated_field.h:58:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/generated_message_util.h:44:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/stubs/once.h:81:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/stubs/atomicops.h:184:
../3rdparty/protobuf-2.6.1/src/google/protobuf/stubs/atomicops_internals_macosx.h:138:9: error: 'OSAtomicCompareAndSwap64' is deprecated: first deprecated in
macOS 10.12 - Use std::atomic_compare_exchange_strong_explicit(std::memory_order_relaxed) from <atomic> instead [-Werror,-Wdeprecated-declarations]
if (OSAtomicCompareAndSwap64(old_value, new_value,
^
/usr/include/libkern/OSAtomicDeprecated.h:628:9: note: 'OSAtomicCompareAndSwap64' has been explicitly marked deprecated here
bool OSAtomicCompareAndSwap64( int64_t __oldValue, int64_t __newValue,
^
In file included from ../../src/appc/spec.cpp:19:
In file included from ../../3rdparty/stout/include/stout/protobuf.hpp:31:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/repeated_field.h:58:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/generated_message_util.h:44:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/stubs/once.h:81:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/stubs/atomicops.h:184:
../3rdparty/protobuf-2.6.1/src/google/protobuf/stubs/atomicops_internals_macosx.h:152:13: error: 'OSAtomicCompareAndSwap64' is deprecated: first deprecated in
macOS 10.12 - Use std::atomic_compare_exchange_strong_explicit(std::memory_order_relaxed) from <atomic> instead [-Werror,-Wdeprecated-declarations]
} while (!OSAtomicCompareAndSwap64(old_value, new_value,
^
/usr/include/libkern/OSAtomicDeprecated.h:628:9: note: 'OSAtomicCompareAndSwap64' has been explicitly marked deprecated here
bool OSAtomicCompareAndSwap64( int64_t __oldValue, int64_t __newValue,
^
In file included from ../../src/appc/spec.cpp:19:
In file included from ../../3rdparty/stout/include/stout/protobuf.hpp:31:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/repeated_field.h:58:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/generated_message_util.h:44:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/stubs/once.h:81:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/stubs/atomicops.h:184:
../3rdparty/protobuf-2.6.1/src/google/protobuf/stubs/atomicops_internals_macosx.h:159:10: error: 'OSAtomicAdd64' is deprecated: first deprecated in macOS 10.12
- Use std::atomic_fetch_add_explicit(std::memory_order_relaxed) from <atomic> instead [-Werror,-Wdeprecated-declarations]
return OSAtomicAdd64(increment, reinterpret_cast<volatile int64_t*>(ptr));
^
/usr/include/libkern/OSAtomicDeprecated.h:231:9: note: 'OSAtomicAdd64' has been explicitly marked deprecated here
int64_t OSAtomicAdd64( int64_t __theAmount,
^
In file included from ../../src/appc/spec.cpp:19:
In file included from ../../3rdparty/stout/include/stout/protobuf.hpp:31:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/repeated_field.h:58:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/generated_message_util.h:44:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/stubs/once.h:81:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/stubs/atomicops.h:184:
../3rdparty/protobuf-2.6.1/src/google/protobuf/stubs/atomicops_internals_macosx.h:164:10: error: 'OSAtomicAdd64Barrier' is deprecated: first deprecated in macOS
10.12 - Use std::atomic_fetch_add() from <atomic> instead [-Werror,-Wdeprecated-declarations]
return OSAtomicAdd64Barrier(increment,
^
/usr/include/libkern/OSAtomicDeprecated.h:247:9: note: 'OSAtomicAdd64Barrier' has been explicitly marked deprecated here
int64_t OSAtomicAdd64Barrier( int64_t __theAmount,
^
In file included from ../../src/appc/spec.cpp:19:
In file included from ../../3rdparty/stout/include/stout/protobuf.hpp:31:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/repeated_field.h:58:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/generated_message_util.h:44:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/stubs/once.h:81:
In file included from ../3rdparty/protobuf-2.6.1/src/google/protobuf/stubs/atomicops.h:184:
../3rdparty/protobuf-2.6.1/src/google/protobuf/stubs/atomicops_internals_macosx.h:173:9: error: 'OSAtomicCompareAndSwap64Barrier' is deprecated: first
deprecated in macOS 10.12 - Use std::atomic_compare_exchange_strong() from <atomic> instead [-Werror,-Wdeprecated-declarations]
if (OSAtomicCompareAndSwap64Barrier(
^
/usr/include/libkern/OSAtomicDeprecated.h:645:9: note: 'OSAtomicCompareAndSwap64Barrier' has been explicitly marked deprecated here
bool OSAtomicCompareAndSwap64Barrier( int64_t __oldValue, int64_t __newValue,
^
12 errors generated.
make[2]: *** [appc/libmesos_no_3rdparty_la-spec.lo] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1
@xiaods

This comment has been minimized.

Copy link

@xiaods xiaods commented Dec 3, 2016

Which was fixed by adding CXXFLAGS=-Wno-deprecated-declarations when
configuring.

@xiaods

This comment has been minimized.

Copy link

@xiaods xiaods commented Dec 3, 2016

$ brew unlink subversion
$ brew install subversion
$ ../configure CXXFLAGS=-Wno-deprecated-declarations --disable-python
--disable-java --with-apr=/usr/local/opt/apr/libexec
--with-svn=/usr/local/opt/subversion

@xiaods

This comment has been minimized.

Copy link

@xiaods xiaods commented Dec 3, 2016

Another tip. If you are on macOS sierra, you might notice the linking is
extremely slow using the default clang.

Using CXXFLAGS -fvisibility-inlines-hidden will greatly speedup the
linking.

@RemoteEvilDragon

This comment has been minimized.

Copy link

@RemoteEvilDragon RemoteEvilDragon commented Mar 24, 2017

Greate, this helped me a lot.

@yzchaogmail

This comment has been minimized.

Copy link

@yzchaogmail yzchaogmail commented Nov 5, 2017

Great,Thanks.
Solve my problem.

@Stephan14

This comment has been minimized.

Copy link

@Stephan14 Stephan14 commented Apr 4, 2018

Good.
Solve my problem.

@gjain-ontic

This comment has been minimized.

Copy link

@gjain-ontic gjain-ontic commented Jun 4, 2018

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment