-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
Not sure if it's LLVM version issue. Any plan to upgrade the support for LLVM, or we have to use 3.9? Thanks
XuanLiuLaptop:class-dump-swift-master xuanliu$ make
clang main.mm Demangle.cpp Punycode.cpp -std=c++11 `llvm-config --libs` `llvm-config --cxxflags` `llvm-config --ldflags` -lstdc++ -lncurses -o swiftd
Demangle.cpp:282:11: warning: enumeration value 'DestructiveInjectEnumTag' not handled in switch [-Wswitch]
switch (k) {
^
Demangle.cpp:282:11: note: add missing switch cases
switch (k) {
^
Demangle.cpp:2400:22: warning: 8 enumeration values not handled in switch: 'ReflectionMetadataBuiltinDescriptor',
'ReflectionMetadataFieldDescriptor', 'ReflectionMetadataAssocTypeDescriptor'... [-Wswitch]
switch (pointer->getKind()) {
^
Demangle.cpp:2400:22: note: add missing switch cases
switch (pointer->getKind()) {
^
Demangle.cpp:2929:11: warning: 8 enumeration values not handled in switch: 'ReflectionMetadataBuiltinDescriptor',
'ReflectionMetadataFieldDescriptor', 'ReflectionMetadataAssocTypeDescriptor'... [-Wswitch]
switch (kind) {
^
Demangle.cpp:2929:11: note: add missing switch cases
switch (kind) {
^
3 warnings generated.
Undefined symbols for architecture x86_64:
"_compress2", referenced from:
llvm::zlib::compress(llvm::StringRef, llvm::SmallVectorImpl<char>&, llvm::zlib::CompressionLevel) in libLLVMSupport.a(Compression.cpp.o)
"_compressBound", referenced from:
llvm::zlib::compress(llvm::StringRef, llvm::SmallVectorImpl<char>&, llvm::zlib::CompressionLevel) in libLLVMSupport.a(Compression.cpp.o)
"_crc32", referenced from:
llvm::zlib::crc32(llvm::StringRef) in libLLVMSupport.a(Compression.cpp.o)
"_uncompress", referenced from:
llvm::zlib::uncompress(llvm::StringRef, char*, unsigned long&) in libLLVMSupport.a(Compression.cpp.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [all] Error 1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels