Problem with compiling the chess engine Crafty

Questions about applications and software
Forum rules
Before you post please read this

Problem with compiling the chess engine Crafty

Postby shantihx on Wed Jun 10, 2009 12:13 pm

I did recently install Linux Mint and I'm very happy with it. You have made a great job.

I'm having some problem with installing the chess engine Crafty though. When I run make linux I get the following:
Code: Select all
make target=LINUX \
      CC=gcc CXX=g++ \
      CFLAGS=' -g -Wall -pipe -march=i686 -O3 \
         -fno-gcse -mpreferred-stack-boundary=2' \
      CXFLAGS= \
      LDFLAGS=' -g -lpthread -lstdc++' \
      opt=' -DDEBUG -DTRACE -DINLINE32 -DCPUS=2' \
      crafty-make
make[1]: Entering directory `/home/adam/crafty-23.0'
make[2]: Entering directory `/home/adam/crafty-23.0'
gcc -g -Wall -pipe -march=i686 -O3 \
      -fno-gcse -mpreferred-stack-boundary=2 -DDEBUG -DTRACE -DINLINE32 -DCPUS=2 -DLINUX -c crafty.c
crafty.c:1: error: CPU you selected does not support x86-64 instruction set
crafty.c:1: error: -mpreferred-stack-boundary=2 is not between 4 and 12
make[2]: *** [crafty.o] Error 1
make[2]: Leaving directory `/home/adam/crafty-23.0'
make[1]: *** [crafty-make] Error 2
make[1]: Leaving directory `/home/adam/crafty-23.0'
make: *** [linux] Error 2

I'm running the x64 version of Linux Mint and my CPU is well I don't know but it is a 64bit one lol. Any help would be very appreciated.
shantihx
Level 1
Level 1
 
Posts: 3
Joined: Wed Jun 10, 2009 11:58 am

Linux Mint is funded by ads and donations.
 

Re: Problem with compiling the chess engine Crafty

Postby Husse on Fri Jun 12, 2009 6:20 am

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
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19710
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: Problem with compiling the chess engine Crafty

Postby shantihx on Sat Jun 13, 2009 7:00 am

Eh, yes of course. To me it seems like it's something wrong with the make file but I don't know much about that stuff... Has anyone else compiled Crafty on Linux Mint, how did you do?
shantihx
Level 1
Level 1
 
Posts: 3
Joined: Wed Jun 10, 2009 11:58 am

Re: Problem with compiling the chess engine Crafty

Postby Husse on Sat Jun 13, 2009 9:30 am

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
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19710
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: Problem with compiling the chess engine Crafty

Postby nick on Sat Jun 13, 2009 10:26 am

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
nick
Level 5
Level 5
 
Posts: 686
Joined: Sat Dec 02, 2006 8:04 am

Re: Problem with compiling the chess engine Crafty

Postby Husse on Sat Jun 13, 2009 1:55 pm

Hi Nick
Nice to see you still in the forum - seemingly spot on as usual :)
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19710
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: Problem with compiling the chess engine Crafty

Postby nick on Sat Jun 13, 2009 3:25 pm

Hi Husse

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

Nick
nick
Level 5
Level 5
 
Posts: 686
Joined: Sat Dec 02, 2006 8:04 am

Linux Mint is funded by ads and donations.
 

Return to Software & Applications

Who is online

Users browsing this forum: No registered users and 9 guests