后端错误:在 Ubuntu 18.10 上构建 SourceKit-LSP 的 llvm.linker.options



我正在遵循本教程,以便在Ubuntu 18.10上集成Visual Studio Code和SourceKit-LSP,但是,我陷入了构建sourcekit-lsp项目的问题。

我得到的错误:

fatal error
: 
error in backend: invalid llvm.linker.options

clang: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 7.0.0-3 (tags/RELEASE_700/final)
Target: x86_64-unknown-linux
Thread model: posix
InstalledDir: /usr/bin
clang: note: diagnostic msg: PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.

我不确定它是否相关,但是在控制台中键入Swift后,我收到以下错误:

error: ld-2.28.so 0xffffffff0005f117: adding range [0x14167-0x141ca) which has a base that is less than the function's low PC 0x148c0. Please file a bug and attach the file at the start of this error message
error: ld-2.28.so 0xffffffff0005f117: adding range [0x141e0-0x141e6) which has a base that is less than the function's low PC 0x148c0. Please file a bug and attach the file at the start of this error message
error: ld-2.28.so 0xffffffff0005f184: adding range [0x14167-0x141ca) which has a base that is less than the function's low PC 0x148c0. Please file a bug and attach the file at the start of this error message
error: ld-2.28.so 0xffffffff0005f184: adding range [0x141e0-0x141e6) which has a base that is less than the function's low PC 0x148c0. Please file a bug and attach the file at the start of this error message
Welcome to Swift version 5.0-dev (LLVM b10ce3d642, Clang c1979d7668, Swift 94b167db75).
Type :help for assistance.

如果有人能给我一个如何解决问题的提示,我将不胜感激。我唯一想到的是重新安装 clang,但它并没有解决问题。

这是一个

llvm错误(https://bugs.llvm.org/show_bug.cgi?id=39743)。请参阅此处的解决方法:https://forums.swift.org/t/error-while-trying-to-build-sourcekit-lsp-on-linux/18138/2

最新更新