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, 42 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 »

How can I compile 32 bits binaries? make -j profile-build ARCH=x86-32 COMP=gcc gives these errors:

g++: error: unrecognized command-line option '-m32'
g++: error: unrecognized command-line option '-mthumb'
g++: error: unrecognized command-line option '-m32'
g++: error: unrecognized command-line option '-m32'
g++: error: unrecognized command-line option '-mthumb'
g++: error: unrecognized command-line option '-mthumb'
g++: error: unrecognized command-line option '-m32'
g++: error: unrecognized command-line option '-mthumb'
g++: error: unrecognized command-line option '-m32'
g++: error: unrecognized command-line option '-mthumb'
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.”