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

标签 swift linux ubuntu clang sourcekit

我正在关注 this教程以获得 Visual Studio Code 和 SourceKit-LSP集成在 Ubuntu 18.10 上,但是,我在构建 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,但它并没有解决问题。

最佳答案

关于swift - 后端错误 : invalid llvm. linker.options 在 Ubuntu 18.10 上构建 SourceKit-LSP,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53915171/

相关文章:

ios - 如何在 SwiftUI 中更改状态栏背景颜色

ubuntu - Systemd 记录到外部文件

php - MediaWiki 安全 : Alternate file ayout

ubuntu - 在 ubuntu 上为 gtkmm 和 gtk+ 配置 eclipse

linux - 在 Ubuntu 16.04 LTS 上编译旧的 Linux 内核

swift - 带有 UICollectionView 的 UIToolBar

iOS 应用内浏览器

ios - 条件绑定(bind)的初始化程序必须具有 Optional 类型,而不是 'Error.Protocol'

mysql - 使用 linux 提示符在 mysql 数据库上进行选择,该数据库显示没有表图形表示的值

linux - 把一个网站放在public_html上面的一个目录下,搜索引擎能搜到吗,这个网站是不是被搜索引擎抓取了,怎么解决?