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

x86_64-pc-windows-gnu: version `GLIBC_2.28' not found #1205

Closed
4 of 11 tasks
bnheise opened this issue Feb 7, 2023 · 2 comments
Closed
4 of 11 tasks

x86_64-pc-windows-gnu: version `GLIBC_2.28' not found #1205

bnheise opened this issue Feb 7, 2023 · 2 comments

Comments

@bnheise
Copy link

bnheise commented Feb 7, 2023

Checklist

Describe your issue

This may not be a bug, but rather my lack of understanding of cross compiling to windows.

I'm trying to cross compile for x86_64-pc-windows-gnu but I consistently get this error message:

Status: Downloaded newer image for ghcr.io/cross-rs/x86_64-pc-windows-gnu:0.2.5
   Compiling proc-macro2 v1.0.51
   Compiling log v0.4.17
error: failed to run custom build command for `proc-macro2 v1.0.51`

Caused by:
  process didn't exit successfully: `/target/release/build/proc-macro2-7d2ae270ec6e23e9/build-script-build` (exit status: 1)
  --- stderr
  /target/release/build/proc-macro2-7d2ae270ec6e23e9/build-script-build: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.29' not found (required by /target/release/build/proc-macro2-7d2ae270ec6e23e9/build-script-build)
  /target/release/build/proc-macro2-7d2ae270ec6e23e9/build-script-build: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /target/release/build/proc-macro2-7d2ae270ec6e23e9/build-script-build)
warning: build failed, waiting for other jobs to finish...
error: failed to run custom build command for `log v0.4.17`

Caused by:
  process didn't exit successfully: `/target/release/build/log-6be2a5456205c856/build-script-build` (exit status: 1)
  --- stderr
  /target/release/build/log-6be2a5456205c856/build-script-build: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /target/release/build/log-6be2a5456205c856/build-script-build)

I've searched around but couldn't find any references to similar issues. Curious to know if anyone knows an obvious answer to my problem.

What target(s) are you cross-compiling for?

x86_64-pc-windows-gnu

Which operating system is the host (e.g computer cross is on) running?

  • macOS
  • Windows
  • Linux / BSD
  • other OS (specify in description)

What architecture is the host?

  • x86_64 / AMD64
  • arm32
  • arm64 (including Mac M1)

What container engine is cross using?

  • docker
  • podman
  • other container engine (specify in description)

cross version

cross 0.2.5

Example

No response

Additional information / notes

No response

@Emilgardis
Copy link
Member

Emilgardis commented Feb 7, 2023

this is a duplicate of #724

Unfortunately there's not much we can do for this right now. running cargo clean is the simplest way to solve it

@Emilgardis Emilgardis closed this as not planned Won't fix, can't repro, duplicate, stale Feb 7, 2023
@bnheise
Copy link
Author

bnheise commented Feb 8, 2023

@Emilgardis I was able to solve this issue so I want to share my solution here.

I used the tools provided in this folder.

After carrying out the setup as described in the above folder, I carried out these steps:

cargo xtask configure-crosstool --glibc-version 2.29
cargo build-docker-image x86_64-pc-windows-gnu --tag local

Then, in my Cross.toml file:

[target.x86_64-pc-windows-gnu]
image="ghcr.io/cross-rs/x86_64-pc-windows-gnu:local"

After that, it worked perfectly.

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

2 participants