-
Notifications
You must be signed in to change notification settings - Fork 382
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
Fix riscv64gc-unknown-linux-gnu
#1423
Comments
This seems to be rust-lang/rust#117101, caused by the update to llvm 17 and us using a too old ld. I'll use a lower rustc for riscv for now |
Building my own cross-rs image (https://github.com/users/endocrimes/packages/container/package/cross-rs%2Friscv64gc-unknown-linux-gnu) based on Ubuntu 23.04 rather than 20.04 got builds working successfully for me with Rust 1.76 (bc newer ld) in case anyone else ends up here after running into this 😅 Happy to PR the version bump, but I'm not really aware enough of broader cross-rs use to know if that's likely to break elsewhere. |
I came across this cross-compiling on macos, and managed to build correctly with binutils updated to 2.38 |
I'm running into this issue and I can't seem to get any of the workarounds people have posted here to work. I don't understand how to get cross to use binutils 2.38 or Ubuntu 23.04 or use an older rustc version. So I'm just unable to cross-compile for RISCV at all using cross. If someone could point me towards a solution with a list of steps I can follow to get cross working for RISCV I would greatly appreciate it. If it's relevant, I'm on Ubuntu 22.04 using rustc 1.78 and I'm trying to compile a cdylib. Cross works fine for me for aarch64 but not for riscv. The error output is just a long list of |
Hey @believeinlain, I wasn't able to use it with cross due to the above error, I use a mac m1 as a my main dev machine at the moment. I got the same error with the macos toolchain
before using the updated formula with a later binutils (2.38) YOU54F/homebrew-musl-cross-multilib@ed5ebfd that is compiling here for multi-targets (albeit a binary and not a cdylib) I do however recall manage to build a cdylib for riscv64gc-unknown-linux-gnu target in this run, with cross https://github.com/YOU54F/pact_cli/actions/runs/8483936405/job/23245943624 I was trying to build slim binaries, but I wasn't able to build-std Just kicked off the build again today for riscv64gc-unknown-linux-gnu target, will see if it passes 🤞🏾 https://github.com/YOU54F/pact_cli/actions/runs/9198478216/job/25301286790
I believe @endocrimes used an updated image by modifying the cross dockerfile to 23.04 and building it locally https://github.com/cross-rs/cross/blob/main/docker/Dockerfile.riscv64gc-unknown-linux-gnu You could give that a try, and you can reference custom images in your https://github.com/cross-rs/cross/blob/main/docs/custom_images.md#custom-image |
using main branch of cross-rs and disable the tests on riscv64gc due to the llvm bug cross-rs/cross#1423 Signed-off-by: lzzzt <[email protected]>
CI fails for this target:
riscv64gc-unknown-linux-gnu - ❌
The text was updated successfully, but these errors were encountered: