BrianFish on Linux

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Dann Corbit, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
Post Reply
snino64
Posts: 35
Joined: Mon Oct 05, 2009 12:38 pm

BrianFish on Linux

Post by snino64 » Sat Aug 10, 2019 10:53 pm

I can't compile the version 190804 for linux.
make build ARCH=x86-64-modern

The result on the screen is:

Config:
debug: 'no'
sanitize: 'no'
optimize: 'yes'
arch: 'x86_64'
bits: '64'
kernel: 'Linux'
os: 'GNU/Linux'
prefetch: 'yes'
popcnt: 'yes'
sse: 'yes'
pext: 'no'

Flags:
CXX: g++
CXXFLAGS: -Wall -Wcast-qual -fno-exceptions -std=c++11 -pedantic -Wextra -Wshadow -m64 -DNDEBUG -O3 -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -flto
LDFLAGS: -m64 -Wl,--no-as-needed -lpthread -Wall -Wcast-qual -fno-exceptions -std=c++11 -pedantic -Wextra -Wshadow -m64 -DNDEBUG -O3 -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -flto

Testing config sanity. If this fails, try 'make help' ...

make ARCH=x86-64-modern COMP=gcc all
make[1]: se entra en el directorio '/home/benigno/Documentos/Ajedrez/Motores/BrainFish/20190804/BrainFish_20190804/source/unix'
g++ -Wall -Wcast-qual -fno-exceptions -std=c++11 -pedantic -Wextra -Wshadow -m64 -DNDEBUG -O3 -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -flto -c -o search.o search.cpp
g++ -Wall -Wcast-qual -fno-exceptions -std=c++11 -pedantic -Wextra -Wshadow -m64 -DNDEBUG -O3 -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -flto -c -o thread.o thread.cpp
g++ -Wall -Wcast-qual -fno-exceptions -std=c++11 -pedantic -Wextra -Wshadow -m64 -DNDEBUG -O3 -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -flto -c -o timeman.o timeman.cpp
g++ -Wall -Wcast-qual -fno-exceptions -std=c++11 -pedantic -Wextra -Wshadow -m64 -DNDEBUG -O3 -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -flto -c -o tt.o tt.cpp
tt.cpp: In function ‘bool Get_LockMemory_Privileges()’:
tt.cpp:66:5: error: ‘HANDLE’ was not declared in this scope
HANDLE TH, PROC7;
^~~~~~
tt.cpp:67:5: error: ‘TOKEN_PRIVILEGES’ was not declared in this scope
TOKEN_PRIVILEGES tp;
^~~~~~~~~~~~~~~~
tt.cpp:70:5: error: ‘PROC7’ was not declared in this scope
PROC7 = GetCurrentProcess();
^~~~~
tt.cpp:70:13: error: ‘GetCurrentProcess’ was not declared in this scope
PROC7 = GetCurrentProcess();
^~~~~~~~~~~~~~~~~


zullil
Posts: 6442
Joined: Mon Jan 08, 2007 11:31 pm
Location: PA USA
Full name: Louis Zulli

Re: BrianFish on Linux

Post by zullil » Sun Aug 11, 2019 10:39 am

snino64 wrote:
Sat Aug 10, 2019 10:53 pm
I can't compile the version 190804 for linux.
make build ARCH=x86-64-modern
I can't either. Despite being in a directory called unix, the source code for tt.cpp is designed for Windows. There are modifications to the code that have been added to allow large page handling in Windows. None of this is needed in linux.

Based on the errors you received, it seems you commented out the #include "windows.h". But this won't fix the problem.

You should contact the author at Brainfish (at) zipproth.com and ask if a Linux version is available.

maxdeg
Posts: 222
Joined: Thu Mar 10, 2016 5:17 pm
Location: Canada

Re: BrianFish on Linux

Post by maxdeg » Sun Aug 11, 2019 1:26 pm

macOS - ditto .. for me anyway .. :cry: :(

Post Reply