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();
^~~~~~~~~~~~~~~~~
BrianFish on Linux
Moderators: hgm, Rebel, chrisw
-
- Posts: 6442
- Joined: Tue Jan 09, 2007 12:31 am
- Location: PA USA
- Full name: Louis Zulli
Re: BrianFish on Linux
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.
-
- Posts: 229
- Joined: Thu Mar 10, 2016 6:17 pm
- Location: Canada
Re: BrianFish on Linux
macOS - ditto .. for me anyway ..