Cannot compile Stockfish anymore after reinstalling MSYS2

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

ernst
Posts: 354
Joined: Thu Mar 09, 2006 6:00 pm

Cannot compile Stockfish anymore after reinstalling MSYS2

Post by ernst »

After a clean install of MSYS2 I get the following error attempting to compile Stockfish. I guess it has to do with an missing or incorrect path but am unable to figure it out. I added the following line in my path environment.
  • ;C:\tools\msys64;C:\tools\msys64\home;C:\Tools\msys64\mingw64\bin;C:\Tools\msys64\usr\bin;
Much appreciated if someone could help me out, thanks

Code: Select all

Step 1/4. Building instrumented executable ...
make ARCH=x86-64-bmi2 COMP=gcc gcc-profile-make
make[1]: Entering directory '/home/Ernst/stockfish-master/src'
make ARCH=x86-64-bmi2 COMP=gcc \
EXTRACXXFLAGS='-fprofile-generate=profdir' \
EXTRACXXFLAGS+= \
EXTRALDFLAGS='-lgcov' \
all
make[2]: Entering directory '/home/Ernst/stockfish-master/src'
g++  -Wall -Wcast-qual -fno-exceptions -std=c++17 -fprofile-generate=profdir -pedantic -Wextra -Wshadow -Wmissing-declarations -m64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -DUSE_AVX2 -mavx2 -mbmi -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DUSE_PEXT -mbmi2 -DARCH=x86-64-bmi2 -flto -flto-partition=one   -c -o benchmark.o benchmark.cpp
g++  -Wall -Wcast-qual -fno-exceptions -std=c++17 -fprofile-generate=profdir -pedantic -Wextra -Wshadow -Wmissing-declarations -m64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -DUSE_AVX2 -mavx2 -mbmi -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DUSE_PEXT -mbmi2 -DARCH=x86-64-bmi2 -flto -flto-partition=one   -c -o bitboard.o bitboard.cpp
make[2]: g++: No such file or directory
make[2]: *** [<builtin>: benchmark.o] Error 127
make[2]: *** Waiting for unfinished jobs....
make[2]: g++: No such file or directory
make[2]: *** [<builtin>: bitboard.o] Error 127
make[2]: Leaving directory '/home/Ernst/stockfish-master/src'
make[1]: *** [Makefile:1017: gcc-profile-make] Error 2
make[1]: Leaving directory '/home/Ernst/stockfish-master/src'
make: *** [Makefile:881: profile-build] Error 2
ernst
Posts: 354
Joined: Thu Mar 09, 2006 6:00 pm

Re: Cannot compile Stockfish anymore after reinstalling MSYS2

Post by ernst »

Nevermind, solved after creating a new worker for fishtest.
This post may either be cause or result of misunderstandings.