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

Build for Ubuntu 20.04 instead of 22.04 #12

Merged
merged 5 commits into from
Feb 13, 2025
Merged

Conversation

Primebrook
Copy link
Collaborator

@Primebrook Primebrook commented Feb 13, 2025

Issue

We're precompiling for ubuntu-22.04 which comes with glibc 2.35. Our CI and Prod builds use Debian for all of our Elixir apps and the Debian version they use comes with glibc 2.33.

12:07:53.333 [warning] The on_load function for module Elixir.Exstatic.Native returned:
{:error,
 {:load_failed,
  ~c"Failed to load NIF library: '/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /root/project/_build/test/lib/exstatic/priv/native/libexstatic-v0.2.0-nif-2.16-x86_64-unknown-linux-gnu.so)'"}}

Also I added a couple of extra build targets.

This PR

Switches Linux builds to ubuntu-20.04 which comes with glibc 2.31. Github Actions doesn't come with Debian runners 🫠, so this is the next best thing (if this works).

glibc 2.33 should be compatible with 2.31.

@Primebrook Primebrook changed the title Bump down version of ubuntu we're building for Build for Ubuntu 20.04 instead of 22.04 Feb 13, 2025
@Primebrook Primebrook marked this pull request as ready for review February 13, 2025 13:07
@Primebrook Primebrook merged commit 54b4048 into main Feb 13, 2025
6 checks passed
@Primebrook Primebrook deleted the bump-down-ubuntu branch February 13, 2025 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants