Skip to content

Incompatible Version of GLIBC #466

@dragazo

Description

@dragazo

Bug description

Hi, I'm not sure exactly which repo to open this issue, but I'll start with espup since it's the updater for the esp toolchain.

About a year ago, I was using the esp toolchain (installed via espup) and everything was totally fine. However, I recently decided to get back into that project, so I did an espup update and opened up my project. When I try to build, or even use cargo for anything whatsoever, I get the following error:

/home/devin/.rustup/toolchains/esp/bin/cargo: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /home/devin/.rustup/toolchains/esp/bin/cargo)
/home/devin/.rustup/toolchains/esp/bin/cargo: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /home/devin/.rustup/toolchains/esp/bin/cargo)
/home/devin/.rustup/toolchains/esp/bin/cargo: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /home/devin/.rustup/toolchains/esp/bin/cargo)

I can't really update glibc without obliterating my computer, but I did a side installation (from source) of glibc 2.34 and tried to use that:

$ LD_LIBRARY_PATH=/home/devin/glibc/glibc-2.34-install/lib /home/devin/.rustup/toolchains/esp/bin/cargo
Segmentation fault (core dumped)

I guess this means I can no longer use espup and have to instead build the toolchain from source? Is there any info on how to do this?

To Reproduce

Steps to reproduce the behavior:

  1. Use a system with glibc 2.31 or below (mine is precisely 2.31)
  2. Run espup update
  3. Attempt to use cargo +esp

Expected behavior

I expected espup to install a build for my current glibc (or else error out, rather than installing an incompatible one)

Screenshots

N/A (terminal snippets above)

Environment

  • OS: Linux Mint 20
  • espup version: 0.14.0

Additional context

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions