An build error in Mac os 10.12
Created by: burness
I build the Paddle with MKL in Mac os 10.12, it get an error like that, Anyone could help me to solve it ?
/Users/burness/git_repository/dl_opensource/Paddle/paddle/utils/ThreadLocal.h:160:17: 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]
pid_t tid = syscall(SYS_thread_selfid);
^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int syscall(int, ...);
^
1 error generated.
make[2]: *** [paddle/utils/CMakeFiles/paddle_utils.dir/BarrierStat.cpp.o] Error 1
make[1]: *** [paddle/utils/CMakeFiles/paddle_utils.dir/all] Error 2
make: *** [all] Error 2