jhonnold / berserk

UCI Chess Engine written in C
GNU General Public License v3.0
198 stars 30 forks source link

compile error on arm64 aarch64 with gcc or clang on RaspBerry 4 #545

Closed BrennusJ closed 4 months ago

BrennusJ commented 4 months ago

Hello,

On my raspberry 4 (aarch64 architecture) on Debian / Ubuntu the result is the same with gcc or clang :+1:

ubuntu@ubuntu:~/berserk/src$ make -j4 build Using the current best network: berserk-e4712455eaf4.nn File already downloaded Downloaded network berserk-e4712455eaf4.nn and verified make ARCH=aarch64 all make[1] : on entre dans le répertoire « /home/ubuntu/berserk/src » clang attacks.c bench.c berserk.c bits.c board.c eval.c history.c move.c movegen.c movepick.c perft.c random.c search.c see.c tb.c thread.c transposition.c uci.c util.c zobrist.c nn/accumulator.c nn/evaluate.c pyrrhic/tbprobe.c -pthread -lm -o berserk **nn/evaluate.c:35:15: error: expected ')' INCBIN(Embed, EVALFILE); ^ nn/evaluate.c:35:1: note: to match this '(' INCBIN(Embed, EVALFILE); ^ nn/../incbin.h:305:10: note: expanded from macro 'INCBIN' asm(INCBIN_SECTION INCBIN_GLOBAL_LABELS(NAME, DATA) \ ^ 1 error generated. make[1]: ** [makefile:99 : all] Erreur 1 make[1] : on quitte le répertoire « /home/ubuntu/berserk/src » make: [makefile:72 : build] Erreur 2

I don't know how to solve it

Thanks for your help

BrennusJ commented 4 months ago

just replace everytwhere arch64 by aarch64 in makefile