clang-contracts icon indicating copy to clipboard operation
clang-contracts copied to clipboard

fatal error: sys/ustat.h: No such file or directory

Open ghost opened this issue 6 years ago • 2 comments

Fatal error while compilation clang

[ 55%] Building CXX object projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.x86_64.dir/sanitizer_platform_limits_posix.cc.o /home/joker/Work/clang-contracts/projects/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc:162:10: fatal error: sys/ustat.h: No such file or directory #include <sys/ustat.h> ^~~~~~~~~~~~~ compilation terminated. make[2]: *** [projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.x86_64.dir/build.make:284: projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.x86_64.dir/sanitizer_platform_limits_posix.cc.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:15046: projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.x86_64.dir/all] Error 2 make: *** [Makefile:152: all] Error 2

ghost avatar Mar 15 '19 21:03 ghost

Ref: https://reviews.llvm.org/D47165

h4tr3d avatar Mar 27 '19 00:03 h4tr3d

You can apply the provided patch in https://reviews.llvm.org/rL333213 (which was not upstream at the time this repository was forked).

NOTE: the history of this repository shall be rebased on top of the current development branch.

jalopezg-git avatar Mar 28 '19 16:03 jalopezg-git