clang-contracts
clang-contracts copied to clipboard
fatal error: sys/ustat.h: No such file or directory
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
Ref: https://reviews.llvm.org/D47165
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.