Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build error on raspberry pi 4 #29

Open
maswadkar opened this issue Feb 23, 2022 · 1 comment
Open

build error on raspberry pi 4 #29

maswadkar opened this issue Feb 23, 2022 · 1 comment

Comments

@maswadkar
Copy link

maswadkar commented Feb 23, 2022

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
Copy link
Owner

dshawul commented Feb 23, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants