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

libc incompatibility causing debian run failures #706

Open
jb55 opened this issue Feb 4, 2025 — with Linear · 3 comments
Open

libc incompatibility causing debian run failures #706

jb55 opened this issue Feb 4, 2025 — with Linear · 3 comments
Assignees

Comments

Copy link
Contributor

jb55 commented Feb 4, 2025

Not sure if this is helpful but the reason it isn't installing in any of the debian based is the libc6 dependency(requires 2.39, these are both on 2.35). Looks like popos alpha apparently includes the updated library. Had the same issue on just a barebone debian system as well.

The fix for this should be pretty simple, we just need to choose an older github action runner instead of latest:

By default, GitHub Actions uses the latest Ubuntu runner (e.g., ubuntu-latest), which has glibc 2.39+. Instead, you can explicitly use ubuntu-20.04, which has glibc 2.31.

Modify your .github/workflows/build.yml file:

name: Build Rust Binary

on: [push, pull_request]

jobs:

  build:

    runs-on: ubuntu-20.04  # Use an older runner with glibc 2.31

Fixes #701

@jb55 jb55 added ci packaging labels Feb 4, 2025 — with Linear
Copy link

linear bot commented Feb 4, 2025

@jb55 jb55 self-assigned this Feb 4, 2025
jb55 added a commit that referenced this issue Feb 4, 2025
From guythatsits:

> Not sure if this is helpful but the reason it isn't installing in any
of the debian based is the libc6 dependency(requires 2.39, these are
both on 2.35). Looks like popos alpha apparently includes the updated
library. Had the same issue on just a barebone debian system as well.

By default, GitHub Actions uses the latest Ubuntu runner (e.g.,
ubuntu-latest), which has glibc 2.39+. Instead, we can explicitly use
ubuntu-20.04, which has glibc 2.31.

Reported-by: guythatsits
Fixes: #706
Changelog-Fixed: Fixed issue running binary on older debian distros
Signed-off-by: William Casarin <[email protected]>
Copy link
Contributor Author

jb55 commented Feb 4, 2025

The ci is not happy when i do this:

Copy link
Contributor Author

jb55 commented Feb 4, 2025

llm suggestion:

TL;DR - Best Approach for Fixing This

1. Ensure Cargo.lock is committed locally and not modified in CI.

2. Use Cargo caching properly (Swatinem/rust-cache@v2).

3. Explicitly fetch dependencies (cargo fetch) before building.

4. Manually clear cargo cache (cargo clean) if necessary.

jb55 added a commit that referenced this issue Feb 4, 2025
From guythatsits:

> Not sure if this is helpful but the reason it isn't installing in any
of the debian based is the libc6 dependency(requires 2.39, these are
both on 2.35). Looks like popos alpha apparently includes the updated
library. Had the same issue on just a barebone debian system as well.

By default, GitHub Actions uses the latest Ubuntu runner (e.g.,
ubuntu-latest), which has glibc 2.39+. Instead, we can explicitly use
ubuntu-20.04, which has glibc 2.31.

Reported-by: guythatsits
Fixes: #706
Changelog-Fixed: Fixed issue running binary on older debian distros
Signed-off-by: William Casarin <[email protected]>
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