Scorpio icon indicating copy to clipboard operation
Scorpio copied to clipboard

build error on raspberry pi 4

Open lumensparkxy opened this issue 3 years ago • 1 comments

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'

lumensparkxy avatar Feb 23 '22 00:02 lumensparkxy

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

dshawul avatar Feb 23 '22 01:02 dshawul