rust-analyzer icon indicating copy to clipboard operation
rust-analyzer copied to clipboard

/root/.vscode-server/extensions/rust-lang.rust-analyzer-0.3.2319-linux-arm64/server/rust-analyzer: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found

Open AsyncKurisu opened this issue 1 year ago • 10 comments

Hello, everyone. I am a novice and not very familiar with how to use issue. I have the same problem as #19215, but I don't know how to solve it: /root/.vscode-server/extensions/rust-lang.rust-analyzer-0.3.2319-linux-arm64/server/rust-analyzer: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found I tried rolling back the rust version and the rust-analyzer version, but neither had any effect. For details: Rust Version: rustc 1.87.0-nightly (f8a913b13 2025-02-23) rust-analyzer version: v0.3.2319

Here is my error log [Error - 8:33:43 AM] Server process exited with code 1.

[Error - 8:33:43 AM] Server process exited with code 1.

[Error - 8:33:43 AM] Client Rust Analyzer Language Server: connection to server is erroring. Cannot call write after a stream was destroyed

[Error - 8:33:43 AM] Server initialization failed. Message: Cannot call write after a stream was destroyed Code: -32099

[Error - 8:33:43 AM] Rust Analyzer Language Server client: couldn't create connection to server. Message: Cannot call write after a stream was destroyed Code: -32099

[Error - 8:33:43 AM] Restarting server failed Message: Cannot call write after a stream was destroyed Code: -32099

[Error - 8:33:43 AM] The Rust Analyzer Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.

/root/.vscode-server/extensions/rust-lang.rust-analyzer-0.3.2319-linux-arm64/server/rust-analyzer: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /root/.vscode-server/extensions/rust-lang.rust-analyzer-0.3.2319-linux-arm64/server/rust-analyzer)

/root/.vscode-server/extensions/rust-lang.rust-analyzer-0.3.2319-linux-arm64/server/rust-analyzer: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /root/.vscode-server/extensions/rust-lang.rust-analyzer-0.3.2319-linux-arm64/server/rust-analyzer)

/root/.vscode-server/extensions/rust-lang.rust-analyzer-0.3.2319-linux-arm64/server/rust-analyzer: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /root/.vscode-server/extensions/rust-lang.rust-analyzer-0.3.2319-linux-arm64/server/rust-analyzer)

AsyncKurisu avatar Feb 26 '25 08:02 AsyncKurisu

We used to build the binaries on Ubuntu 20.04, most of them in a Rocky Linux 8 container. GitHub is discontinuing those runners, so in #19188 we switched to a Rocky 8 container on Ubuntu 24.04 for most, and no container for AArch64 and ARM (because there's no ARM toolchain in EL).

#19216 switched to Ubuntu 22.04 for those two platforms, so we still need a GLIBC bump. I assume you're still on Ubuntu 20.04 or Debian 11 and you can't or don't want to upgrade?

lnicola avatar Feb 26 '25 09:02 lnicola

We used to build the binaries on Ubuntu 20.04, most of them in a Rocky Linux 8 container. GitHub is discontinuing those runners, so in #19188 we switched to a Rocky 8 container on Ubuntu 24.04 for most, and no container for AArch64 and ARM (because there's no ARM toolchain in EL).

#19216 switched to Ubuntu 22.04 for those two platforms, so we still need a GLIBC bump. I assume you're still on Ubuntu 20.04 or Debian 11 and you can't or don't want to upgrade?

@lnicola Thank you for your quick response! I am actually on Ubuntu 20.04, so the only way is to upgrade GLIBC or Ubuntu? Moreover, I use the lab's server for programming, so I need to communicate with my teacher. Thank you for your quick response again.

AsyncKurisu avatar Feb 26 '25 09:02 AsyncKurisu

No, it's a base OS component. Downgrading r-a to the second to last stable version should work for now.

lnicola avatar Feb 26 '25 09:02 lnicola

We should just use cargo-zigbuild smh.

lnicola avatar Feb 26 '25 09:02 lnicola

No, it's a base OS component. Downgrading r-a to the second to last stable version should work for now.

@lnicola Thank you so much! It does work and I used to downgrade but other problems happened

AsyncKurisu avatar Feb 26 '25 09:02 AsyncKurisu

@lnicola

(because there's no ARM toolchain in EL).

Is it about rust toolchain from rustup or something else?

danilaml avatar Feb 26 '25 16:02 danilaml

@danilaml no, you still need a C toolchain (linker, standard library).

lnicola avatar Feb 26 '25 16:02 lnicola

@lnicola Well, I'm not sure I understand what is missing then. Is this not it?

danilaml avatar Feb 26 '25 16:02 danilaml

That's not for cross-compilation (I don't think GitHub had the AArch64 runners when we started using Rocky 8), and we also need 32-bit ARM. Both of these are available on Ubuntu.

Anyway, I think it's moot given #19230.

lnicola avatar Feb 26 '25 16:02 lnicola

@lnicola I see. I thought GitHub supported Arm runners for quite a while but apparently it was added just last month: https://github.blog/changelog/2025-01-16-linux-arm64-hosted-runners-now-available-for-free-in-public-repositories-public-preview/

For corss-compile there was a linaro toolchain I used before, it just wasn't in the package repo.

danilaml avatar Feb 26 '25 17:02 danilaml