Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

cross should be built on ubuntu 18.04 (fails with version GLIBC_2.29' not found`) #204

Open
sylvestre opened this issue Mar 4, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@sylvestre
Copy link

Description

reported initially here:
uutils/coreutils#3210

Using use-cross on an Ubuntu 18.04 fails with:

/home/runner/.cargo/bin/cross build --release --target=x86_64-unknown-linux-musl --features feat_os_unix_musl
/home/runner/.cargo/bin/cross: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.29' not found (required by /home/runner/.cargo/bin/cross)
/home/runner/.cargo/bin/cross: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /home/runner/.cargo/bin/cross)

Seems that bin/cross is built on more recent ubuntu.

Workflow code

with:
  use-cross: true
  command: build
  args: --release --target=i686-unknown-linux-gnu  --features "feat_os_unix"

Action output

Full log
https://pipelines.actions.githubusercontent.com/Tv5Yv5nIzIhWaMo3xdKzjIorSSIlfCwnxr6L52Y7lKBOTZPJ76/_apis/pipelines/1/runs/11115/signedlogcontent/108?urlExpires=2022-03-04T09%3A13%3A09.6744026Z&urlSigningMethod=HMACV1&urlSignature=xSNv6KgC1Ad9w1%2BNkNhLIfRY2lnHlBJl4l0V8SHHrpA%3D


2022-03-03T23:56:20.0182827Z ##[group]Run actions-rs/cargo@v1
2022-03-03T23:56:20.0183065Z with:
2022-03-03T23:56:20.0183223Z   use-cross: true
2022-03-03T23:56:20.0183409Z   command: build
2022-03-03T23:56:20.0183676Z   args: --release --target=i686-unknown-linux-gnu  --features "feat_os_unix"
2022-03-03T23:56:20.0183926Z env:
2022-03-03T23:56:20.0184091Z   PROJECT_NAME: coreutils
2022-03-03T23:56:20.0184342Z   PROJECT_DESC: Core universal (cross-platform) utilities
2022-03-03T23:56:20.0184579Z   PROJECT_AUTH: uutils
2022-03-03T23:56:20.0184757Z   RUST_MIN_SRV: 1.54.0
2022-03-03T23:56:20.0184953Z   STYLE_FAIL_ON_FAULT: true
2022-03-03T23:56:20.0185318Z   CACHE_ON_FAILURE: false
2022-03-03T23:56:20.0185494Z   CARGO_INCREMENTAL: 0
2022-03-03T23:56:20.0185675Z ##[endgroup]
2022-03-03T23:56:20.1174653Z [command]/home/runner/.cargo/bin/cross build --release --target=i686-unknown-linux-gnu --features feat_os_unix
2022-03-03T23:56:20.1251071Z /home/runner/.cargo/bin/cross: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.29' not found (required by /home/runner/.cargo/bin/cross)
2022-03-03T23:56:20.1253486Z /home/runner/.cargo/bin/cross: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /home/runner/.cargo/bin/cross)
2022-03-03T23:56:20.1293264Z ##[error]The process '/home/runner/.cargo/bin/cross' failed with exit code 1

Maybe caused by rust-lang/rust#90846 ?!

@sylvestre sylvestre added the bug Something isn't working label Mar 4, 2022
@Emilgardis
Copy link

Emilgardis commented Jan 9, 2023

This is caused by cross-rs/cross#724, see that issue for more information.
Dismiss that, it's not, the problem is not related to that issue, just very similar. This error comes from somewhere else, afaik, actions-rs simply does cargo install cross to install cross

note that this (actions-rs) repository and organization is unmaintained.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants