When I trying build swift, I got the next error message:
Undefined symbols for architecture x86_64:
"___isOSVersionAtLeast", referenced from:
swift::initializeProtocolLookup() in ImageInspectionMachO.cpp.o
swift::initializeProtocolConformanceLookup() in ImageInspectionMachO.cpp.o
swift::initializeTypeMetadataRecordLookup() in ImageInspectionMachO.cpp.o
swift::initializeDynamicReplacementLookup() in ImageInspectionMachO.cpp.o
ld: symbol(s) not found for architecture x86_64
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
[5/19][ 26%][7.760s] Building CXX object tools/SourceKit/lib/SwiftLang/CMakeFiles/SourceKitSwiftLang.dir/SwiftTypeContextInfo.cpp.o
ninja: build stopped: subcommand failed.
swift/utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting
The same message I got for arm64 and arm7.
In llvm I see clang version 7.0.0 without lib
folder (only include
dir).
Please help me