Hi yarn-devs,
Native build on hadoop trunk seems to be failing on my mac today.
I'm getting a '-1' from test-patch.sh script due to this.
Any pointers to resolve this ?
Here is the error :
[exec]hadoop-common/hadoop-hdfs-project/hadoop-hdfs/src/main/native/libhdfs/test/vecsum.c:61:9:
warning: implicit declaration of function 'clock_gettime' is invalid in C99
[-Wimplicit-function-declaration]
[exec] if (clock_gettime(CLOCK_MONOTONIC, &watch->start)) {
[exec] ^
[exec]hadoop-common/hadoop-hdfs-project/hadoop-hdfs/src/main/native/libhdfs/test/vecsum.c:61:23:
error: use of undeclared identifier 'CLOCK_MONOTONIC'
[exec] if (clock_gettime(CLOCK_MONOTONIC, &watch->start)) {
[exec] ^
[exec]hadoop-common/hadoop-hdfs-project/hadoop-hdfs/src/main/native/libhdfs/test/vecsum.c:79:23:
error: use of undeclared identifier 'CLOCK_MONOTONIC'
[exec] if (clock_gettime(CLOCK_MONOTONIC, &watch->stop)) {
[exec] ^
[exec] 1 warning and 2 errors generated.
[exec] make[2]: ***
[CMakeFiles/test_libhdfs_vecsum.dir/main/native/libhdfs/test/vecsum.c.o]
Error 1
[exec] make[1]: *** [CMakeFiles/test_libhdfs_vecsum.dir/all] Error 2
[exec] make: *** [all] Error 2
--
Thanks,
Ashwin