Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clangd: error while loading shared libraries: libc.so.6: file too short #1856

Open
3 tasks done
Super-Botman opened this issue Jan 12, 2025 · 0 comments
Open
3 tasks done

Comments

@Super-Botman
Copy link

I've searched open issues for similar requests

  • Yes

I've manually reviewed logs to find potential errors

  • Yes

I've recently downloaded the latest plugin version of mason.nvim

  • Yes

Problem description

After installating clangd at the opening of a cpp file or c file you get an error saying that the program exited with error code 128 instead of 0 and clangd won't work.
Then I checked the binary of clangd and with a checksec I saw that the rpath was a bit strange:
image
So I had to change it using patchelf and now it works:
image

Expected behavior

Clangd to work

Steps to reproduce

  1. Install clangd
  2. run clangd

Affected packages

clangd

Neovim version (>= 0.7)

NVIM v0.10.3
Build type: RelWithDebInfo
LuaJIT 2.1.1731601260

Operating system/version

Linux 6.12.8-arch1-1GNU/Linux

Healthcheck

mason.nvim ~
- OK mason.nvim version v1.10.0
- OK PATH: prepend
- OK Providers: 
    mason.providers.registry-api
    mason.providers.client
- OK neovim version >= 0.7.0

mason.nvim [Registries] ~
- OK Registry `github.com/mason-org/mason-registry version: 2025-01-12-urgent-sack` is installed.

mason.nvim [Core utils] ~
- OK unzip: `UnZip 6.00 of 20 April 2009, by Info-ZIP.  Maintained by C. Spieler.  Send`
- OK wget: `GNU Wget 1.25.0 built on linux-gnu.`
- OK curl: `curl 8.11.1 (x86_64-pc-linux-gnu) libcurl/8.11.1 OpenSSL/3.4.0 zlib/1.3.1 brotli/1.1.0 zstd/1.5.6 libidn2/2.3.7 libpsl/0.21.5 libssh2/1.11.1 nghttp2/1.64.0 nghttp3/1.7.0`
- OK gzip: `gzip 1.13`
- OK tar: `tar (GNU tar) 1.35`
- OK bash: `GNU bash, version 5.2.37(1)-release (x86_64-pc-linux-gnu)`
- OK sh: `Ok`

mason.nvim [Languages] ~
- OK Go: `go version go1.23.4 linux/amd64`
- WARNING Composer: not available
  - ADVICE:
    - spawn: composer failed with exit code - and signal -. composer is not executable
- WARNING PHP: not available
  - ADVICE:
    - spawn: php failed with exit code - and signal -. php is not executable
- OK Ruby: `ruby 3.3.5 (2024-09-03 revision ef084cc8f4) [x86_64-linux]`
- OK cargo: `cargo 1.83.0 (5ffbef321 2024-10-29)`
- OK node: `v23.4.0`
- OK luarocks: `/usr/bin/luarocks 3.11.1`
- WARNING julia: not available
  - ADVICE:
    - spawn: julia failed with exit code - and signal -. julia is not executable
- OK python: `Python 3.13.1`
- OK java: `openjdk version "23" 2024-09-17`
- OK npm: `11.0.0`
- OK RubyGem: `3.5.16`
- OK javac: `javac 23`
- OK pip: `pip 24.3.1 from /usr/lib/python3.13/site-packages/pip (python 3.13)`
- OK python venv: `Ok`

mason.nvim [GitHub] ~
- OK GitHub API rate limit. Used: 0. Remaining: 60. Limit: 60. Reset: Sun 12 Jan 2025 06:42:43 PM CET.
  Install and authenticate via gh-cli to increase rate limit.

Screenshots or recordings

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant