Uploaded image for project: 'Swift'
  1. Swift
  2. SR-4147

swift-reflection-dump error while building swift

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Done
    • Component/s: Compiler
    • Labels:
      None

      Description

      [691/779] Linking CXX executable bin/swift-reflection-dump
      FAILED: bin/swift-reflection-dump
      : && /usr/bin/clang++ -fno-stack-protector -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -Werror=date-time -std=c++11 -fcolor-diagnostics -ffunction-sections -fdata-sections -Wdocumentation -Wimplicit-fallthrough -Wunreachable-code -Woverloaded-virtual -O3 -L/home/amr/swift/build/buildbot_linux/swift-linux-x86_64/./lib/swift/linux -target x86_64-unknown-linux-gnu -lpthread -latomic -ldl -fuse-ld=gold tools/swift-reflection-dump/CMakeFiles/swift-reflection-dump.dir/swift-reflection-dump.cpp.o -o bin/swift-reflection-dump -L/home/amr/swift/build/buildbot_linux/llvm-linux-x86_64/./lib -lswiftReflection /home/amr/swift/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMObject.a /home/amr/swift/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMSupport.a /home/amr/swift/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMBitReader.a /home/amr/swift/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMCore.a /home/amr/swift/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMMCParser.a /home/amr/swift/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMMC.a /home/amr/swift/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMSupport.a -lrt -ldl -ltinfo -lpthread -lz -lm /home/amr/swift/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMDemangle.a -Wl,-rpath,/home/amr/swift/build/buildbot_linux/llvm-linux-x86_64/./lib && :
      tools/swift-reflection-dump/CMakeFiles/swift-reflection-dump.dir/swift-reflection-dump.cpp.o:/home/amr/swift/swift/tools/swift-reflection-dump/swift-reflection-dump.cpp:function swift::remote::TypeDecoder<swift::reflection::TypeRefBuilder>::decodeMangledType(swift::Demangle::Node* const&): error: undefined reference to 'swift::Demangle::mangleNode(swift::Demangle::Node* const&)'
      tools/swift-reflection-dump/CMakeFiles/swift-reflection-dump.dir/swift-reflection-dump.cpp.o:/home/amr/swift/swift/tools/swift-reflection-dump/swift-reflection-dump.cpp:function swift::remote::TypeDecoder<swift::reflection::TypeRefBuilder>::decodeMangledType(swift::Demangle::Node* const&): error: undefined reference to 'swift::Demangle::mangleNode(swift::Demangle::Node* const&)'
      tools/swift-reflection-dump/CMakeFiles/swift-reflection-dump.dir/swift-reflection-dump.cpp.o:/home/amr/swift/swift/tools/swift-reflection-dump/swift-reflection-dump.cpp:function swift::remote::TypeDecoder<swift::reflection::TypeRefBuilder>::decodeMangledNominalType(swift::Demangle::Node* const&, llvm::Optional<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >&, swift::reflection::TypeRef const*&): error: undefined reference to 'swift::Demangle::mangleNode(swift::Demangle::Node* const&)'
      clang: error: linker command failed with exit code 1 (use -v to see invocation)
      ninja: build stopped: subcommand failed.
      ./utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              amraboelela Amr Aboelela
            • Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: