Skip to content

Commit

Permalink
fix: use newer container to fix/workaround segfault in libgit2
Browse files Browse the repository at this point in the history
When building with cross, a container image using Ubuntu 16.04 is being
used. This seems to be the cause for creating a binary which will
segfault (or run into other such failures) when running on aarch64.

Using Ubuntu 20.04 does not produce this issue.

Also see:
 * cross-rs/cross#1512
 * rust-lang/git2-rs#1057
  • Loading branch information
ctron authored and Bob McWhirter committed Jun 12, 2024
1 parent 26a977b commit 16deb09
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Cross.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
"apt-get update && apt-get install --assume-yes libssl-dev:$CROSS_DEB_ARCH libssl-dev"
]
# work around:
# * https://github.com/cross-rs/cross/issues/1512
# * https://github.com/rust-lang/git2-rs/issues/1057
image = "ghcr.io/cross-rs/aarch64-unknown-linux-gnu:edge"

0 comments on commit 16deb09

Please sign in to comment.