Hai Varun!!!
That definitely solved my problem with respect to Intel vs. ARM issues... but I'm still unable to build but it's something else this time:
FAILED: bin/swift-demangle-yamldump
: && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -Wno-unknown-warning-option -Werror=unguarded-availability-new -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-class-memaccess -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -index-store-path "/Users/danielle/projects/swift-project/build/Ninja-DebugAssert/swift-macosx-arm64/IndexStore" -fdiagnostics-color -Werror=switch -Wdocumentation -Wimplicit-fallthrough -Wunreachable-code -Woverloaded-virtual -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -g -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -target arm64-apple-macosx10.9 tools/swift-demangle-yamldump/CMakeFiles/swift-demangle-yamldump.dir/swift-demangle-yamldump.cpp.o -o bin/swift-demangle-yamldump -L/Users/danielle/projects/swift-project/build/Ninja-DebugAssert/llvm-macosx-arm64/./lib -L/Users/danielle/projects/swift-project/build/Ninja-DebugAssert/swift-macosx-arm64/./lib/swift/macosx -Wl,-rpath,@executable_path/../lib/swift/macosx /Users/danielle/projects/swift-project/build/Ninja-DebugAssert/llvm-macosx-arm64/lib/libLLVMSupport.a lib/libswiftDemangling.a -lm /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/lib/libz.tbd /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/lib/libcurses.tbd /Users/danielle/projects/swift-project/build/Ninja-DebugAssert/llvm-macosx-arm64/lib/libLLVMDemangle.a && :
ld: warning: ignoring file /Users/danielle/projects/swift-project/build/Ninja-DebugAssert/llvm-macosx-arm64/lib/libLLVMSupport.a, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /Users/danielle/projects/swift-project/build/Ninja-DebugAssert/llvm-macosx-arm64/lib/libLLVMDemangle.a, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
Undefined symbols for architecture x86_64:
"llvm::raw_ostream::flush_nonempty()", referenced from:
llvm::raw_ostream::flush() in swift-demangle-yamldump.cpp.o
"llvm::raw_ostream::SetBufferAndMode(char*, unsigned long, llvm::raw_ostream::BufferKind)", referenced from:
llvm::raw_ostream::SetUnbuffered() in swift-demangle-yamldump.cpp.o
"llvm::raw_ostream::write(char const*, unsigned long)", referenced from:
llvm::raw_ostream::operator<<(llvm::StringRef) in swift-demangle-yamldump.cpp.o
llvm::raw_ostream::operator<<(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in swift-demangle-yamldump.cpp.o
"llvm::raw_ostream::write(unsigned char)", referenced from:
llvm::raw_ostream::operator<<(char) in swift-demangle-yamldump.cpp.o
"llvm::SmallVectorBase<unsigned int>::grow_pod(void*, unsigned long, unsigned long)", referenced from:
llvm::SmallVectorTemplateCommon<llvm::cl::OptionCategory*, void>::grow_pod(unsigned long, unsigned long) in swift-demangle-yamldump.cpp.o
"llvm::raw_string_ostream::~raw_string_ostream()", referenced from:
getNodeTreeAsYAML(llvm::StringRef, swift::Demangle::Node*) in swift-demangle-yamldump.cpp.o
std::__1::enable_if<has_ScalarTraits<llvm::StringRef>::value, void>::type llvm::yaml::yamlize<llvm::StringRef>(llvm::yaml::IO&, llvm::StringRef&, bool, llvm::yaml::EmptyContext&) in swift-demangle-yamldump.cpp.o
"llvm::EnableABIBreakingChecks", referenced from:
llvm::VerifyEnableABIBreakingChecks in swift-demangle-yamldump.cpp.o
"llvm::cl::basic_parser<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::basic_parser(llvm::cl::Option&)", referenced from:
llvm::cl::parser<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::parser(llvm::cl::Option&) in swift-demangle-yamldump.cpp.o
"llvm::cl::basic_parser<bool>::basic_parser(llvm::cl::Option&)", referenced from:
llvm::cl::parser<bool>::parser(llvm::cl::Option&) in swift-demangle-yamldump.cpp.o
"llvm::cl::GeneralCategory", referenced from:
llvm::cl::Option::Option(llvm::cl::NumOccurrencesFlag, llvm::cl::OptionHidden) in swift-demangle-yamldump.cpp.o
"llvm::cl::GenericOptionValue::anchor()", referenced from:
vtable for llvm::cl::OptionValue<bool> in swift-demangle-yamldump.cpp.o
vtable for llvm::cl::OptionValueBase<bool, false> in swift-demangle-yamldump.cpp.o
vtable for llvm::cl::OptionValueCopy<bool> in swift-demangle-yamldump.cpp.o
"llvm::cl::ParseCommandLineOptions(int, char const* const*, llvm::StringRef, llvm::raw_ostream*, char const*, bool)", referenced from:
_main in swift-demangle-yamldump.cpp.o
"llvm::cl::opt<bool, false, llvm::cl::parser<bool> >::done()", referenced from:
llvm::cl::opt<bool, false, llvm::cl::parser<bool> >::opt<char [9], llvm::cl::desc>(char const (&) [9], llvm::cl::desc const&) in swift-demangle-yamldump.cpp.o
llvm::cl::opt<bool, false, llvm::cl::parser<bool> >::opt<char [11], llvm::cl::desc>(char const (&) [11], llvm::cl::desc const&) in swift-demangle-yamldump.cpp.o
"llvm::cl::Option::addArgument()", referenced from:
llvm::cl::list<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool, llvm::cl::parser<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >::done() in swift-demangle-yamldump.cpp.o
"llvm::cl::Option::addOccurrence(unsigned int, llvm::StringRef, llvm::StringRef, bool)", referenced from:
vtable for llvm::cl::list<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool, llvm::cl::parser<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > in swift-demangle-yamldump.cpp.o
"llvm::cl::Option::anchor()", referenced from:
vtable for llvm::cl::list<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool, llvm::cl::parser<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > in swift-demangle-yamldump.cpp.o
"llvm::cl::Option::setArgStr(llvm::StringRef)", referenced from:
void llvm::cl::applicator<char [9]>::opt<llvm::cl::opt<bool, false, llvm::cl::parser<bool> > >(llvm::StringRef, llvm::cl::opt<bool, false, llvm::cl::parser<bool> >&) in swift-demangle-yamldump.cpp.o
void llvm::cl::applicator<char [11]>::opt<llvm::cl::opt<bool, false, llvm::cl::parser<bool> > >(llvm::StringRef, llvm::cl::opt<bool, false, llvm::cl::parser<bool> >&) in swift-demangle-yamldump.cpp.o
"llvm::errs()", referenced from:
demangleSTDIN(swift::Demangle::DemangleOptions const&) in swift-demangle-yamldump.cpp.o
"llvm::outs()", referenced from:
_main in swift-demangle-yamldump.cpp.o
demangleSTDIN(swift::Demangle::DemangleOptions const&) in swift-demangle-yamldump.cpp.o
demangle(llvm::raw_ostream&, llvm::StringRef, swift::Demangle::Context&, swift::Demangle::DemangleOptions const&) in swift-demangle-yamldump.cpp.o
"llvm::yaml::ScalarTraits<llvm::StringRef, void>::input(llvm::StringRef, void*, llvm::StringRef&)", referenced from:
std::__1::enable_if<has_ScalarTraits<llvm::StringRef>::value, void>::type llvm::yaml::yamlize<llvm::StringRef>(llvm::yaml::IO&, llvm::StringRef&, bool, llvm::yaml::EmptyContext&) in swift-demangle-yamldump.cpp.o
"llvm::yaml::ScalarTraits<llvm::StringRef, void>::output(llvm::StringRef const&, void*, llvm::raw_ostream&)", referenced from:
std::__1::enable_if<has_ScalarTraits<llvm::StringRef>::value, void>::type llvm::yaml::yamlize<llvm::StringRef>(llvm::yaml::IO&, llvm::StringRef&, bool, llvm::yaml::EmptyContext&) in swift-demangle-yamldump.cpp.o
"llvm::yaml::Output::endDocuments()", referenced from:
std::__1::enable_if<has_MappingTraits<(anonymous namespace)::YAMLNode, llvm::yaml::EmptyContext>::value, llvm::yaml::Output&>::type llvm::yaml::operator<<<(anonymous namespace)::YAMLNode>(llvm::yaml::Output&, (anonymous namespace)::YAMLNode&) in swift-demangle-yamldump.cpp.o
"llvm::yaml::Output::beginDocuments()", referenced from:
std::__1::enable_if<has_MappingTraits<(anonymous namespace)::YAMLNode, llvm::yaml::EmptyContext>::value, llvm::yaml::Output&>::type llvm::yaml::operator<<<(anonymous namespace)::YAMLNode>(llvm::yaml::Output&, (anonymous namespace)::YAMLNode&) in swift-demangle-yamldump.cpp.o
"llvm::yaml::Output::preflightDocument(unsigned int)", referenced from:
std::__1::enable_if<has_MappingTraits<(anonymous namespace)::YAMLNode, llvm::yaml::EmptyContext>::value, llvm::yaml::Output&>::type llvm::yaml::operator<<<(anonymous namespace)::YAMLNode>(llvm::yaml::Output&, (anonymous namespace)::YAMLNode&) in swift-demangle-yamldump.cpp.o
"llvm::yaml::Output::postflightDocument()", referenced from:
std::__1::enable_if<has_MappingTraits<(anonymous namespace)::YAMLNode, llvm::yaml::EmptyContext>::value, llvm::yaml::Output&>::type llvm::yaml::operator<<<(anonymous namespace)::YAMLNode>(llvm::yaml::Output&, (anonymous namespace)::YAMLNode&) in swift-demangle-yamldump.cpp.o
"llvm::yaml::Output::Output(llvm::raw_ostream&, void*, int)", referenced from:
getNodeTreeAsYAML(llvm::StringRef, swift::Demangle::Node*) in swift-demangle-yamldump.cpp.o
"llvm::yaml::Output::~Output()", referenced from:
getNodeTreeAsYAML(llvm::StringRef, swift::Demangle::Node*) in swift-demangle-yamldump.cpp.o
"llvm::Regex::Regex(llvm::StringRef, llvm::Regex::RegexFlags)", referenced from:
demangleSTDIN(swift::Demangle::DemangleOptions const&) in swift-demangle-yamldump.cpp.o
"llvm::Regex::~Regex()", referenced from:
demangleSTDIN(swift::Demangle::DemangleOptions const&) in swift-demangle-yamldump.cpp.o
"llvm::cl::basic_parser_impl::getOptionWidth(llvm::cl::Option const&) const", referenced from:
llvm::cl::list<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool, llvm::cl::parser<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >::getOptionWidth() const in swift-demangle-yamldump.cpp.o
"llvm::cl::basic_parser_impl::printOptionInfo(llvm::cl::Option const&, unsigned long) const", referenced from:
llvm::cl::list<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool, llvm::cl::parser<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >::printOptionInfo(unsigned long) const in swift-demangle-yamldump.cpp.o
"llvm::yaml::IO::getContext() const", referenced from:
std::__1::enable_if<has_ScalarTraits<llvm::StringRef>::value, void>::type llvm::yaml::yamlize<llvm::StringRef>(llvm::yaml::IO&, llvm::StringRef&, bool, llvm::yaml::EmptyContext&) in swift-demangle-yamldump.cpp.o
"llvm::Regex::match(llvm::StringRef, llvm::SmallVectorImpl<llvm::StringRef>*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*) const", referenced from:
demangleSTDIN(swift::Demangle::DemangleOptions const&) in swift-demangle-yamldump.cpp.o
"llvm::StringRef::find_first_of(llvm::StringRef, unsigned long) const", referenced from:
llvm::yaml::needsQuotes(llvm::StringRef) in swift-demangle-yamldump.cpp.o
"llvm::StringRef::find_first_not_of(llvm::StringRef, unsigned long) const", referenced from:
llvm::yaml::isNumeric(llvm::StringRef) in swift-demangle-yamldump.cpp.o
llvm::yaml::isNumeric(llvm::StringRef)::'lambda'(llvm::StringRef)::operator()(llvm::StringRef) const in swift-demangle-yamldump.cpp.o
"vtable for llvm::raw_ostream", referenced from:
llvm::raw_ostream::raw_ostream(bool, llvm::raw_ostream::OStreamKind) in swift-demangle-yamldump.cpp.o
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"vtable for llvm::raw_string_ostream", referenced from:
llvm::raw_string_ostream::raw_string_ostream(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) in swift-demangle-yamldump.cpp.o
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"vtable for llvm::cl::GenericOptionValue", referenced from:
llvm::cl::GenericOptionValue::GenericOptionValue() in swift-demangle-yamldump.cpp.o
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"vtable for llvm::cl::opt<bool, false, llvm::cl::parser<bool> >", referenced from:
llvm::cl::opt<bool, false, llvm::cl::parser<bool> >::~opt() in swift-demangle-yamldump.cpp.o
llvm::cl::opt<bool, false, llvm::cl::parser<bool> >::opt<char [9], llvm::cl::desc>(char const (&) [9], llvm::cl::desc const&) in swift-demangle-yamldump.cpp.o
llvm::cl::opt<bool, false, llvm::cl::parser<bool> >::opt<char [11], llvm::cl::desc>(char const (&) [11], llvm::cl::desc const&) in swift-demangle-yamldump.cpp.o
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"vtable for llvm::cl::Option", referenced from:
llvm::cl::Option::~Option() in swift-demangle-yamldump.cpp.o
llvm::cl::Option::Option(llvm::cl::NumOccurrencesFlag, llvm::cl::OptionHidden) in swift-demangle-yamldump.cpp.o
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"vtable for llvm::cl::parser<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >", referenced from:
llvm::cl::parser<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::parser(llvm::cl::Option&) in swift-demangle-yamldump.cpp.o
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"vtable for llvm::cl::parser<bool>", referenced from:
llvm::cl::parser<bool>::parser(llvm::cl::Option&) in swift-demangle-yamldump.cpp.o
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[388/2164][ 17%][586.705s] Building CXX object stdlib/public/R...akeFiles/swiftReflection-macosx-arm64.dir/TypeRefBuilder.cpp.o
ninja: build stopped: subcommand failed.
ERROR: command terminated with a non-zero exit status 1, aborting
I think you can consider this thread closed since there is something else wrong and I probably have to create another thread, yes?. In the mean time, thank you so much for helping!
danielle kefford