facebook / infer

A static analyzer for Java, C, C++, and Objective-C
http://fbinfer.com/
MIT License
14.79k stars 2k forks source link

install from source faild, fatal error: 'cstddef' file not found #1773

Open lhkzhl opened 1 year ago

lhkzhl commented 1 year ago

macOS 12.6.6

FAILED: lib/xray/CMakeFiles/RTXray.osx.dir/xray_buffer_queue.cpp.o /tmp/clang-setup.p2vHwd/build/./bin/clang++ -DXRAY_HAS_EXCEPTIONS=1 -DXRAY_SUPPORTED=1 -I/Users/hailong/Desktop/study/infer/facebook-clang-plugins/clang/src/download/llvm-project/compiler-rt/lib/xray/.. -I/Users/hailong/Desktop/study/infer/facebook-clang-plugins/clang/src/download/llvm-project/compiler-rt/lib/xray/../../include -g -O2 -Wall -Wno-unused-parameter -O3 -DNDEBUG -std=c++17 -arch x86_64 -arch x86_64h -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -stdlib=libc++ -mmacosx-version-min=10.10 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -fPIC -fno-builtin -fno-exceptions -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -fno-lto -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -O3 -g -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -Wno-format -fno-rtti -target x86_64-apple-macos -darwin-target-variant x86_64-apple-ios13.1-macabi -target x86_64h-apple-macos -darwin-target-variant x86_64h-apple-ios13.1-macabi -MD -MT lib/xray/CMakeFiles/RTXray.osx.dir/xray_buffer_queue.cpp.o -MF lib/xray/CMakeFiles/RTXray.osx.dir/xray_buffer_queue.cpp.o.d -o lib/xray/CMakeFiles/RTXray.osx.dir/xray_buffer_queue.cpp.o -c /Users/hailong/Desktop/study/infer/facebook-clang-plugins/clang/src/download/llvm-project/compiler-rt/lib/xray/xray_buffer_queue.cpp In file included from /Users/hailong/Desktop/study/infer/facebook-clang-plugins/clang/src/download/llvm-project/compiler-rt/lib/xray/xray_buffer_queue.cpp:14: /Users/hailong/Desktop/study/infer/facebook-clang-plugins/clang/src/download/llvm-project/compiler-rt/lib/xray/xray_buffer_queue.h:21:10: fatal error: 'cstddef' file not found

include

     ^~~~~~~~~

1 error generated.

Robsterbobster commented 9 months ago

I also have this issue, how did you resolve it?

IncredChen commented 9 months ago

me too

I also have this issue, how did you resolve it?

lhkzhl commented 8 months ago

I don't resolve it.