You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to compile this crate on Apple M1 Silicon errors with
error[E0425]: cannot find function `__cpuid` in module `arch`
--> /Users/user/.cargo/registry/src/github.com-1ecc6299db9ec823/rdrand-0.8.2/src/lib.rs:163:33
|
163 | let cpuid0 = unsafe { arch::__cpuid(0) };
| ^^^^^^^ not found in `arch`
error[E0412]: cannot find type `CpuidResult` in module `arch`
--> /Users/user/.cargo/registry/src/github.com-1ecc6299db9ec823/rdrand-0.8.2/src/lib.rs:171:30
|
171 | fn amd_family(cpuid1: &arch::CpuidResult) -> u32 {
| ^^^^^^^^^^^ not found in `arch`
error[E0412]: cannot find type `CpuidResult` in module `arch`
--> /Users/user/.cargo/registry/src/github.com-1ecc6299db9ec823/rdrand-0.8.2/src/lib.rs:176:30
|
176 | fn has_rdrand(cpuid1: &arch::CpuidResult) -> bool {
| ^^^^^^^^^^^ not found in `arch`
error[E0425]: cannot find function `__cpuid` in module `arch`
--> /Users/user/.cargo/registry/src/github.com-1ecc6299db9ec823/rdrand-0.8.2/src/lib.rs:184:20
|
184 | unsafe { arch::__cpuid(7).ebx & FLAG == FLAG }
| ^^^^^^^ not found in `arch`
The text was updated successfully, but these errors were encountered:
Apple Silicon does not support the instruction, but it would still be nice to compile to a crate that does not have any functionality and just returns errors at runtime, just like they return errors when the instruction is not supported on x86_64, so that this kind of conditionality wasn’t necessary in the users’ code.
Trying to compile this crate on Apple M1 Silicon errors with
The text was updated successfully, but these errors were encountered: