cargo rustc --manifest-path ./engine/Cargo.toml --bin engine --release --no-default-features --features release -- -C target-cpu=native --emit link=Tcheran-CD400CED-FE4A2725
Compiling find-msvc-tools v0.1.4
Compiling shlex v1.3.0
Compiling cc v1.2.41
Compiling engine v10.0.0 (/tmp/tmpjc7czfxs/Tcheran/Tcheran-tmp/engine)
error[E0080]: transmuting from 1607744-byte type to 1579072-byte type: `[u8; 1607744]` -> `Network`
--> engine/src/engine/eval/nnue.rs:268:36
|
268 | static NETWORK: Network = unsafe { std::mem::transmute(*include_bytes!(env!("NETWORK"))) };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `engine::eval::nnue::NETWORK` failed here
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
--> engine/src/engine/eval/nnue.rs:268:36
|
268 | static NETWORK: Network = unsafe { std::mem::transmute(*include_bytes!(env!("NETWORK"))) };
| ^^^^^^^^^^^^^^^^^^^
|
= note: source type: `[u8; 1607744]` (12861952 bits)
= note: target type: `Network` (12632576 bits)
Some errors have detailed explanations: E0080, E0512.
For more information about an error, try `rustc --explain E0080`.
error: could not compile `engine` (lib) due to 2 previous errors
make: *** [Makefile:15: openbench] Error 101