hiking90 / aidl-cpp

AIDL compiler for C++ on Linux Desktop
Apache License 2.0
10 stars 11 forks source link

aidl-cpp-mine/base/logging.cpp:87:10: warning: 'syscall' is deprecated: first deprecated in macOS 10.12 - syscall(2) is unsupported #2

Closed wishma2013 closed 6 years ago

wishma2013 commented 6 years ago

I reclone the whole project , and rebuild. Before problem has gone.But comes a new one.

aidl-cpp-mine/base/logging.cpp:87:10: warning: '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(). [-Wdeprecated-declarations] return syscall(SYS_thread_selfid); ^ /usr/include/unistd.h:745:6: note: 'syscall' has been explicitly marked deprecated here int syscall(int, ...); ^ 1 warning generated. [ 91%] Building CXX object CMakeFiles/aidl-cpp.dir/base/stringprintf.o [ 95%] Building CXX object CMakeFiles/aidl-cpp.dir/base/strings.o [100%] Linking CXX executable aidl-cpp ld: library not found for -lbinder clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: [aidl-cpp] Error 1 make[1]: [CMakeFiles/aidl-cpp.dir/all] Error 2 make: *** [all] Error 2

If this project don't support build on macOS 10.13.3?

wishma2013 commented 6 years ago

When I download an old MacSDK10.10 and set CMAKE_OSX_SYSROOT in the CMakeLists.txt , the warning has gone.