dshawul / Scorpio

Scorpio chess engine
Other
84 stars 18 forks source link

build error on raspberry pi 4 #29

Open maswadkar opened 2 years ago

maswadkar commented 2 years ago
pi@pi8:~/chess/Scorpio/src $ g++ -c mcts.cpp 
/tmp/cc1WZLto.s: Assembler messages:
/tmp/cc1WZLto.s:4425: Error: unknown mnemonic `pause' -- `pause'
/tmp/cc1WZLto.s:6038: Error: unknown mnemonic `pause' -- `pause'
dshawul commented 2 years ago

You could try to set t_pause() in my_types.h to blank similar to what is done for __ANDROID__. https://github.com/dshawul/Scorpio/blob/master/src/my_types.h#L175-L185

#if defined _WIN32
#   define t_pause()  YieldProcessor()
#   define t_sleep(x) Sleep(x)
#else
#   define t_sleep(x) usleep((x) * 1000)
#if defined __ANDROID__
#   define t_pause()
#else
#   define t_pause()  asm volatile("pause\n": : :"memory")
#endif
#endif