Skip to content

ccls ABI mismatch when linking against clang+llvm-7.0.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz #203

@cyberphysicalrobotics

Description

@cyberphysicalrobotics

Hi,

Problem is like the following.
Host: Ubuntu 16.04
Docker container: Ubuntu 14.04

Emacs config file is shared between them. ccls is working on host but not working on docker container. You can refer to error message and backtrace message. I couldn't get any clue to resolve this issue. I think that the only difference between them is that clang+llvm-7.0.0 when I'm installing ccls like the following:
Host: clang+llvm-7.0.0-x86_64-linux-gnu-ubuntu-16.04.tar.xz
Docker container: clang+llvm-7.0.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz

But I don't think that's the main reason. If you have some good advice to resolve this, let me know that.

Error message on Emacs: "Process ccls not running"
Backtrace message is:

Debugger entered--Lisp error: (error "Process ccls<2> not running")
  process-send-string(#<process ccls<2>> "Content-Length: 52\015\n\015\n{\"jsonrpc\":\"2.0\",\"method\":\"initialized\",\"params\":{}}")
  lsp--send-no-wait("Content-Length: 52\015\n\015\n{\"jsonrpc\":\"2.0\",\"method\":\"initialized\",\"params\":{}}" #<process ccls<2>>)
  #f(compiled-function (it) #<bytecode 0x1c45701>)(#s(lsp--workspace :parser #s(lsp--parser :waiting-for-response nil :response-result nil :headers nil :body nil :reading-body nil :body-length nil :body-received nil :leftovers "" :queued-notifications nil :queued-requests nil :workspace #1) :file-versions #<hash-table equal 0/65 0x19ec7c9> :server-capabilities #<hash-table equal 21/65 0xce8851> :registered-server-capabilities nil :root "/apollo/" :client #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name) #<bytecode 0xf60819>) :test\? #f(compiled-function () #<bytecode 0xf6082d>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 2/65 0xf60839> :request-handlers #<hash-table equal 0/65 0xf60b11> :response-handlers #<hash-table eql 2/65 0xf60bb5> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0xf60f99> :action-handlers #<hash-table equal 0/65 0xf613d9> :use-native-json nil :major-modes (c-mode c++-mode cuda-mode objc-mode) :priority 0 :server-id ccls :multi-root nil :initialization-options #f(compiled-function () #<bytecode 0xf603a1>) :library-folders-fn nil :before-file-open-fn nil :initialized-fn nil :remote? nil) :host-root nil :proc #<process ccls<2>> :cmd-proc #<process ccls<2>> :buffers (#<buffer task.cc> #<buffer collision_checker.cc>) :highlight-overlays #<hash-table eq 0/65 0x19eed65> :extra-client-capabilities nil :status initialized :metadata #<hash-table equal 0/65 0x19ec3a1> :watches #<hash-table equal 0/65 0x19ec3c1> :workspace-folders nil :last-id 0 :status-string nil :shutdown-action nil :diagnostics #<hash-table equal 0/65 0x19f43b5>))
  mapcar(#f(compiled-function (it) #<bytecode 0x1c45701>) (#s(lsp--workspace :parser #s(lsp--parser :waiting-for-response nil :response-result nil :headers nil :body nil :reading-body nil :body-length nil :body-received nil :leftovers "" :queued-notifications nil :queued-requests nil :workspace #2) :file-versions #<hash-table equal 0/65 0x19ec7c9> :server-capabilities #<hash-table equal 21/65 0xce8851> :registered-server-capabilities nil :root "/apollo/" :client #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name) #<bytecode 0xf60819>) :test\? #f(compiled-function () #<bytecode 0xf6082d>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 2/65 0xf60839> :request-handlers #<hash-table equal 0/65 0xf60b11> :response-handlers #<hash-table eql 2/65 0xf60bb5> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0xf60f99> :action-handlers #<hash-table equal 0/65 0xf613d9> :use-native-json nil :major-modes (c-mode c++-mode cuda-mode objc-mode) :priority 0 :server-id ccls :multi-root nil :initialization-options #f(compiled-function () #<bytecode 0xf603a1>) :library-folders-fn nil :before-file-open-fn nil :initialized-fn nil :remote? nil) :host-root nil :proc #<process ccls<2>> :cmd-proc #<process ccls<2>> :buffers (#<buffer task.cc> #<buffer collision_checker.cc>) :highlight-overlays #<hash-table eq 0/65 0x19eed65> :extra-client-capabilities nil :status initialized :metadata #<hash-table equal 0/65 0x19ec3a1> :watches #<hash-table equal 0/65 0x19ec3c1> :workspace-folders nil :last-id 0 :status-string nil :shutdown-action nil :diagnostics #<hash-table equal 0/65 0x19f43b5>)))
  lsp--send-notification((:jsonrpc "2.0" :method "initialized" :params #<hash-table eql 0/65 0x2620939>))
  lsp-notify("initialized" #<hash-table eql 0/65 0x2620939>)
  #f(compiled-function (response) #<bytecode 0x19eed91>)(#<hash-table equal 1/65 0xce8831>)
  #f(compiled-function (result) #<bytecode 0x19f4a89>)(#<hash-table equal 1/65 0xce8831>)
  lsp--parser-on-message(#s(lsp--parser :waiting-for-response nil :response-result nil :headers nil :body nil :reading-body nil :body-length nil :body-received nil :leftovers "" :queued-notifications nil :queued-requests nil :workspace #s(lsp--workspace :parser #1 :file-versions #<hash-table equal 0/65 0x19ec7c9> :server-capabilities #<hash-table equal 21/65 0xce8851> :registered-server-capabilities nil :root "/apollo/" :client #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name) #<bytecode 0xf60819>) :test\? #f(compiled-function () #<bytecode 0xf6082d>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 2/65 0xf60839> :request-handlers #<hash-table equal 0/65 0xf60b11> :response-handlers #<hash-table eql 2/65 0xf60bb5> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0xf60f99> :action-handlers #<hash-table equal 0/65 0xf613d9> :use-native-json nil :major-modes (c-mode c++-mode cuda-mode objc-mode) :priority 0 :server-id ccls :multi-root nil :initialization-options #f(compiled-function () #<bytecode 0xf603a1>) :library-folders-fn nil :before-file-open-fn nil :initialized-fn nil :remote? nil) :host-root nil :proc #<process ccls<2>> :cmd-proc #<process ccls<2>> :buffers (#<buffer task.cc> #<buffer collision_checker.cc>) :highlight-overlays #<hash-table eq 0/65 0x19eed65> :extra-client-capabilities nil :status initialized :metadata #<hash-table equal 0/65 0x19ec3a1> :watches #<hash-table equal 0/65 0x19ec3c1> :workspace-folders nil :last-id 0 :status-string nil :shutdown-action nil :diagnostics #<hash-table equal 0/65 0x19f43b5>)) "{\"jsonrpc\":\"2.0\",\"id\":3,\"result\":{\"capabilities\":{\"textDocumentSync\":{\"openClose\":true,\"change\":2,\"willSave\":false,\"willSaveWaitUntil\":false,\"save\":{\"includeText\":false}},\"hoverProvider\":true,\"completionProvider\":{\"resolveProvider\":false,\"triggerCharacters\":[\".\",\":\",\">\",\"#\",\"<\",\"\\\"\",\"/\"]},\"signatureHelpProvider\":{\"triggerCharacters\":[\"(\",\",\"]},\"definitionProvider\":true,\"implementationProvider\":true,\"typeDefinitionProvider\":true,\"referencesProvider\":true,\"documentHighlightProvider\":true,\"documentSymbolProvider\":true,\"workspaceSymbolProvider\":true,\"codeActionProvider\":{\"codeActionKinds\":[\"quickfix\"]},\"codeLensProvider\":{\"resolveProvider\":false},\"documentFormattingProvider\":true,\"documentRangeFormattingProvider\":true,\"documentOnTypeFormattingProvider\":{\"firstTriggerCharacter\":\"}\",\"moreTriggerCharacter\":[]},\"renameProvider\":true,\"documentLinkProvider\":{\"resolveProvider\":true},\"foldingRangeProvider\":true,\"executeCommandProvider\":{\"commands\":[\"ccls.xref\"]},\"workspace\":{\"workspaceFolders\":{\"supported\":true,\"changeNotifications\":true}}}}}")
  #f(compiled-function (proc output) #<bytecode 0x19f47f1>)(#<process ccls<2>> "Content-Length: 1046\015\n\015\n{\"jsonrpc\":\"2.0\",\"id\":3,\"result\":{\"capabilities\":{\"textDocumentSync\":{\"openClose\":true,\"change\":2,\"willSave\":false,\"willSaveWaitUntil\":false,\"save\":{\"includeText\":false}},\"hoverProvider\":true,\"completionProvider\":{\"resolveProvider\":false,\"triggerCharacters\":[\".\",\":\",\">\",\"#\",\"<\",\"\\\"\",\"/\"]},\"signatureHelpProvider\":{\"triggerCharacters\":[\"(\",\",\"]},\"definitionProvider\":true,\"implementationProvider\":true,\"typeDefinitionProvider\":true,\"referencesProvider\":true,\"documentHighlightProvider\":true,\"documentSymbolProvider\":true,\"workspaceSymbolProvider\":true,\"codeActionProvider\":{\"codeActionKinds\":[\"quickfix\"]},\"codeLensProvider\":{\"resolveProvider\":false},\"documentFormattingProvider\":true,\"documentRangeFormattingProvider\":true,\"documentOnTypeFormattingProvider\":{\"firstTriggerCharacter\":\"}\",\"moreTriggerCharacter\":[]},\"renameProvider\":true,\"documentLinkProvider\":{\"resolveProvider\":true},\"foldingRangeProvider\":true,\"executeCommandProvider\":{\"commands\":[\"ccls.xref\"]},\"workspace\":{\"workspaceFolders\":{\"supported\":true,\"changeNotifications\":true}}}}}")

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions