Open henryly94 opened 5 years ago
We'll try to reproduce, but the build log as well as the issue you are referencing makes me doubt this is an issue with Abseil code. Maybe we can work around it. Do you have any suggestions?
We'll try to reproduce, but the build log as well as the issue you are referencing makes me doubt this is an issue with Abseil code. Maybe we can work around it. Do you have any suggestions?
I tried the same process on macOS High Sierra and the build success. I suspect it is something related to Sierra. The link here(https://github.com/tensorflow/tensorflow/issues/13220) suggest a workaround that defining some macros in certain file.
Add this macro:
#ifdef __APPLE__
#define _DARWIN_C_SOURCE
#endif
to the beginning of this header file: absl/time/internal/cctz/include/cctz/civil_time_detail.h
We are seeing the same issue when building abesil-cpp with clang 4 on OSX. Building with clang 8 does not exhibit the problem. The patch proposed by @henryly94 does fix the build in our case.
Here's the build log:
Saw similar issue elsewhere: https://github.com/tensorflow/tensorflow/issues/13220