Ошибка в бэкенде: неверный llvm.linker.options при сборке SourceKit-LSP в Ubuntu 18.10

Я следую этому руководству, чтобы интегрировать 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, но это не решило проблему.

1 ответ

Решение

Это ошибка llvm ( https://bugs.llvm.org/show_bug.cgi?id=39743). Смотрите обходной путь здесь: https://forums.swift.org/t/error- while-tring-to-build-sourcekit-lsp-on-linux/ 18138/2

Другие вопросы по тегам