Ndk installing the compiled file on libs folder?Archimedes wrote: ↑13/06/2022, 5:26Compiling is divided in two steps. First, the compiler creates the object files. Second, compiler are linking the object files. The resulting binary will be copied to the libs directory.superbatil wrote: ↑12/06/2022, 17:58 While compiling on android-ndk, what is obj folder and libs folder?
Compiling for Android
Moderators: Elijah, Igbo, timetraveller
-
- Forum Contributions
- Points: 14 010,00
- Posts: 76
- Joined: 24/02/2022, 11:23
- Status: Offline (Active 2 Weeks, 16 Hours, 14 Minutes ago)
- Topics: 0
- Reputation: 17
- Has thanked: 1 time
- Been thanked: 51 times
Re: Compiling for Android
-
- Forum Contributions
- Points: 42 582,00
- Posts: 2059
- Joined: 04/11/2019, 21:13
- Status: Online (Active 2 Hours, 58 Minutes ago)
- Medals: 2
- Topics: 158
- Reputation: 7111
- Been thanked: 6477 times
-
- Forum Contributions
- Points: 14 010,00
- Posts: 76
- Joined: 24/02/2022, 11:23
- Status: Offline (Active 2 Weeks, 16 Hours, 14 Minutes ago)
- Topics: 0
- Reputation: 17
- Has thanked: 1 time
- Been thanked: 51 times
-
- Forum Contributions
- Points: 42 582,00
- Posts: 2059
- Joined: 04/11/2019, 21:13
- Status: Online (Active 2 Hours, 58 Minutes ago)
- Medals: 2
- Topics: 158
- Reputation: 7111
- Been thanked: 6477 times
Re: Compiling for Android
I don't understand your question. When finished, Android NDK copy all generated binaries to the libs folder. This works for Windows, Linux and Termux. If there is no binary in libs folder, compilation fails.superbatil wrote: ↑13/06/2022, 11:29...not on Termux system?
-
- Forum Contributions
- Points: 14 010,00
- Posts: 76
- Joined: 24/02/2022, 11:23
- Status: Offline (Active 2 Weeks, 16 Hours, 14 Minutes ago)
- Topics: 0
- Reputation: 17
- Has thanked: 1 time
- Been thanked: 51 times
Re: Compiling for Android
How to fix this?
Code: Select all
/data/data/com.termux/files/home/xiphos/jni/../src/uci.c:345:6: fatal error: format string is not a string literal (potentially insecure) [-Wformat-security]
_p(pv_string);
^~~~~~~~~
/data/data/com.termux/files/home/xiphos/jni/../src/uci.c:345:6: note: treat the string as an argument to avoid this
_p(pv_string);
^
"%s",
4 warnings and 1 error generated.
make: *** [/data/data/com.termux/files/home/android-ndk-r24/build/core/build-binary.mk:422: /data/data/com.termux/files/home/xiphos/obj/local/arm64-v8a/objs/Xiphos/__/src/uci.o] Error 1
Full Info
Code: Select all
/data/data/com.termux/files/home/xiphos/jni/../src/bitboard.h:131:47: warning: unused parameter '_occ' [-Wunused-parameter]
static inline uint64_t knight_attack(uint64_t _occ, int sq)
^
/data/data/com.termux/files/home/xiphos/jni/../src/bitboard.h:137:45: warning: unused parameter '_occ' [-Wunused-parameter]
static inline uint64_t king_attack(uint64_t _occ, int sq)
^
2 warnings generated.
[arm64-v8a] Compile : Xiphos <= eval.c
WARNING: linker: /data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/eval.c:19:
/data/data/com.termux/files/home/xiphos/jni/../src/bitboard.h:131:47: warning: unused parameter '_occ' [-Wunused-parameter]
static inline uint64_t knight_attack(uint64_t _occ, int sq)
^
/data/data/com.termux/files/home/xiphos/jni/../src/bitboard.h:137:45: warning: unused parameter '_occ' [-Wunused-parameter]
static inline uint64_t king_attack(uint64_t _occ, int sq)
^
2 warnings generated.
[arm64-v8a] Compile : Xiphos <= gen.c
WARNING: linker: /data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/gen.c:19:
/data/data/com.termux/files/home/xiphos/jni/../src/bitboard.h:131:47: warning: unused parameter '_occ' [-Wunused-parameter]
static inline uint64_t knight_attack(uint64_t _occ, int sq)
^
/data/data/com.termux/files/home/xiphos/jni/../src/bitboard.h:137:45: warning: unused parameter '_occ' [-Wunused-parameter]
static inline uint64_t king_attack(uint64_t _occ, int sq)
^
2 warnings generated.
[arm64-v8a] Compile : Xiphos <= hash.c
WARNING: linker: /data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/hash.c:25:
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/hash.h:24:
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/search.h:25:
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/position.h:25:
/data/data/com.termux/files/home/xiphos/jni/../src/bitboard.h:131:47: warning: unused parameter '_occ' [-Wunused-parameter]
static inline uint64_t knight_attack(uint64_t _occ, int sq)
^
/data/data/com.termux/files/home/xiphos/jni/../src/bitboard.h:137:45: warning: unused parameter '_occ' [-Wunused-parameter]
static inline uint64_t king_attack(uint64_t _occ, int sq)
^
2 warnings generated.
[arm64-v8a] Compile : Xiphos <= history.c
WARNING: linker: /data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/history.c:20:
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/history.h:24:
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/position.h:25:
/data/data/com.termux/files/home/xiphos/jni/../src/bitboard.h:131:47: warning: unused parameter '_occ' [-Wunused-parameter]
static inline uint64_t knight_attack(uint64_t _occ, int sq)
^
/data/data/com.termux/files/home/xiphos/jni/../src/bitboard.h:137:45: warning: unused parameter '_occ' [-Wunused-parameter]
static inline uint64_t king_attack(uint64_t _occ, int sq)
^
2 warnings generated.
[arm64-v8a] Compile : Xiphos <= main.c
WARNING: linker: /data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/main.c:21:
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/eval.h:23:
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/position.h:25:
/data/data/com.termux/files/home/xiphos/jni/../src/bitboard.h:131:47: warning: unused parameter '_occ' [-Wunused-parameter]
static inline uint64_t knight_attack(uint64_t _occ, int sq)
^
/data/data/com.termux/files/home/xiphos/jni/../src/bitboard.h:137:45: warning: unused parameter '_occ' [-Wunused-parameter]
static inline uint64_t king_attack(uint64_t _occ, int sq)
^
/data/data/com.termux/files/home/xiphos/jni/../src/main.c:32:14: warning: unused parameter 'argc' [-Wunused-parameter]
int main(int argc, char **argv)
^
/data/data/com.termux/files/home/xiphos/jni/../src/main.c:32:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
^
4 warnings generated.
[arm64-v8a] Compile : Xiphos <= make.c
WARNING: linker: /data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/make.c:19:
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/eval.h:23:
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/position.h:25:
/data/data/com.termux/files/home/xiphos/jni/../src/bitboard.h:131:47: warning: unused parameter '_occ' [-Wunused-parameter]
static inline uint64_t knight_attack(uint64_t _occ, int sq)
^
/data/data/com.termux/files/home/xiphos/jni/../src/bitboard.h:137:45: warning: unused parameter '_occ' [-Wunused-parameter]
static inline uint64_t king_attack(uint64_t _occ, int sq)
^
2 warnings generated.
[arm64-v8a] Compile : Xiphos <= move_eval.c
WARNING: linker: /data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/move_eval.c:19:
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/history.h:24:
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/position.h:25:
/data/data/com.termux/files/home/xiphos/jni/../src/bitboard.h:131:47: warning: unused parameter '_occ' [-Wunused-parameter]
static inline uint64_t knight_attack(uint64_t _occ, int sq)
^
/data/data/com.termux/files/home/xiphos/jni/../src/bitboard.h:137:45: warning: unused parameter '_occ' [-Wunused-parameter]
static inline uint64_t king_attack(uint64_t _occ, int sq)
^
2 warnings generated.
[arm64-v8a] Compile : Xiphos <= move_list.c
WARNING: linker: /data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/move_list.c:21:
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/gen.h:23:
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/position.h:25:
/data/data/com.termux/files/home/xiphos/jni/../src/bitboard.h:131:47: warning: unused parameter '_occ' [-Wunused-parameter]
static inline uint64_t knight_attack(uint64_t _occ, int sq)
^
/data/data/com.termux/files/home/xiphos/jni/../src/bitboard.h:137:45: warning: unused parameter '_occ' [-Wunused-parameter]
static inline uint64_t king_attack(uint64_t _occ, int sq)
^
2 warnings generated.
[arm64-v8a] Compile : Xiphos <= pawn_eval.c
WARNING: linker: /data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/pawn_eval.c:19:
/data/data/com.termux/files/home/xiphos/jni/../src/bitboard.h:131:47: warning: unused parameter '_occ' [-Wunused-parameter]
static inline uint64_t knight_attack(uint64_t _occ, int sq)
^
/data/data/com.termux/files/home/xiphos/jni/../src/bitboard.h:137:45: warning: unused parameter '_occ' [-Wunused-parameter]
static inline uint64_t king_attack(uint64_t _occ, int sq)
^
2 warnings generated.
[arm64-v8a] Compile : Xiphos <= perft.c
WARNING: linker: /data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/perft.c:19:
/data/data/com.termux/files/home/xiphos/jni/../src/bitboard.h:131:47: warning: unused parameter '_occ' [-Wunused-parameter]
static inline uint64_t knight_attack(uint64_t _occ, int sq)
^
/data/data/com.termux/files/home/xiphos/jni/../src/bitboard.h:137:45: warning: unused parameter '_occ' [-Wunused-parameter]
static inline uint64_t king_attack(uint64_t _occ, int sq)
^
/data/data/com.termux/files/home/xiphos/jni/../src/perft.c:176:17: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
for (i = 0; i < sizeof(tests) / sizeof(test_t); i ++)
~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 warnings generated.
[arm64-v8a] Compile : Xiphos <= phash.c
WARNING: linker: /data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/phash.c:20:
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/phash.h:23:
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/position.h:25:
/data/data/com.termux/files/home/xiphos/jni/../src/bitboard.h:131:47: warning: unused parameter '_occ' [-Wunused-parameter]
static inline uint64_t knight_attack(uint64_t _occ, int sq)
^
/data/data/com.termux/files/home/xiphos/jni/../src/bitboard.h:137:45: warning: unused parameter '_occ' [-Wunused-parameter]
static inline uint64_t king_attack(uint64_t _occ, int sq)
^
2 warnings generated.
[arm64-v8a] Compile : Xiphos <= position.c
WARNING: linker: /data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/position.c:19:
/data/data/com.termux/files/home/xiphos/jni/../src/bitboard.h:131:47: warning: unused parameter '_occ' [-Wunused-parameter]
static inline uint64_t knight_attack(uint64_t _occ, int sq)
^
/data/data/com.termux/files/home/xiphos/jni/../src/bitboard.h:137:45: warning: unused parameter '_occ' [-Wunused-parameter]
static inline uint64_t king_attack(uint64_t _occ, int sq)
^
2 warnings generated.
[arm64-v8a] Compile : Xiphos <= search.c
WARNING: linker: /data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/search.c:22:
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/eval.h:23:
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/position.h:25:
/data/data/com.termux/files/home/xiphos/jni/../src/bitboard.h:131:47: warning: unused parameter '_occ' [-Wunused-parameter]
static inline uint64_t knight_attack(uint64_t _occ, int sq)
^
/data/data/com.termux/files/home/xiphos/jni/../src/bitboard.h:137:45: warning: unused parameter '_occ' [-Wunused-parameter]
static inline uint64_t king_attack(uint64_t _occ, int sq)
^
/data/data/com.termux/files/home/xiphos/jni/../src/search.c:266:19: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
(piece_cnt == TB_LARGEST && depth >= search_settings.tb_probe_depth))
~~~~~~~~~ ^ ~~~~~~~~~~
/data/data/com.termux/files/home/xiphos/jni/../src/search.c:265:19: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
if (piece_cnt < TB_LARGEST ||
~~~~~~~~~ ^ ~~~~~~~~~~
/data/data/com.termux/files/home/xiphos/jni/../src/search.c:745:68: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
if (TB_LARGEST > 0 && !sd->pos->c_flag && _popcnt(_occ(sd->pos)) <= TB_LARGEST)
~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
5 warnings generated.
[arm64-v8a] Compile : Xiphos <= tablebases.c
WARNING: linker: /data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/tablebases.c:20:
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/gen.h:23:
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/position.h:25:
/data/data/com.termux/files/home/xiphos/jni/../src/bitboard.h:131:47: warning: unused parameter '_occ' [-Wunused-parameter]
static inline uint64_t knight_attack(uint64_t _occ, int sq)
^
/data/data/com.termux/files/home/xiphos/jni/../src/bitboard.h:137:45: warning: unused parameter '_occ' [-Wunused-parameter]
static inline uint64_t king_attack(uint64_t _occ, int sq)
^
2 warnings generated.
[arm64-v8a] Compile : Xiphos <= tables.c
WARNING: linker: /data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/tables.c:20:
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/eval.h:23:
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/position.h:25:
/data/data/com.termux/files/home/xiphos/jni/../src/bitboard.h:131:47: warning: unused parameter '_occ' [-Wunused-parameter]
static inline uint64_t knight_attack(uint64_t _occ, int sq)
^
/data/data/com.termux/files/home/xiphos/jni/../src/bitboard.h:137:45: warning: unused parameter '_occ' [-Wunused-parameter]
static inline uint64_t king_attack(uint64_t _occ, int sq)
^
2 warnings generated.
[arm64-v8a] Compile : Xiphos <= uci.c
WARNING: linker: /data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/uci.c:24:
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/hash.h:24:
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/search.h:25:
In file included from /data/data/com.termux/files/home/xiphos/jni/../src/position.h:25:
/data/data/com.termux/files/home/xiphos/jni/../src/bitboard.h:131:47: warning: unused parameter '_occ' [-Wunused-parameter]
static inline uint64_t knight_attack(uint64_t _occ, int sq)
^
/data/data/com.termux/files/home/xiphos/jni/../src/bitboard.h:137:45: warning: unused parameter '_occ' [-Wunused-parameter]
static inline uint64_t king_attack(uint64_t _occ, int sq)
^
/data/data/com.termux/files/home/xiphos/jni/../src/uci.c:107:22: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned long') [-Wsign-compare]
for (i = sq = 0; i < strlen(buf); i ++)
~ ^ ~~~~~~~~~~~
/data/data/com.termux/files/home/xiphos/jni/../src/uci.c:140:12: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned long') [-Wsign-compare]
for (; i < strlen(buf); i ++)
~ ^ ~~~~~~~~~~~
/data/data/com.termux/files/home/xiphos/jni/../src/uci.c:345:6: fatal error: format string is not a string literal (potentially insecure) [-Wformat-security]
_p(pv_string);
^~~~~~~~~
/data/data/com.termux/files/home/xiphos/jni/../src/uci.c:345:6: note: treat the string as an argument to avoid this
_p(pv_string);
^
"%s",
4 warnings and 1 error generated.
make: *** [/data/data/com.termux/files/home/android-ndk-r24/build/core/build-binary.mk:422: /data/data/com.termux/files/home/xiphos/obj/local/arm64-v8a/objs/Xiphos/__/src/uci.o] Error 1
-
- Forum Contributions
- Points: 42 582,00
- Posts: 2059
- Joined: 04/11/2019, 21:13
- Status: Online (Active 2 Hours, 58 Minutes ago)
- Medals: 2
- Topics: 158
- Reputation: 7111
- Been thanked: 6477 times
Re: Compiling for Android
In uci.c change
to
Code: Select all
_p(pv_string);
Code: Select all
_p("%s", pv_string);
-
- Forum Contributions
- Points: 14 010,00
- Posts: 76
- Joined: 24/02/2022, 11:23
- Status: Offline (Active 2 Weeks, 16 Hours, 14 Minutes ago)
- Topics: 0
- Reputation: 17
- Has thanked: 1 time
- Been thanked: 51 times
Re: Compiling for Android
I have too much space so it didn't workArchimedes wrote: ↑14/06/2022, 10:08 In uci.c changetoCode: Select all
_p(pv_string);
Code: Select all
_p("%s", pv_string);
Code: Select all
(before) _p("%s ", pv_string);
(after) _p("%s", pv_string);
-
- Forum Contributions
- Points: 14 010,00
- Posts: 76
- Joined: 24/02/2022, 11:23
- Status: Offline (Active 2 Weeks, 16 Hours, 14 Minutes ago)
- Topics: 0
- Reputation: 17
- Has thanked: 1 time
- Been thanked: 51 times
Re: Compiling Smallbrain 3.0
How to find the solution?
Full info:
Compiler:
Code: Select all
/data/data/com.termux/files/usr/tmp/ccmkuoDW.s:10: Error: file not found: =/default.net
lto-wrapper: fatal error: g++ returned 1 exit status
compilation terminated.
/data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/../../../../aarch64-linux-android/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
Code: Select all
g++ -DEVALFILE=\"=/default.net\" -std=c++20 -DNDEBUG -O3 -march=native -DIS_64BIT -flto -Wall -Wfatal-errors -Wextra -Wshadow *.cpp -o SmallBrain_3.0
WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/g++-10: unsupported flags DT_FLAGS_1=0x8000000
WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/cc1plus: unsupported flags DT_FLAGS_1=0x8000000
WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/as: unsupported flags DT_FLAGS_1=0x8000000
WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/cc1plus: unsupported flags DT_FLAGS_1=0x8000000
board.cpp: In member function 'bool Board::isRepetition(int)':
board.cpp:271:30: warning: unused parameter 'draw' [-Wunused-parameter]
271 | bool Board::isRepetition(int draw) {
| ~~~~^~~~
board.cpp: In member function 'long long unsigned int Board::LegalKnightMoves(Color, Square)':
board.cpp:511:35: warning: unused parameter 'c' [-Wunused-parameter]
511 | U64 Board::LegalKnightMoves(Color c, Square sq) {
| ~~~~~~^
board.cpp: In member function 'long long unsigned int Board::LegalBishopMoves(Color, Square)':
board.cpp:516:35: warning: unused parameter 'c' [-Wunused-parameter]
516 | U64 Board::LegalBishopMoves(Color c, Square sq) {
| ~~~~~~^
board.cpp: In member function 'long long unsigned int Board::LegalRookMoves(Color, Square)':
board.cpp:522:33: warning: unused parameter 'c' [-Wunused-parameter]
522 | U64 Board::LegalRookMoves(Color c, Square sq) {
| ~~~~~~^
WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/as: unsupported flags DT_FLAGS_1=0x8000000
WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/cc1plus: unsupported flags DT_FLAGS_1=0x8000000
WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/as: unsupported flags DT_FLAGS_1=0x8000000
WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/cc1plus: unsupported flags DT_FLAGS_1=0x8000000
WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/as: unsupported flags DT_FLAGS_1=0x8000000
WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/cc1plus: unsupported flags DT_FLAGS_1=0x8000000
WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/as: unsupported flags DT_FLAGS_1=0x8000000
WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/cc1plus: unsupported flags DT_FLAGS_1=0x8000000
WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/as: unsupported flags DT_FLAGS_1=0x8000000
WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/cc1plus: unsupported flags DT_FLAGS_1=0x8000000
search.cpp: In member function 'int Search::absearch(int, int, int, int, bool)':
search.cpp:143:68: warning: unused parameter 'null' -Wunused-parameter]
143 | int Search::absearch(int depth, int alpha, int beta, int ply, bool null) {
| ~~~~~^~~~
WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/as: unsupported flags DT_FLAGS_1=0x8000000
WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/cc1plus: unsupported flags DT_FLAGS_1=0x8000000
WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/as: unsupported flags DT_FLAGS_1=0x8000000
WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/cc1plus: unsupported flags DT_FLAGS_1=0x8000000
timemanager.cpp: In function 'Time optimumTime(int64_t, int, int, int)':
timemanager.cpp:3:53: warning: unused parameter 'ply' [-Wunused-parameter]
3 | Time optimumTime(int64_t avaiableTime, int inc, int ply, int mtg) {
| ~~~~^~~
WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/as: unsupported flags DT_FLAGS_1=0x8000000
WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/cc1plus: unsupported flags DT_FLAGS_1=0x8000000
uci.cpp: In function 'int main(int, char**)':
uci.cpp:165:18: warning: declaration of 't' shadows a previous local [-Wshadow]
165 | Time t = optimumTime(timegiven, inc, searcher_class.board.fullMoveNumber, mtg);
| ^
uci.cpp:54:14: note: shadowed declaration is here
54 | Time t;
| ^
WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/as: unsupported flags DT_FLAGS_1=0x8000000
WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/cc1plus: unsupported flags DT_FLAGS_1=0x8000000
WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/as: unsupported flags DT_FLAGS_1=0x8000000
WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/collect2: unsupported flags DT_FLAGS_1=0x8000000
WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/ld: unsupported flags DT_FLAGS_1=0x8000000
WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/lto-wrapper: unsupported flags DT_FLAGS_1=0x8000000
WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/g++-10: unsupported flags DT_FLAGS_1=0x8000000
WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/lto1: unsupported flags DT_FLAGS_1=0x8000000
WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/g++-10: unsupported flags DT_FLAGS_1=0x8000000
WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/lto1: unsupported flags DT_FLAGS_1=0x8000000
WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/as: unsupported flags DT_FLAGS_1=0x8000000
/data/data/com.termux/files/usr/tmp/ccmkuoDW.s: Assembler messages:
/data/data/com.termux/files/usr/tmp/ccmkuoDW.s:10: Error: file not found: =/default.net
lto-wrapper: fatal error: g++ returned 1 exit status
compilation terminated.
/data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/../../../../aarch64-linux-android/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
Code: Select all
g++ -DEVALFILE=\"=/default.net\" -std=c++20 -DNDEBUG -O3 -march=native -DIS_64BIT -flto -Wall -Wfatal-errors -Wextra -Wshadow *.cpp -o SmallBrain_3.0
-
- Forum Contributions
- Points: 14 078,00
- Posts: 327
- Joined: 17/10/2020, 22:28
- Status: Offline (Active 6 Days, 14 Hours, 2 Minutes ago)
- Medals: 2
- Topics: 5
- Reputation: 506
- Has thanked: 349 times
- Been thanked: 671 times
Re: Compiling Smallbrain 3.0
Use this one:superbatil wrote: ↑16/06/2022, 10:00 How to find the solution?
Full info:Code: Select all
/data/data/com.termux/files/usr/tmp/ccmkuoDW.s:10: Error: file not found: =/default.net lto-wrapper: fatal error: g++ returned 1 exit status compilation terminated. /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/../../../../aarch64-linux-android/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status
Compiler:Code: Select all
g++ -DEVALFILE=\"=/default.net\" -std=c++20 -DNDEBUG -O3 -march=native -DIS_64BIT -flto -Wall -Wfatal-errors -Wextra -Wshadow *.cpp -o SmallBrain_3.0 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/g++-10: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/cc1plus: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/as: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/cc1plus: unsupported flags DT_FLAGS_1=0x8000000 board.cpp: In member function 'bool Board::isRepetition(int)': board.cpp:271:30: warning: unused parameter 'draw' [-Wunused-parameter] 271 | bool Board::isRepetition(int draw) { | ~~~~^~~~ board.cpp: In member function 'long long unsigned int Board::LegalKnightMoves(Color, Square)': board.cpp:511:35: warning: unused parameter 'c' [-Wunused-parameter] 511 | U64 Board::LegalKnightMoves(Color c, Square sq) { | ~~~~~~^ board.cpp: In member function 'long long unsigned int Board::LegalBishopMoves(Color, Square)': board.cpp:516:35: warning: unused parameter 'c' [-Wunused-parameter] 516 | U64 Board::LegalBishopMoves(Color c, Square sq) { | ~~~~~~^ board.cpp: In member function 'long long unsigned int Board::LegalRookMoves(Color, Square)': board.cpp:522:33: warning: unused parameter 'c' [-Wunused-parameter] 522 | U64 Board::LegalRookMoves(Color c, Square sq) { | ~~~~~~^ WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/as: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/cc1plus: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/as: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/cc1plus: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/as: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/cc1plus: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/as: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/cc1plus: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/as: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/cc1plus: unsupported flags DT_FLAGS_1=0x8000000 search.cpp: In member function 'int Search::absearch(int, int, int, int, bool)': search.cpp:143:68: warning: unused parameter 'null' -Wunused-parameter] 143 | int Search::absearch(int depth, int alpha, int beta, int ply, bool null) { | ~~~~~^~~~ WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/as: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/cc1plus: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/as: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/cc1plus: unsupported flags DT_FLAGS_1=0x8000000 timemanager.cpp: In function 'Time optimumTime(int64_t, int, int, int)': timemanager.cpp:3:53: warning: unused parameter 'ply' [-Wunused-parameter] 3 | Time optimumTime(int64_t avaiableTime, int inc, int ply, int mtg) { | ~~~~^~~ WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/as: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/cc1plus: unsupported flags DT_FLAGS_1=0x8000000 uci.cpp: In function 'int main(int, char**)': uci.cpp:165:18: warning: declaration of 't' shadows a previous local [-Wshadow] 165 | Time t = optimumTime(timegiven, inc, searcher_class.board.fullMoveNumber, mtg); | ^ uci.cpp:54:14: note: shadowed declaration is here 54 | Time t; | ^ WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/as: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/cc1plus: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/as: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/collect2: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/ld: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/lto-wrapper: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/g++-10: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/lto1: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/g++-10: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/lto1: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/as: unsupported flags DT_FLAGS_1=0x8000000 /data/data/com.termux/files/usr/tmp/ccmkuoDW.s: Assembler messages: /data/data/com.termux/files/usr/tmp/ccmkuoDW.s:10: Error: file not found: =/default.net lto-wrapper: fatal error: g++ returned 1 exit status compilation terminated. /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/../../../../aarch64-linux-android/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status
Code: Select all
g++ -DEVALFILE=\"=/default.net\" -std=c++20 -DNDEBUG -O3 -march=native -DIS_64BIT -flto -Wall -Wfatal-errors -Wextra -Wshadow *.cpp -o SmallBrain_3.0
Code: Select all
g++ -DEVALFILE=\"default.net\" -std=c++20 -DNDEBUG -O3 -march=native -DIS_64BIT -flto -Wall -Wfatal-errors -Wextra -Wshadow *.cpp -o SmallBrain_3.0
-
- Forum Contributions
- Points: 14 010,00
- Posts: 76
- Joined: 24/02/2022, 11:23
- Status: Offline (Active 2 Weeks, 16 Hours, 14 Minutes ago)
- Topics: 0
- Reputation: 17
- Has thanked: 1 time
- Been thanked: 51 times
Re: Compiling Smallbrain 3.0
LittleJoe wrote: ↑16/06/2022, 11:10Use this one:superbatil wrote: ↑16/06/2022, 10:00 How to find the solution?
Full info:Code: Select all
/data/data/com.termux/files/usr/tmp/ccmkuoDW.s:10: Error: file not found: =/default.net lto-wrapper: fatal error: g++ returned 1 exit status compilation terminated. /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/../../../../aarch64-linux-android/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status
Compiler:Code: Select all
g++ -DEVALFILE=\"=/default.net\" -std=c++20 -DNDEBUG -O3 -march=native -DIS_64BIT -flto -Wall -Wfatal-errors -Wextra -Wshadow *.cpp -o SmallBrain_3.0 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/g++-10: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/cc1plus: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/as: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/cc1plus: unsupported flags DT_FLAGS_1=0x8000000 board.cpp: In member function 'bool Board::isRepetition(int)': board.cpp:271:30: warning: unused parameter 'draw' [-Wunused-parameter] 271 | bool Board::isRepetition(int draw) { | ~~~~^~~~ board.cpp: In member function 'long long unsigned int Board::LegalKnightMoves(Color, Square)': board.cpp:511:35: warning: unused parameter 'c' [-Wunused-parameter] 511 | U64 Board::LegalKnightMoves(Color c, Square sq) { | ~~~~~~^ board.cpp: In member function 'long long unsigned int Board::LegalBishopMoves(Color, Square)': board.cpp:516:35: warning: unused parameter 'c' [-Wunused-parameter] 516 | U64 Board::LegalBishopMoves(Color c, Square sq) { | ~~~~~~^ board.cpp: In member function 'long long unsigned int Board::LegalRookMoves(Color, Square)': board.cpp:522:33: warning: unused parameter 'c' [-Wunused-parameter] 522 | U64 Board::LegalRookMoves(Color c, Square sq) { | ~~~~~~^ WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/as: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/cc1plus: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/as: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/cc1plus: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/as: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/cc1plus: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/as: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/cc1plus: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/as: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/cc1plus: unsupported flags DT_FLAGS_1=0x8000000 search.cpp: In member function 'int Search::absearch(int, int, int, int, bool)': search.cpp:143:68: warning: unused parameter 'null' -Wunused-parameter] 143 | int Search::absearch(int depth, int alpha, int beta, int ply, bool null) { | ~~~~~^~~~ WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/as: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/cc1plus: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/as: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/cc1plus: unsupported flags DT_FLAGS_1=0x8000000 timemanager.cpp: In function 'Time optimumTime(int64_t, int, int, int)': timemanager.cpp:3:53: warning: unused parameter 'ply' [-Wunused-parameter] 3 | Time optimumTime(int64_t avaiableTime, int inc, int ply, int mtg) { | ~~~~^~~ WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/as: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/cc1plus: unsupported flags DT_FLAGS_1=0x8000000 uci.cpp: In function 'int main(int, char**)': uci.cpp:165:18: warning: declaration of 't' shadows a previous local [-Wshadow] 165 | Time t = optimumTime(timegiven, inc, searcher_class.board.fullMoveNumber, mtg); | ^ uci.cpp:54:14: note: shadowed declaration is here 54 | Time t; | ^ WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/as: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/cc1plus: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/as: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/collect2: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/ld: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/lto-wrapper: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/g++-10: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/lto1: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/g++-10: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/lto1: unsupported flags DT_FLAGS_1=0x8000000 WARNING: linker: /data/data/com.termux/files/cctools-toolchain/bin/as: unsupported flags DT_FLAGS_1=0x8000000 /data/data/com.termux/files/usr/tmp/ccmkuoDW.s: Assembler messages: /data/data/com.termux/files/usr/tmp/ccmkuoDW.s:10: Error: file not found: =/default.net lto-wrapper: fatal error: g++ returned 1 exit status compilation terminated. /data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/../../../../aarch64-linux-android/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status
Code: Select all
g++ -DEVALFILE=\"=/default.net\" -std=c++20 -DNDEBUG -O3 -march=native -DIS_64BIT -flto -Wall -Wfatal-errors -Wextra -Wshadow *.cpp -o SmallBrain_3.0
Code: Select all
g++ -DEVALFILE=\"default.net\" -std=c++20 -DNDEBUG -O3 -march=native -DIS_64BIT -flto -Wall -Wfatal-errors -Wextra -Wshadow *.cpp -o SmallBrain_3.0
-
- Forum Contributions
- Points: 14 010,00
- Posts: 76
- Joined: 24/02/2022, 11:23
- Status: Offline (Active 2 Weeks, 16 Hours, 14 Minutes ago)
- Topics: 0
- Reputation: 17
- Has thanked: 1 time
- Been thanked: 51 times
Re: Compiling Fire-Zero on ndk termux
Full Format
Error
How to fix
Code: Select all
/data/data/com.termux/files/home/android-ndk-r24/ndk-build -B
fcntl(): Permission denied
WARNING: linker: /data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
WARNING: linker: /data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/python3/bin/python3.10: unsupported flags DT_FLAGS_1=0x8000001
CANNOT LINK EXECUTABLE "/data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-x86_64/python3/bin/python3": cannot locate symbol "getrandom" referenced by "/data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/python3/bin/python3.10"...
[arm64-v8a] Compile++ : Fire-Zero <= bitboard.cpp
WARNING: linker: /data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
/data/data/com.termux/files/home/fire-zero/jni/../bitboard.cpp:170:70: warning: '&&' within '||' [-Wlogical-op-parentheses]
(dx == 0 || (f >= f_min && f <= f_max)) && (dy == 0 || r >= r_min && r <= r_max);
~~ ~~~~~~~~~~~^~~~~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../bitboard.cpp:170:70: note: place parentheses around the '&&' expression to silence this warning
(dx == 0 || (f >= f_min && f <= f_max)) && (dy == 0 || r >= r_min && r <= r_max);
^
( )
1 warning generated.
[arm64-v8a] Compile++ : Fire-Zero <= chrono.cpp
WARNING: linker: /data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
In file included from /data/data/com.termux/files/home/fire-zero/jni/../chrono.cpp:19:
In file included from /data/data/com.termux/files/home/fire-zero/jni/../uci.h:18:
/data/data/com.termux/files/home/fire-zero/jni/../position.h:424:40: warning: '&&' within '||' [-Wlogical-op-parentheses]
return !empty_square(to_square(move)) && move_type(move) != castle_move || move_type(move) == enpassant;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~
/data/data/com.termux/files/home/fire-zero/jni/../position.h:424:40: note: place parentheses around the '&&' expression to silence this warning
return !empty_square(to_square(move)) && move_type(move) != castle_move || move_type(move) == enpassant;
^
( )
1 warning generated.
[arm64-v8a] Compile++ : Fire-Zero <= endgame.cpp
WARNING: linker: /data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
In file included from /data/data/com.termux/files/home/fire-zero/jni/../endgame.cpp:18:
In file included from /data/data/com.termux/files/home/fire-zero/jni/../endgame.h:21:
/data/data/com.termux/files/home/fire-zero/jni/../position.h:424:40: warning: '&&' within '||' [-Wlogical-op-parentheses]
return !empty_square(to_square(move)) && move_type(move) != castle_move || move_type(move) == enpassant;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~
/data/data/com.termux/files/home/fire-zero/jni/../position.h:424:40: note: place parentheses around the '&&' expression to silence this warning
return !empty_square(to_square(move)) && move_type(move) != castle_move || move_type(move) == enpassant;
^
( )
1 warning generated.
[arm64-v8a] Compile++ : Fire-Zero <= evaluate.cpp
WARNING: linker: /data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
In file included from /data/data/com.termux/files/home/fire-zero/jni/../evaluate.cpp:17:
In file included from /data/data/com.termux/files/home/fire-zero/jni/../evaluate.h:19:
/data/data/com.termux/files/home/fire-zero/jni/../position.h:424:40: warning: '&&' within '||' [-Wlogical-op-parentheses]
return !empty_square(to_square(move)) && move_type(move) != castle_move || move_type(move) == enpassant;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~
/data/data/com.termux/files/home/fire-zero/jni/../position.h:424:40: note: place parentheses around the '&&' expression to silence this warning
return !empty_square(to_square(move)) && move_type(move) != castle_move || move_type(move) == enpassant;
^
( )
1 warning generated.
[arm64-v8a] Compile++ : Fire-Zero <= hash.cpp
WARNING: linker: /data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
[arm64-v8a] Compile++ : Fire-Zero <= main.cpp
WARNING: linker: /data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
In file included from /data/data/com.termux/files/home/fire-zero/jni/../main.cpp:17:
In file included from /data/data/com.termux/files/home/fire-zero/jni/../util/util.h:24:
/data/data/com.termux/files/home/fire-zero/jni/../util/../position.h:424:40: warning: '&&' within '||' [-Wlogical-op-parentheses]
return !empty_square(to_square(move)) && move_type(move) != castle_move || move_type(move) == enpassant;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~
/data/data/com.termux/files/home/fire-zero/jni/../util/../position.h:424:40: note: place parentheses around the '&&' expression to silence this warning
return !empty_square(to_square(move)) && move_type(move) != castle_move || move_type(move) == enpassant;
^
( )
1 warning generated.
[arm64-v8a] Compile++ : Fire-Zero <= material.cpp
WARNING: linker: /data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
In file included from /data/data/com.termux/files/home/fire-zero/jni/../material.cpp:17:
In file included from /data/data/com.termux/files/home/fire-zero/jni/../material.h:19:
In file included from /data/data/com.termux/files/home/fire-zero/jni/../endgame.h:21:
/data/data/com.termux/files/home/fire-zero/jni/../position.h:424:40: warning: '&&' within '||' [-Wlogical-op-parentheses]
return !empty_square(to_square(move)) && move_type(move) != castle_move || move_type(move) == enpassant;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~
/data/data/com.termux/files/home/fire-zero/jni/../position.h:424:40: note: place parentheses around the '&&' expression to silence this warning
return !empty_square(to_square(move)) && move_type(move) != castle_move || move_type(move) == enpassant;
^
( )
1 warning generated.
[arm64-v8a] Compile++ : Fire-Zero <= movegen.cpp
WARNING: linker: /data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
In file included from /data/data/com.termux/files/home/fire-zero/jni/../movegen.cpp:20:
In file included from /data/data/com.termux/files/home/fire-zero/jni/../pawn.h:20:
/data/data/com.termux/files/home/fire-zero/jni/../position.h:424:40: warning: '&&' within '||' [-Wlogical-op-parentheses]
return !empty_square(to_square(move)) && move_type(move) != castle_move || move_type(move) == enpassant;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~
/data/data/com.termux/files/home/fire-zero/jni/../position.h:424:40: note: place parentheses around the '&&' expression to silence this warning
return !empty_square(to_square(move)) && move_type(move) != castle_move || move_type(move) == enpassant;
^
( )
1 warning generated.
[arm64-v8a] Compile++ : Fire-Zero <= movepick.cpp
WARNING: linker: /data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
In file included from /data/data/com.termux/files/home/fire-zero/jni/../movepick.cpp:17:
In file included from /data/data/com.termux/files/home/fire-zero/jni/../movepick.h:24:
/data/data/com.termux/files/home/fire-zero/jni/../position.h:424:40: warning: '&&' within '||' [-Wlogical-op-parentheses]
return !empty_square(to_square(move)) && move_type(move) != castle_move || move_type(move) == enpassant;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~
/data/data/com.termux/files/home/fire-zero/jni/../position.h:424:40: note: place parentheses around the '&&' expression to silence this warning
return !empty_square(to_square(move)) && move_type(move) != castle_move || move_type(move) == enpassant;
^
( )
1 warning generated.
[arm64-v8a] Compile++ : Fire-Zero <= pawn.cpp
WARNING: linker: /data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
In file included from /data/data/com.termux/files/home/fire-zero/jni/../pawn.cpp:17:
In file included from /data/data/com.termux/files/home/fire-zero/jni/../pawn.h:20:
/data/data/com.termux/files/home/fire-zero/jni/../position.h:424:40: warning: '&&' within '||' [-Wlogical-op-parentheses]
return !empty_square(to_square(move)) && move_type(move) != castle_move || move_type(move) == enpassant;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~
/data/data/com.termux/files/home/fire-zero/jni/../position.h:424:40: note: place parentheses around the '&&' expression to silence this warning
return !empty_square(to_square(move)) && move_type(move) != castle_move || move_type(move) == enpassant;
^
( )
1 warning generated.
[arm64-v8a] Compile++ : Fire-Zero <= position.cpp
WARNING: linker: /data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
In file included from /data/data/com.termux/files/home/fire-zero/jni/../position.cpp:17:
/data/data/com.termux/files/home/fire-zero/jni/../position.h:424:40: warning: '&&' within '||' [-Wlogical-op-parentheses]
return !empty_square(to_square(move)) && move_type(move) != castle_move || move_type(move) == enpassant;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~
/data/data/com.termux/files/home/fire-zero/jni/../position.h:424:40: note: place parentheses around the '&&' expression to silence this warning
return !empty_square(to_square(move)) && move_type(move) != castle_move || move_type(move) == enpassant;
^
( )
1 warning generated.
[arm64-v8a] Compile++ : Fire-Zero <= pst.cpp
WARNING: linker: /data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
In file included from /data/data/com.termux/files/home/fire-zero/jni/../pst.cpp:18:
/data/data/com.termux/files/home/fire-zero/jni/../position.h:424:40: warning: '&&' within '||' [-Wlogical-op-parentheses]
return !empty_square(to_square(move)) && move_type(move) != castle_move || move_type(move) == enpassant;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~
/data/data/com.termux/files/home/fire-zero/jni/../position.h:424:40: note: place parentheses around the '&&' expression to silence this warning
return !empty_square(to_square(move)) && move_type(move) != castle_move || move_type(move) == enpassant;
^
( )
1 warning generated.
[arm64-v8a] Compile++ : Fire-Zero <= search.cpp
WARNING: linker: /data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
In file included from /data/data/com.termux/files/home/fire-zero/jni/../search.cpp:17:
In file included from /data/data/com.termux/files/home/fire-zero/jni/../search.h:23:
In file included from /data/data/com.termux/files/home/fire-zero/jni/../movepick.h:24:
/data/data/com.termux/files/home/fire-zero/jni/../position.h:424:40: warning: '&&' within '||' [-Wlogical-op-parentheses]
return !empty_square(to_square(move)) && move_type(move) != castle_move || move_type(move) == enpassant;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~
/data/data/com.termux/files/home/fire-zero/jni/../position.h:424:40: note: place parentheses around the '&&' expression to silence this warning
return !empty_square(to_square(move)) && move_type(move) != castle_move || move_type(move) == enpassant;
^
( )
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:491:15: warning: '&&' within '||' [-Wlogical-op-parentheses]
&& (cmh && fmh || !fmh2 || fmh2->value_at_offset(offset) < sort_cmp))
~~~~^~~~~~ ~~
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:491:15: note: place parentheses around the '&&' expression to silence this warning
&& (cmh && fmh || !fmh2 || fmh2->value_at_offset(offset) < sort_cmp))
^
( )
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:764:16: warning: '&&' within '||' [-Wlogical-op-parentheses]
if (wq == 1 && b_pawn == 1
~~~~~~~~^~~~~~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:764:16: note: place parentheses around the '&&' expression to silence this warning
if (wq == 1 && b_pawn == 1
^
( )
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:765:16: warning: '&&' within '||' [-Wlogical-op-parentheses]
|| bq == 1 && w_pawn == 1
~~ ~~~~~~~~^~~~~~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:765:16: note: place parentheses around the '&&' expression to silence this warning
|| bq == 1 && w_pawn == 1
^
( )
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:766:16: warning: '&&' within '||' [-Wlogical-op-parentheses]
|| wr == 1 && b_pawn == 1
~~ ~~~~~~~~^~~~~~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:766:16: note: place parentheses around the '&&' expression to silence this warning
|| wr == 1 && b_pawn == 1
^
( )
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:767:16: warning: '&&' within '||' [-Wlogical-op-parentheses]
|| br == 1 && w_pawn == 1
~~ ~~~~~~~~^~~~~~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:767:16: note: place parentheses around the '&&' expression to silence this warning
|| br == 1 && w_pawn == 1
^
( )
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:768:16: warning: '&&' within '||' [-Wlogical-op-parentheses]
|| wq == 1 && br == 1
~~ ~~~~~~~~^~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:768:16: note: place parentheses around the '&&' expression to silence this warning
|| wq == 1 && br == 1
^
( )
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:769:16: warning: '&&' within '||' [-Wlogical-op-parentheses]
|| bq == 1 && wr == 1
~~ ~~~~~~~~^~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:769:16: note: place parentheses around the '&&' expression to silence this warning
|| bq == 1 && wr == 1
^
( )
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:770:20: warning: '&&' within '||' [-Wlogical-op-parentheses]
|| w_pawn == 1 && b_pawn == 1)
~~ ~~~~~~~~~~~~^~~~~~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:770:20: note: place parentheses around the '&&' expression to silence this warning
|| w_pawn == 1 && b_pawn == 1)
^
( )
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:775:27: warning: '&&' within '||' [-Wlogical-op-parentheses]
if (wq == 1 && bq == 1 && w_pawn + b_pawn == 1
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:775:27: note: place parentheses around the '&&' expression to silence this warning
if (wq == 1 && bq == 1 && w_pawn + b_pawn == 1
^
( )
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:776:27: warning: '&&' within '||' [-Wlogical-op-parentheses]
|| wr == 1 && br == 1 && w_pawn + b_pawn == 1
~~ ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:776:27: note: place parentheses around the '&&' expression to silence this warning
|| wr == 1 && br == 1 && w_pawn + b_pawn == 1
^
( )
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:777:37: warning: '&&' within '||' [-Wlogical-op-parentheses]
|| wb + wp == 1 && bb + bp == 1 && w_pawn + b_pawn == 1
~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:777:37: note: place parentheses around the '&&' expression to silence this warning
|| wb + wp == 1 && bb + bp == 1 && w_pawn + b_pawn == 1
^
( )
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:778:16: warning: '&&' within '||' [-Wlogical-op-parentheses]
|| wp == 2 && b_pawn == 1
~~ ~~~~~~~~^~~~~~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:778:16: note: place parentheses around the '&&' expression to silence this warning
|| wp == 2 && b_pawn == 1
^
( )
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:779:16: warning: '&&' within '||' [-Wlogical-op-parentheses]
|| bp == 2 && w_pawn == 1
~~ ~~~~~~~~^~~~~~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:779:16: note: place parentheses around the '&&' expression to silence this warning
|| bp == 2 && w_pawn == 1
^
( )
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:780:27: warning: '&&' within '||' [-Wlogical-op-parentheses]
|| wq == 1 && br == 1 && b_pawn == 1
~~ ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:780:27: note: place parentheses around the '&&' expression to silence this warning
|| wq == 1 && br == 1 && b_pawn == 1
^
( )
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:781:27: warning: '&&' within '||' [-Wlogical-op-parentheses]
|| bq == 1 && wr == 1 && w_pawn == 1
~~ ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:781:27: note: place parentheses around the '&&' expression to silence this warning
|| bq == 1 && wr == 1 && w_pawn == 1
^
( )
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:782:20: warning: '&&' within '||' [-Wlogical-op-parentheses]
|| w_pawn == 2 && b_pawn == 1
~~ ~~~~~~~~~~~~^~~~~~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:782:20: note: place parentheses around the '&&' expression to silence this warning
|| w_pawn == 2 && b_pawn == 1
^
( )
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:783:20: warning: '&&' within '||' [-Wlogical-op-parentheses]
|| w_pawn == 1 && b_pawn == 2
~~ ~~~~~~~~~~~~^~~~~~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:783:20: note: place parentheses around the '&&' expression to silence this warning
|| w_pawn == 1 && b_pawn == 2
^
( )
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:784:46: warning: '&&' within '||' [-Wlogical-op-parentheses]
|| wb + wp + bb + bp == 1 && w_pawn == 1 && b_pawn == 1)
~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:784:46: note: place parentheses around the '&&' expression to silence this warning
|| wb + wp + bb + bp == 1 && w_pawn == 1 && b_pawn == 1)
^
( )
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:789:27: warning: '&&' within '||' [-Wlogical-op-parentheses]
if (wq == 1 && bq == 1 && w_pawn + b_pawn == 2
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:789:27: note: place parentheses around the '&&' expression to silence this warning
if (wq == 1 && bq == 1 && w_pawn + b_pawn == 2
^
( )
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:790:27: warning: '&&' within '||' [-Wlogical-op-parentheses]
|| wr == 1 && br == 1 && w_pawn + b_pawn == 2
~~ ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:790:27: note: place parentheses around the '&&' expression to silence this warning
|| wr == 1 && br == 1 && w_pawn + b_pawn == 2
^
( )
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:791:37: warning: '&&' within '||' [-Wlogical-op-parentheses]
|| wb + wp == 1 && bb + bp == 1 && w_pawn + b_pawn == 2
~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:791:37: note: place parentheses around the '&&' expression to silence this warning
|| wb + wp == 1 && bb + bp == 1 && w_pawn + b_pawn == 2
^
( )
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:792:17: warning: '&&' within '||' [-Wlogical-op-parentheses]
|| (wr == 1 && bb + bp == 1
~~~~~~~~^~~~~~~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:792:17: note: place parentheses around the '&&' expression to silence this warning
|| (wr == 1 && bb + bp == 1
^
( )
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:793:21: warning: '&&' within '||' [-Wlogical-op-parentheses]
|| wb + wp == 1 && br == 1) && w_pawn == 1 && b_pawn == 1
~~ ~~~~~~~~~~~~~^~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:793:21: note: place parentheses around the '&&' expression to silence this warning
|| wb + wp == 1 && br == 1) && w_pawn == 1 && b_pawn == 1
^
( )
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:793:48: warning: '&&' within '||' [-Wlogical-op-parentheses]
|| wb + wp == 1 && br == 1) && w_pawn == 1 && b_pawn == 1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:793:48: note: place parentheses around the '&&' expression to silence this warning
|| wb + wp == 1 && br == 1) && w_pawn == 1 && b_pawn == 1
^
)
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:794:27: warning: '&&' within '||' [-Wlogical-op-parentheses]
|| wq == 1 && br == 1 && b_pawn == 2
~~ ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:794:27: note: place parentheses around the '&&' expression to silence this warning
|| wq == 1 && br == 1 && b_pawn == 2
^
( )
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:795:27: warning: '&&' within '||' [-Wlogical-op-parentheses]
|| bq == 1 && wr == 1 && w_pawn == 2
~~ ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:795:27: note: place parentheses around the '&&' expression to silence this warning
|| bq == 1 && wr == 1 && w_pawn == 2
^
( )
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:796:20: warning: '&&' within '||' [-Wlogical-op-parentheses]
|| w_pawn == 2 && b_pawn == 2
~~ ~~~~~~~~~~~~^~~~~~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:796:20: note: place parentheses around the '&&' expression to silence this warning
|| w_pawn == 2 && b_pawn == 2
^
( )
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:797:38: warning: '&&' within '||' [-Wlogical-op-parentheses]
|| wq == 1 && bb == 1 && bp == 1 && b_pawn == 1
~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:797:38: note: place parentheses around the '&&' expression to silence this warning
|| wq == 1 && bb == 1 && bp == 1 && b_pawn == 1
^
( )
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:798:38: warning: '&&' within '||' [-Wlogical-op-parentheses]
|| bq == 1 && wb == 1 && wp == 1 && w_pawn == 1
~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:798:38: note: place parentheses around the '&&' expression to silence this warning
|| bq == 1 && wb == 1 && wp == 1 && w_pawn == 1
^
( )
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:867:18: warning: unused variable 'lazy_margin_q_search_high' [-Wunused-variable]
constexpr auto lazy_margin_q_search_high = static_cast<int>(lazy_margin);
^
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:866:18: warning: unused variable 'lazy_margin_q_search_low' [-Wunused-variable]
constexpr auto lazy_margin_q_search_low = static_cast<int>(lazy_margin) + score_1;
^
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:1137:36: warning: '&&' within '||' [-Wlogical-op-parentheses]
if (param.use_time_calculating() && elapsed > time_control.maximum() - 10
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:1137:36: note: place parentheses around the '&&' expression to silence this warning
if (param.use_time_calculating() && elapsed > time_control.maximum() - 10
^
( )
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:1138:23: warning: '&&' within '||' [-Wlogical-op-parentheses]
|| param.move_time && elapsed >= param.move_time
~~ ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:1138:23: note: place parentheses around the '&&' expression to silence this warning
|| param.move_time && elapsed >= param.move_time
^
( )
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:1139:19: warning: '&&' within '||' [-Wlogical-op-parentheses]
|| param.nodes && thread_pool.visited_nodes() >= param.nodes)
~~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:1139:19: note: place parentheses around the '&&' expression to silence this warning
|| param.nodes && thread_pool.visited_nodes() >= param.nodes)
^
( )
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:1728:99: warning: '&&' within '||' [-Wlogical-op-parentheses]
&& time_control.elapsed() > time_control.optimum() * 124 / 1024; root_moves.move_number == 1 && search_iteration > 10
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../search.cpp:1728:99: note: place parentheses around the '&&' expression to silence this warning
&& time_control.elapsed() > time_control.optimum() * 124 / 1024; root_moves.move_number == 1 && search_iteration > 10
^
( )
36 warnings generated.
[arm64-v8a] Compile++ : Fire-Zero <= sfactor.cpp
WARNING: linker: /data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
In file included from /data/data/com.termux/files/home/fire-zero/jni/../sfactor.cpp:19:
In file included from /data/data/com.termux/files/home/fire-zero/jni/../endgame.h:21:
/data/data/com.termux/files/home/fire-zero/jni/../position.h:424:40: warning: '&&' within '||' [-Wlogical-op-parentheses]
return !empty_square(to_square(move)) && move_type(move) != castle_move || move_type(move) == enpassant;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~
/data/data/com.termux/files/home/fire-zero/jni/../position.h:424:40: note: place parentheses around the '&&' expression to silence this warning
return !empty_square(to_square(move)) && move_type(move) != castle_move || move_type(move) == enpassant;
^
( )
/data/data/com.termux/files/home/fire-zero/jni/../sfactor.cpp:273:3: warning: '&&' within '||' [-Wlogical-op-parentheses]
&& !(pos.on_move() == Strong) ^ !(~dark_squares & knight)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../sfactor.cpp:273:3: note: place parentheses around the '&&' expression to silence this warning
&& !(pos.on_move() == Strong) ^ !(~dark_squares & knight)
^
)
/data/data/com.termux/files/home/fire-zero/jni/../sfactor.cpp:274:23: warning: '&&' within '||' [-Wlogical-op-parentheses]
|| black_king == c8 && !(pos.on_move() == Strong) ^ !(dark_squares & knight)))
~~ ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../sfactor.cpp:274:23: note: place parentheses around the '&&' expression to silence this warning
|| black_king == c8 && !(pos.on_move() == Strong) ^ !(dark_squares & knight)))
^
( )
/data/data/com.termux/files/home/fire-zero/jni/../sfactor.cpp:354:5: warning: '&&' within '||' [-Wlogical-op-parentheses]
&& file_of(black_king) < file_of(pawn)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../sfactor.cpp:354:5: note: place parentheses around the '&&' expression to silence this warning
&& file_of(black_king) < file_of(pawn)
^
)
/data/data/com.termux/files/home/fire-zero/jni/../sfactor.cpp:356:5: warning: '&&' within '||' [-Wlogical-op-parentheses]
&& file_of(black_king) > file_of(pawn))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../sfactor.cpp:356:5: note: place parentheses around the '&&' expression to silence this warning
&& file_of(black_king) > file_of(pawn))
^
)
/data/data/com.termux/files/home/fire-zero/jni/../sfactor.cpp:360:5: warning: '&&' within '||' [-Wlogical-op-parentheses]
&& file_of(black_king) < file_of(pawn)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../sfactor.cpp:360:5: note: place parentheses around the '&&' expression to silence this warning
&& file_of(black_king) < file_of(pawn)
^
)
/data/data/com.termux/files/home/fire-zero/jni/../sfactor.cpp:362:5: warning: '&&' within '||' [-Wlogical-op-parentheses]
&& file_of(black_king) > file_of(pawn))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../sfactor.cpp:362:5: note: place parentheses around the '&&' expression to silence this warning
&& file_of(black_king) > file_of(pawn))
^
)
/data/data/com.termux/files/home/fire-zero/jni/../sfactor.cpp:525:3: warning: '&&' within '||' [-Wlogical-op-parentheses]
&& (square_distance[black_king][pawn] <= 1 + tempo) || (pawn == c2
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~
/data/data/com.termux/files/home/fire-zero/jni/../sfactor.cpp:525:3: note: place parentheses around the '&&' expression to silence this warning
&& (square_distance[black_king][pawn] <= 1 + tempo) || (pawn == c2
^
)
/data/data/com.termux/files/home/fire-zero/jni/../sfactor.cpp:555:5: warning: '&&' within '||' [-Wlogical-op-parentheses]
&& (square_distance[a1][black_king] == 1)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../sfactor.cpp:555:5: note: place parentheses around the '&&' expression to silence this warning
&& (square_distance[a1][black_king] == 1)
^
)
/data/data/com.termux/files/home/fire-zero/jni/../sfactor.cpp:561:5: warning: '&&' within '||' [-Wlogical-op-parentheses]
&& (square_distance[c1][black_king] == 1)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/data/com.termux/files/home/fire-zero/jni/../sfactor.cpp:561:5: note: place parentheses around the '&&' expression to silence this warning
&& (square_distance[c1][black_king] == 1)
^
)
10 warnings generated.
[arm64-v8a] Compile++ : Fire-Zero <= thread.cpp
WARNING: linker: /data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
In file included from /data/data/com.termux/files/home/fire-zero/jni/../thread.cpp:17:
In file included from /data/data/com.termux/files/home/fire-zero/jni/../thread.h:26:
In file included from /data/data/com.termux/files/home/fire-zero/jni/../endgame.h:21:
/data/data/com.termux/files/home/fire-zero/jni/../position.h:424:40: warning: '&&' within '||' [-Wlogical-op-parentheses]
return !empty_square(to_square(move)) && move_type(move) != castle_move || move_type(move) == enpassant;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~
/data/data/com.termux/files/home/fire-zero/jni/../position.h:424:40: note: place parentheses around the '&&' expression to silence this warning
return !empty_square(to_square(move)) && move_type(move) != castle_move || move_type(move) == enpassant;
^
( )
1 warning generated.
[arm64-v8a] Compile++ : Fire-Zero <= uci.cpp
WARNING: linker: /data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
In file included from /data/data/com.termux/files/home/fire-zero/jni/../uci.cpp:26:
In file included from /data/data/com.termux/files/home/fire-zero/jni/../random/random.h:18:
/data/data/com.termux/files/home/fire-zero/jni/../random/../position.h:424:40: warning: '&&' within '||' [-Wlogical-op-parentheses]
return !empty_square(to_square(move)) && move_type(move) != castle_move || move_type(move) == enpassant;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~
/data/data/com.termux/files/home/fire-zero/jni/../random/../position.h:424:40: note: place parentheses around the '&&' expression to silence this warning
return !empty_square(to_square(move)) && move_type(move) != castle_move || move_type(move) == enpassant;
^
( )
1 warning generated.
[arm64-v8a] Compile++ : Fire-Zero <= zobrist.cpp
WARNING: linker: /data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
In file included from /data/data/com.termux/files/home/fire-zero/jni/../zobrist.cpp:17:
In file included from /data/data/com.termux/files/home/fire-zero/jni/../zobrist.h:21:
/data/data/com.termux/files/home/fire-zero/jni/../position.h:424:40: warning: '&&' within '||' [-Wlogical-op-parentheses]
return !empty_square(to_square(move)) && move_type(move) != castle_move || move_type(move) == enpassant;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~
/data/data/com.termux/files/home/fire-zero/jni/../position.h:424:40: note: place parentheses around the '&&' expression to silence this warning
return !empty_square(to_square(move)) && move_type(move) != castle_move || move_type(move) == enpassant;
^
( )
1 warning generated.
[arm64-v8a] Compile++ : Fire-Zero <= kpk.cpp
WARNING: linker: /data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
[arm64-v8a] Compile++ : Fire-Zero <= egtb.cpp
WARNING: linker: /data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
In file included from /data/data/com.termux/files/home/fire-zero/jni/../egtb/egtb.cpp:17:
In file included from /data/data/com.termux/files/home/fire-zero/jni/../egtb/tbprobe.h:2:
/data/data/com.termux/files/home/fire-zero/jni/../egtb/../position.h:424:40: warning: '&&' within '||' [-Wlogical-op-parentheses]
return !empty_square(to_square(move)) && move_type(move) != castle_move || move_type(move) == enpassant;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~
/data/data/com.termux/files/home/fire-zero/jni/../egtb/../position.h:424:40: note: place parentheses around the '&&' expression to silence this warning
return !empty_square(to_square(move)) && move_type(move) != castle_move || move_type(move) == enpassant;
^
( )
1 warning generated.
[arm64-v8a] Compile++ : Fire-Zero <= tbprobe.cpp
WARNING: linker: /data/data/com.termux/files/home/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
In file included from /data/data/com.termux/files/home/fire-zero/jni/../egtb/tbprobe.cpp:14:
/data/data/com.termux/files/home/fire-zero/jni/../egtb/../position.h:424:40: warning: '&&' within '||' [-Wlogical-op-parentheses]
return !empty_square(to_square(move)) && move_type(move) != castle_move || move_type(move) == enpassant;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~
/data/data/com.termux/files/home/fire-zero/jni/../egtb/../position.h:424:40: note: place parentheses around the '&&' expression to silence this warning
return !empty_square(to_square(move)) && move_type(move) != castle_move || move_type(move) == enpassant;
^
( )
/data/data/com.termux/files/home/fire-zero/jni/../egtb/tbprobe.cpp:113:14: fatal error: variable has incomplete type 'struct stat'
struct stat statbuf {};
^
/data/data/com.termux/files/home/fire-zero/jni/../egtb/tbprobe.cpp:113:9: note: forward declaration of 'stat'
struct stat statbuf {};
^
1 warning and 1 error generated.
make: *** [/data/data/com.termux/files/home/android-ndk-r24/build/core/build-binary.mk:424: /data/data/com.termux/files/home/fire-zero/obj/local/arm64-v8a/objs/Fire-Zero/__/egtb/tbprobe.o] Error 1
Code: Select all
/data/data/com.termux/files/home/fire-zero/jni/../egtb/tbprobe.cpp:113:14: fatal error: variable has incomplete type 'struct stat'
struct stat statbuf {};
^
/data/data/com.termux/files/home/fire-zero/jni/../egtb/tbprobe.cpp:113:9: note: forward declaration of 'stat'
struct stat statbuf {};
^
1 warning and 1 error generated.
make: *** [/data/data/com.termux/files/home/android-ndk-r24/build/core/build-binary.mk:424: /data/data/com.termux/files/home/fire-zero/obj/local/arm64-v8a/objs/Fire-Zero/__/egtb/tbprobe.o] Error 1
-
- Forum Contributions
- Points: 42 582,00
- Posts: 2059
- Joined: 04/11/2019, 21:13
- Status: Online (Active 2 Hours, 58 Minutes ago)
- Medals: 2
- Topics: 158
- Reputation: 7111
- Been thanked: 6477 times
Re: Compiling for Android
Take a look at the changed source files which are included in the last zip archive for Fire-Zero.
-
- Forum Contributions
- Points: 14 010,00
- Posts: 76
- Joined: 24/02/2022, 11:23
- Status: Offline (Active 2 Weeks, 16 Hours, 14 Minutes ago)
- Topics: 0
- Reputation: 17
- Has thanked: 1 time
- Been thanked: 51 times
-
- Forum Contributions
- Points: 14 010,00
- Posts: 76
- Joined: 24/02/2022, 11:23
- Status: Offline (Active 2 Weeks, 16 Hours, 14 Minutes ago)
- Topics: 0
- Reputation: 17
- Has thanked: 1 time
- Been thanked: 51 times
Re: Compiling for Android Arasan chess engine
How to fix this issue, Sir Archimedez
This is full info
Code: Select all
1 warning generated.
[arm64-v8a] Compile++ : Arasan <= bitbase.cpp
WARNING: linker: /data/data/com.termux/files/home/opt/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
/data/data/com.termux/files/home/arasan-chess/jni/../src/bitbase.cpp:1:7: fatal error: unknown type name 'CACHE_ALIGN'
const CACHE_ALIGN uint8_t globals::baseKPKW[24576] = {
^
1 error generated.
make: *** [/data/data/com.termux/files/home/opt/android-ndk-r24/build/core/build-binary.mk:424: /data/data/com.termux/files/home/arasan-chess/obj/local/arm64-v8a/objs/Arasan/__/src/bitbase.o] Error 1
This is full info
Code: Select all
/data/data/com.termux/files/home/opt/android-ndk-r24/ndk-build -B
fcntl(): Permission denied WARNING: linker: /data/data/com.termux/files/home/opt/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001 WARNING: linker: /data/data/com.termux/files/home/opt/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/python3/bin/python3.10: unsupported flags DT_FLAGS_1=0x8000001
CANNOT LINK EXECUTABLE "/data/data/com.termux/files/home/opt/android-ndk-r24/toolchains/llvm/prebuilt/linux-x86_64/python3/bin/python3": cannot locate symbol "getrandom" referenced by "/data/data/com.termux/files/home/opt/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/python3/bin/python3.10"... [arm64-v8a] Compile++ : Arasan <= arasanx.cpp
WARNING: linker: /data/data/com.termux/files/home/opt/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
In file included from /data/data/com.termux/files/home/arasan-chess/jni/../src/arasanx.cpp:7:
In file included from /data/data/com.termux/files/home/arasan-chess/jni/../src/globals.h:10:
In file included from /data/data/com.termux/files/home/arasan-chess/jni/../src/log.h:7:
/data/data/com.termux/files/home/arasan-chess/jni/../src/board.h:228:38: warning: declaration shadows a field of 'Board' [-Wshadow]
Bitboard allPawnAttacks(ColorType side) const {
^
/data/data/com.termux/files/home/arasan-chess/jni/../src/board.h:413:14: note: previous declaration is here
ColorType side; // side to move
^
In file included from /data/data/com.termux/files/home/arasan-chess/jni/../src/arasanx.cpp:9:
In file included from /data/data/com.termux/files/home/arasan-chess/jni/../src/protocol.h:11:
/data/data/com.termux/files/home/arasan-chess/jni/../src/search.h:319:35: warning: declaration shadows a field of 'Search' [-Wshadow]
bool maxDepth(const NodeInfo *node) const noexcept {
^
/data/data/com.termux/files/home/arasan-chess/jni/../src/search.h:330:15: note: previous declaration is here
NodeInfo *node; // pointer into node stack (external to class)
^
/data/data/com.termux/files/home/arasan-chess/jni/../src/search.h:489:61: warning: declaration shadows a field of 'SearchController' [-Wshadow]
score_t drawScore(const Board &board, const Statistics *stats = nullptr) {
^
/data/data/com.termux/files/home/arasan-chess/jni/../src/search.h:610:17: note: previous declaration is here
Statistics *stats;
^
In file included from /data/data/com.termux/files/home/arasan-chess/jni/../src/arasanx.cpp:9:
/data/data/com.termux/files/home/arasan-chess/jni/../src/protocol.h:49:38: warning: declaration shadows a field of 'Protocol' [-Wshadow]
std::unique_lock<std::mutex> inputMtx;
^
/data/data/com.termux/files/home/arasan-chess/jni/../src/protocol.h:252:16: note: previous declaration is here
std::mutex inputMtx;
^
4 warnings generated.
[arm64-v8a] Compile++ : Arasan <= attacks.cpp
WARNING: linker: /data/data/com.termux/files/home/opt/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
[arm64-v8a] Compile++ : Arasan <= bench.cpp
WARNING: linker: /data/data/com.termux/files/home/opt/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
In file included from /data/data/com.termux/files/home/arasan-chess/jni/../src/bench.cpp:3:
In file included from /data/data/com.termux/files/home/arasan-chess/jni/../src/globals.h:10:
In file included from /data/data/com.termux/files/home/arasan-chess/jni/../src/log.h:7:
/data/data/com.termux/files/home/arasan-chess/jni/../src/board.h:228:38: warning: declaration shadows a field of 'Board' [-Wshadow]
Bitboard allPawnAttacks(ColorType side) const {
^
/data/data/com.termux/files/home/arasan-chess/jni/../src/board.h:413:14: note: previous declaration is here
ColorType side; // side to move
^
In file included from /data/data/com.termux/files/home/arasan-chess/jni/../src/bench.cpp:5:
/data/data/com.termux/files/home/arasan-chess/jni/../src/search.h:319:35: warning: declaration shadows a field of 'Search' [-Wshadow]
bool maxDepth(const NodeInfo *node) const noexcept {
^
/data/data/com.termux/files/home/arasan-chess/jni/../src/search.h:330:15: note: previous declaration is here
NodeInfo *node; // pointer into node stack (external to class)
^
/data/data/com.termux/files/home/arasan-chess/jni/../src/search.h:489:61: warning: declaration shadows a field of 'SearchController' [-Wshadow]
score_t drawScore(const Board &board, const Statistics *stats = nullptr) {
^
/data/data/com.termux/files/home/arasan-chess/jni/../src/search.h:610:17: note: previous declaration is here
Statistics *stats;
^
3 warnings generated.
[arm64-v8a] Compile++ : Arasan <= bhash.cpp
WARNING: linker: /data/data/com.termux/files/home/opt/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
In file included from /data/data/com.termux/files/home/arasan-chess/jni/../src/bhash.cpp:3:
In file included from /data/data/com.termux/files/home/arasan-chess/jni/../src/bhash.h:6:
/data/data/com.termux/files/home/arasan-chess/jni/../src/board.h:228:38: warning: declaration shadows a field of 'Board' [-Wshadow]
Bitboard allPawnAttacks(ColorType side) const {
^
/data/data/com.termux/files/home/arasan-chess/jni/../src/board.h:413:14: note: previous declaration is here
ColorType side; // side to move
^
1 warning generated.
[arm64-v8a] Compile++ : Arasan <= bitbase.cpp
WARNING: linker: /data/data/com.termux/files/home/opt/android-ndk-r24/toolchains/llvm/prebuilt/linux-aarch64/bin/clang-14: unsupported flags DT_FLAGS_1=0x8000001
/data/data/com.termux/files/home/arasan-chess/jni/../src/bitbase.cpp:1:7: fatal error: unknown type name 'CACHE_ALIGN'
const CACHE_ALIGN uint8_t globals::baseKPKW[24576] = {
^
1 error generated.
make: *** [/data/data/com.termux/files/home/opt/android-ndk-r24/build/core/build-binary.mk:424: /data/data/com.termux/files/home/arasan-chess/obj/local/arm64-v8a/objs/Arasan/__/src/bitbase.o] Error 1
-
- Forum Contributions
- Points: 42 582,00
- Posts: 2059
- Joined: 04/11/2019, 21:13
- Status: Online (Active 2 Hours, 58 Minutes ago)
- Medals: 2
- Topics: 158
- Reputation: 7111
- Been thanked: 6477 times
Re: Compiling for Android
In bitbase.cpp add
and in globals.cpp make the following modification:
Code: Select all
#include "globals.h"
Code: Select all
// #include "bitbase.cpp"