-
Notifications
You must be signed in to change notification settings - Fork 481
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
Build script failure on platform detection #508
Comments
Thanks for catching this 😅 This shouldn't happen if
How was this configured as this code point would not trigger given the above ? e.g. what build command was used / where the cfg was defined ? Note It's best to erorr out for build if platforms crate misses target definition instead of trying to default u32 as it would be sudden change of backend if there is switch from default to something else when platforms crate recognises it. Also in this case I understand this is non-supported custom target that Rust makes no opinion of otherwise so in this case the best behaviour would be to insist on specifying it explicitly instead of guessing one behind the scenes on custom target. Nonetheless I need to clean out that error making it more explicit. |
#510 didn't actually fix the issue. Now I get:
But I had this issue because I couldn't set |
It fixed the correct issue - the error that is The build here is using a custom target which I suspect is using tooling which does not signal cfg to rustc which seems to be the problem here. If that error arises then it is a build system error which does not signal cfg correctly to rustc - more than happy to help but I don't have details of the custom build system being used - which doesn't seem to align with the standard rustc build tooling or be part of the standard rust toolchain that is able to signal the cfg flags if these were set correctly. Could please share the details how it is being built exactly e.g. which commands with cargo I assume ? |
@semenov-vladyslav can you not set the |
Raised a follow-up issue: But would be good to know more details re: build command e.g.
|
Automatic backend (
DalekBits
) detection in curve25519-dalek-4.0.0-rc.1build.rs
fails at unwrapplatforms::Platform::find(&target_triplet).unwrap()
while building a risc0 guest method using ed25519-dalek crate. The actualtarget_triplet
isriscv32im-risc0-zkvm-elf
. I was unable to configurecurve25519_dalek_bits
externally, risc0-build doesn't allow it yet, and.cargo/config
didn't work either. As a workaround we could returnDalekBits::Dalek32
if the platform is not found since this is the default value returned for weirdtarget_pointer_width
.The text was updated successfully, but these errors were encountered: