Created
December 1, 2016 00:49
-
-
Save cocoatomo/d4688463b47769c8a209901f8c28206e to your computer and use it in GitHub Desktop.
Errors on building mesos on macOS Sierra
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
$ 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
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.
Greate, this helped me a lot.
Great,Thanks.
Solve my problem.
Good.
Solve my problem.
Thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Which was fixed by adding CXXFLAGS=-Wno-deprecated-declarations when
configuring.