cargo rustc --manifest-path ./engine/Cargo.toml --bin engine --release --no-default-features --features release -- -C target-cpu=native --emit link=Tcheran-1081AF7A-B1CA130B
Compiling find-msvc-tools v0.1.4
Compiling shlex v1.3.0
Compiling cc v1.2.41
Compiling engine v9.0.0 (/tmp/tmpx1rfg2pm/Tcheran/Tcheran-tmp/engine)
error[E0080]: transmuting from 1579072-byte type to 1607744-byte type: `[u8; 1579072]` -> `Network`
--> engine/src/engine/eval/nnue.rs:269:36
|
269 | 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:269:36
|
269 | static NETWORK: Network = unsafe { std::mem::transmute(*include_bytes!(env!("NETWORK"))) };
| ^^^^^^^^^^^^^^^^^^^
|
= note: source type: `[u8; 1579072]` (12632576 bits)
= note: target type: `Network` (12861952 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:10: openbench] Error 101