Compiling Stockfish with gcc on Termux

kramnik

Top contribute Forum
Forum Contributions
Points: 40 305,00 
Posts: 1924
Joined: 04/11/2019, 14:45
Status: Offline (Active 3 Months, 6 Days, 9 Hours, 25 Minutes ago)
Medals: 1
Topics: 71
Reputation: 2388
Location: North-Italy
Has thanked: 1185 times
Been thanked: 2951 times

Re: Compiling Stockfish with gcc on Termux

Post by kramnik »

AWESOME, IT WORKS!!

It produces a binary working on Droidfish at the same speed of the others but I got strange warnings:

Code: Select all

bitboard.cpp: In function '_GLOBAL__sub_I__ZN9Stockfish8PopCnt16E':
bitboard.cpp:222:1: warning: 'profdir/#data#data#com.termux#files#home#Stockfish#src#bitboard.gcda' profile count data file not found [-Wmissing-profile]
  222 | } // namespace Stockfish
      | ^
bitbase.cpp: In member function 'std::_Vector_base<Stockfish::(anonymous namespace)::KPKPosition, std::allocator<Stockfish::(anonymous namespace)::KPKPosition> >::_M_allocate(unsigned long)':
bitbase.cpp:172:1: warning: 'profdir/#data#data#com.termux#files#home#Stockfish#src#bitbase.gcda' profile count data file not found [-Wmissing-profile]
  172 | } // namespace Stockfish
      | ^
tune.cpp: In function '_GLOBAL__sub_I__ZN9Stockfish4Tune14update_on_lastE':
tune.cpp:133:1: warning: 'profdir/#data#data#com.termux#files#home#Stockfish#src#tune.gcda' profile count data file not found [-Wmissing-profile]
  133 | } // namespace Stockfish
      | ^
psqt.cpp: In function 'Stockfish::PSQT::init()':
psqt.cpp:131:1: warning: 'profdir/#data#data#com.termux#files#home#Stockfish#src#psqt.gcda' profile count data file not found [-Wmissing-profile]
  131 | } // namespace Stockfish
      | ^
pawns.cpp: In function '_GLOBAL__sub_I__ZN9Stockfish5Pawns5probeERKNS_8PositionE':
pawns.cpp:305:1: warning: 'profdir/#data#data#com.termux#files#home#Stockfish#src#pawns.gcda' profile count data file not found [-Wmissing-profile]
  305 | } // namespace Stockfish
      | ^
movegen.cpp: In function '_GLOBAL__sub_I__ZN9Stockfish8generateILNS_7GenTypeE5EEEPNS_7ExtMoveERKNS_8PositionES3_':
movegen.cpp:276:1: warning: 'profdir/#data#data#com.termux#files#home#Stockfish#src#movegen.gcda' profile count data file not found [-Wmissing-profile]
Archimedes wrote: 17/10/2021, 13:26
kramnik wrote: 17/10/2021, 13:24 Does the produced binary work outside Termux?
Yes.

Return to “Programming, Technical Discussions, Chess related questions etc.”