SCOREC / core

parallel finite element unstructured meshes
Other
183 stars 62 forks source link

CLOCK_MONOTONIC not defined on mac #91

Open bgranzow opened 7 years ago

bgranzow commented 7 years ago

On OS X with clang the following error is reported:

phiotimer.cc:60:23: error: use of undeclared identifier 'CLOCK_MONOTONIC'

This stackoverflow page is a good place to start.

cwsmith commented 7 years ago

with

$ clang --version
Apple LLVM version 8.0.0 (clang-800.0.42.1)

c39c4d1 gets me through the build

bgranzow commented 7 years ago

Well, we should definitely fix the warnings that pop up with clang. As for this specific issue, we should either implement a check that the clang version is recent enough, disable the phiotimer code on a make, or implement more portable code in phiotimer. This issue is not urgent since no one has brought it up thus far...