Problem with compiling the chess engine Crafty

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Husse

Re: Problem with compiling the chess engine Crafty

Post by Husse »

I don't know anything about the chess engine Crafty but my standard answer for compiling trouble is "have you installed build-essential ?"

Code: Select all

apt install build-essential
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Husse

Re: Problem with compiling the chess engine Crafty

Post by Husse »

Sorry about that :)
There are so many questions asked by people with very varied knowledge so it's not uncommon that his is the error
I just answered > compiling probems > oh oh ask abot build-essential
The key problem in your case is obviously
CPU you selected does not support x86-64 instruction set
I guess it does if you have the 64 bit version installed :)
The key point here is how the script checks that....
I have not installed this app - I'm about to install in one or two Mint in virtualbox so I can trash a system trying to find the problem for people
nick
Level 5
Level 5
Posts: 684
Joined: Sat Dec 02, 2006 8:04 am

Re: Problem with compiling the chess engine Crafty

Post by nick »

Hi


A quick search of
crafty.c:1: error: CPU you selected does not support x86-64 instruction set
Gives;
http://www.mail-archive.com/scid-users% ... 00141.html
The problem comes from Crafty compilation phase :
it currently tries a "make linux" which targets an x86.
Just change it to "make linux-amd64" and it should work in Makefile.conf :

Replace
crafty:
cd engines/crafty-20.14/ && make linux && cd ../../
with
crafty:
cd engines/crafty-20.14/ && make linux-amd64 && cd ../../

and "./configure && make" should work.
Nick
Husse

Re: Problem with compiling the chess engine Crafty

Post by Husse »

Hi Nick
Nice to see you still in the forum - seemingly spot on as usual :)
nick
Level 5
Level 5
Posts: 684
Joined: Sat Dec 02, 2006 8:04 am

Re: Problem with compiling the chess engine Crafty

Post by nick »

Hi Husse

Thank you Sir!, still about, but have to limit my time now
I am a pensioner, :) Keep up the good work

Nick
Locked

Return to “Software & Applications”