1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 00:33:09 +00:00
BadFish/src
Disservin 55df0ee009 Fix Raspberry Pi Compilation
Reported by @Torom over discord.

> dev build fails on Raspberry Pi 5 with clang

```
clang++ -o stockfish benchmark.o bitboard.o evaluate.o main.o misc.o movegen.o movepick.o position.o search.o thread.o timeman.o tt.o uci.o ucioption.o tune.o tbprobe.o nnue_misc.o half_ka_v2_hm.o network.o  -fprofile-instr-generate -latomic -lpthread  -Wall -Wcast-qual -fno-exceptions -std=c++17 -fprofile-instr-generate  -pedantic -Wextra -Wshadow -Wmissing-prototypes -Wconditional-uninitialized -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=8 -march=armv8.2-a+dotprod -DUSE_NEON_DOTPROD -DGIT_SHA=627974c9 -DGIT_DATE=20240312 -DARCH=armv8-dotprod -flto=full
/tmp/lto-llvm-e9300e.o: in function `_GLOBAL__sub_I_network.cpp':
ld-temp.o:(.text.startup+0x704c): relocation truncated to fit: R_AARCH64_LDST64_ABS_LO12_NC against symbol `gEmbeddedNNUEBigEnd' defined in .rodata section in /tmp/lto-llvm-e9300e.o
/usr/bin/ld: ld-temp.o:(.text.startup+0x704c): warning: one possible cause of this error is that the symbol is being referenced in the indicated code as if it had a larger alignment than was declared where it was defined
ld-temp.o:(.text.startup+0x7068): relocation truncated to fit: R_AARCH64_LDST64_ABS_LO12_NC against symbol `gEmbeddedNNUESmallEnd' defined in .rodata section in /tmp/lto-llvm-e9300e.o
/usr/bin/ld: ld-temp.o:(.text.startup+0x7068): warning: one possible cause of this error is that the symbol is being referenced in the indicated code as if it had a larger alignment than was declared where it was defined
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [Makefile:1051: stockfish] Error 1
make[2]: Leaving directory '/home/torsten/chess/Stockfish_master/src'
make[1]: *** [Makefile:1058: clang-profile-make] Error 2
make[1]: Leaving directory '/home/torsten/chess/Stockfish_master/src'
make: *** [Makefile:886: profile-build] Error 2
```

closes https://github.com/official-stockfish/Stockfish/pull/5106

No functional change
2024-03-12 19:09:50 +01:00
..
incbin Cleanup comments 2023-12-31 19:54:27 +01:00
nnue Fix Raspberry Pi Compilation 2024-03-12 19:09:50 +01:00
syzygy Remove global TB variables from search.cpp 2024-01-17 18:05:00 +01:00
benchmark.cpp Update copyright year 2024-01-04 15:47:10 +01:00
benchmark.h Update copyright year 2024-01-04 15:47:10 +01:00
bitboard.cpp Remove global TB variables from search.cpp 2024-01-17 18:05:00 +01:00
bitboard.h Assorted cleanups 2024-02-11 19:52:00 +01:00
evaluate.cpp Search + Eval + Movepick Tune 2024-03-12 16:47:11 +01:00
evaluate.h Search + Eval + Movepick Tune 2024-03-12 16:47:11 +01:00
main.cpp Refactor Network Usage 2024-03-12 16:41:08 +01:00
Makefile Fix Raspberry Pi Compilation 2024-03-12 19:09:50 +01:00
misc.cpp Restore development 2024-03-03 15:01:29 +01:00
misc.h Refactor Network Usage 2024-03-12 16:41:08 +01:00
movegen.cpp Change the Move enum to a class 2024-01-04 15:51:04 +01:00
movegen.h Change the Move enum to a class 2024-01-04 15:51:04 +01:00
movepick.cpp Search + Eval + Movepick Tune 2024-03-12 16:47:11 +01:00
movepick.h Introduce BAD_QUIET movepicker stage 2024-01-07 13:41:50 +01:00
perft.h Move perft out of search 2024-01-26 20:52:26 +01:00
position.cpp Only evaluate the PSQT part of the small net for large evals. 2024-03-03 15:29:58 +01:00
position.h Assorted cleanups 2024-02-11 19:52:00 +01:00
search.cpp Search + Eval + Movepick Tune 2024-03-12 16:47:11 +01:00
search.h Refactor Network Usage 2024-03-12 16:41:08 +01:00
thread.cpp Refactor Network Usage 2024-03-12 16:41:08 +01:00
thread.h Refactor Network Usage 2024-03-12 16:41:08 +01:00
thread_win32_osx.h Refactor NativeThread start_routine 2024-01-21 12:21:01 +01:00
timeman.cpp VLTC time management tune 2024-03-07 20:08:00 +01:00
timeman.h Refactor global variables 2024-01-13 19:40:53 +01:00
tt.cpp Search + Eval + Movepick Tune 2024-03-12 16:47:11 +01:00
tt.h Document TT code more 2024-03-03 15:21:57 +01:00
tune.cpp Refactor global variables 2024-01-13 19:40:53 +01:00
tune.h Refactor global variables 2024-01-13 19:40:53 +01:00
types.h Improve thread voting inefficiencies 2024-02-11 19:55:26 +01:00
uci.cpp Fix Raspberry Pi Compilation 2024-03-12 19:09:50 +01:00
uci.h Refactor Network Usage 2024-03-12 16:41:08 +01:00
ucioption.cpp Move OnChange callback in Option ctors 2024-01-26 21:00:41 +01:00
ucioption.h Refactor global variables 2024-01-13 19:40:53 +01:00