Help learning to compile...

Discussion of chess software programming and technical issues.

Moderators: bob, hgm, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
Post Reply
ChiefPushesWood
Posts: 58
Joined: Thu Nov 08, 2018 5:30 pm
Full name: Chief PushesWood

Help learning to compile...

Post by ChiefPushesWood » Wed Jun 12, 2019 9:18 pm

I am trying my very best to learn how to compile this engine... I keep running into an error during the compile... Anyone have ANY idea how to fix this? Now I really want to learn how... Mike took time to help with the CB stuff and I'd like to help by testing for him.

Code: Select all

$ make profile-build ARCH=x86-64-modern COMP=mingw

Config:
debug: 'no'
sanitize: 'no'
optimize: 'yes'
arch: 'x86_64'
bits: '64'
kernel: 'MSYS_NT-10.0-18362'
os: 'Windows_NT'
prefetch: 'yes'
popcnt: 'yes'
sse: 'yes'
pext: 'no'

Flags:
CXX: g++
CXXFLAGS: -DAdd_Features -DMaverick -Wall -Wcast-qual -fno-exceptions -std=c++11  -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT
LDFLAGS:  -static

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


Step 1/4. Building instrumented executable ...
make ARCH=x86-64-modern COMP=mingw gcc-profile-make
make[1]: Entering directory '/home/Tom/stockfish-x4/src'
make ARCH=x86-64-modern COMP=mingw \
EXTRACXXFLAGS='-fprofile-generate -fprofile-correction' \
EXTRALDFLAGS='-lgcov' \
all
make[2]: Entering directory '/home/Tom/stockfish-x4/src'
g++ -DAdd_Features -DMaverick -Wall -Wcast-qual -fno-exceptions -std=c++11 -fprofile-generate -fprofile-correction -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT   -c -o benchmark.o benchmark.cpp
make[2]: g++: Command not found
make[2]: *** [<builtin>: benchmark.o] Error 127
make[2]: Leaving directory '/home/Tom/stockfish-x4/src'
make[1]: *** [Makefile:624: gcc-profile-make] Error 2
make[1]: Leaving directory '/home/Tom/stockfish-x4/src'
make: *** [Makefile:524: profile-build] Error 2
Looking at tutorials and videos on the web, I notice the variable kernel: 'MSYS_NT-10.0-18362' is usually MINGW... Is that the problem? What am I doing wrong?

Chief

ChiefPushesWood
Posts: 58
Joined: Thu Nov 08, 2018 5:30 pm
Full name: Chief PushesWood

Re: Help learning to compile...

Post by ChiefPushesWood » Wed Jun 12, 2019 9:55 pm

Nevermind... I got it.
I had to run MSys2 in administrator...

Chief

Post Reply