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

Error of target x86_64-unknown-linux-gnu #793

Closed
4 of 11 tasks
fengyc opened this issue Jun 14, 2022 · 4 comments
Closed
4 of 11 tasks

Error of target x86_64-unknown-linux-gnu #793

fengyc opened this issue Jun 14, 2022 · 4 comments

Comments

@fengyc
Copy link

fengyc commented Jun 14, 2022

Checklist

Describe your issue

Target x86_64-unknown-linux-gnu

   Compiling libc v0.2.126
error: failed to run custom build command for `libc v0.2.126`
Error: failed to run custom build command for `libc v0.2.126`
Caused by:
  process didn't exit successfully: `/target/release/build/libc-db4bc89375b73275/build-script-build` (exit status: 1)
  --- stderr
  /target/release/build/libc-db4bc89375b73275/build-script-build: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by /target/release/build/libc-db4bc89375b73275/build-script-build)
warning: build failed, waiting for other jobs to finish...
Error: The process '/home/runner/.cargo/bin/cross' failed with exit code 101

Target x86_64-unknown-linux-gnux32

  = note: /usr/bin/ld: cannot find Scrt1.o: No such file or directory
          /usr/bin/ld: cannot find crti.o: No such file or directory
          collect2: error: ld returned 1 exit status

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

x86_64-unknown-linux-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.1 (from github main branch)

Example

git clone https://github.com/fengyc/wol-rs.git
cross build --release --target x86_64-unknown-linux-gnu
cross build --release --target x86_64-unknown-linux-gnux32

Additional information / notes

No response

@fengyc fengyc changed the title Error of target x86_64-unknown-linux-gnu and x86_64-unknown-linux-gnux32 Error of target x86_64-unknown-linux-gnu Jun 14, 2022
@Emilgardis
Copy link
Member

This happens sometimes, it's unclear why. If you do cargo clean it should fix itself.

See #724 which we're using to track this error

@Emilgardis
Copy link
Member

Regarding x86_64-unknown-linux-gnux32, we do not have that target, cross should've made a warning saying that it's falling back to the host system

@fengyc
Copy link
Author

fengyc commented Jun 14, 2022

Ok, thanks~

@Alexhuszagh
Copy link
Contributor

FYI: we've just made this public, so if you'd like to support this target, it's a perfect issue or PR to this repository:
https://github.com/cross-rs/cross-toolchains

We don't plan (likely) on adding it to our main repository, however, it sounds like a perfect inclusion for an additional image as it's a tier 2 target.

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

3 participants