jnlt3 / blackmarlin

WIP Chess Engine
GNU General Public License v3.0
92 stars 7 forks source link

arm64 compilation issue (Win11) #271

Closed ArminiusTux closed 3 months ago

ArminiusTux commented 3 months ago

Dear @jnlt3 ,

compiling your chess engine under Windows on ARM64 gives the following error:

method 1:

$ cargo build --release
    Updating crates.io index
  Downloaded arrayvec v0.7.2
  Downloaded cozy-chess v0.3.1
  Downloaded cozy-chess-types v0.2.1
  Downloaded 3 crates (320.1 KB) in 0.40s
   Compiling cozy-chess-types v0.2.1
   Compiling blackmarlin v0.1.0 (C:\CODING\blackmarlin)
   Compiling cfg-if v1.0.0
   Compiling arrayvec v0.7.2
   Compiling cozy-chess v0.3.1
error: values of the type `[[i8; 1088216786]; 1886680168]` are too big for the current architecture
 --> C:\M\B\src\rustc-1.78.0-src\library\alloc\src\boxed.rs:217:5

error: could not compile `blackmarlin` (bin "blackmarlin") due to 1 previous error

method 2:

$ make
cargo rustc --release -- -C target-cpu=native --emit link=BlackMarlin.exe
   Compiling blackmarlin v0.1.0 (C:\CODING\blackmarlin)
error: values of the type `[[i8; 1088216786]; 1886680168]` are too big for the current architecture
 --> C:\M\B\src\rustc-1.78.0-src\library\alloc\src\boxed.rs:217:5

error: could not compile `blackmarlin` (bin "blackmarlin") due to 1 previous error
make: *** [makefile:11: rule] Error 101

Hope you can fix the matter.

jnlt3 commented 3 months ago

Git LFS is required for the neural network file to be pulled.

ArminiusTux commented 3 months ago

Thank you for the hint, after installing LFS and recloning the repository the compile was successful.

 make
cargo rustc --release -- -C target-cpu=native --emit link=BlackMarlin.exe
   Compiling cozy-chess-types v0.2.1
   Compiling blackmarlin v0.1.0 (C:\CODING\blackmarlin)
   Compiling arrayvec v0.7.2
   Compiling cfg-if v1.0.0
   Compiling cozy-chess v0.3.1
    Finished `release` profile [optimized] target(s) in 26.31s
jnlt3 commented 3 months ago

Glad I was able to help.