fishtest icon indicating copy to clipboard operation
fishtest copied to clipboard

fishtest won't work

Open megaman7de opened this issue 4 months ago • 6 comments

Hello, since a few days i can't run fishtest worker anymore. Nayone an idea how to solve this issue? I always get this message:

Post request https://tests.stockfishchess.org:443/api/request_version handled in 99.76ms (server: 0.27ms). Using g++ 10.3.0. Toolchain check... Building fastchess from sources... Downloading https://api.github.com/repos/Disservin/fastchess/zipball/5e4b66b57ef790d68119f4bfdda4546bbab31d08. make -j10 tests CXX=g++ GIT_SHA=5e4b66b5 GIT_DATE=01010101 Running tests.. make -C app tests BINARY_PATH=../ make[1]: Entering directory '/c/Users/Admin/Downloads/worker-setup-master/worker/tmpjzmxslrk/Disservin-fastchess-5e4b66b/app' g++ -O2 -std=c++17 -Wall -Wextra -pedantic -Wuninitialized -g3 -fno-omit-frame-pointer -DGIT_SHA="5e4b66b5" -DGIT_DATE="01010101" -Isrc -Ithird_party -MMD -MP -c src/cli/cli.cpp -o tmp/src/cli/cli.o g++ -O2 -std=c++17 -Wall -Wextra -pedantic -Wuninitialized -g3 -fno-omit-frame-pointer -DGIT_SHA="5e4b66b5" -DGIT_DATE="01010101" -Isrc -Ithird_party -MMD -MP -c src/cli/sanitize.cpp -o tmp/src/cli/sanitize.o g++ -O2 -std=c++17 -Wall -Wextra -pedantic -Wuninitialized -g3 -fno-omit-frame-pointer -DGIT_SHA="5e4b66b5" -DGIT_DATE="01010101" -Isrc -Ithird_party -MMD -MP -c src/core/globals/globals.cpp -o tmp/src/core/globals/globals.o g++ -O2 -std=c++17 -Wall -Wextra -pedantic -Wuninitialized -g3 -fno-omit-frame-pointer -DGIT_SHA="5e4b66b5" -DGIT_DATE="01010101" -Isrc -Ithird_party -MMD -MP -c src/core/logger/logger.cpp -o tmp/src/core/logger/logger.o g++ -O2 -std=c++17 -Wall -Wextra -pedantic -Wuninitialized -g3 -fno-omit-frame-pointer -DGIT_SHA="5e4b66b5" -DGIT_DATE="01010101" -Isrc -Ithird_party -MMD -MP -c src/core/printing/printing.cpp -o tmp/src/core/printing/printing.o g++ -O2 -std=c++17 -Wall -Wextra -pedantic -Wuninitialized -g3 -fno-omit-frame-pointer -DGIT_SHA="5e4b66b5" -DGIT_DATE="01010101" -Isrc -Ithird_party -MMD -MP -c src/core/time/time.cpp -o tmp/src/core/time/time.o g++ -O2 -std=c++17 -Wall -Wextra -pedantic -Wuninitialized -g3 -fno-omit-frame-pointer -DGIT_SHA="5e4b66b5" -DGIT_DATE="01010101" -Isrc -Ithird_party -MMD -MP -c src/engine/uci_engine.cpp -o tmp/src/engine/uci_engine.o g++ -O2 -std=c++17 -Wall -Wextra -pedantic -Wuninitialized -g3 -fno-omit-frame-pointer -DGIT_SHA="5e4b66b5" -DGIT_DATE="01010101" -Isrc -Ithird_party -MMD -MP -c src/game/book/epd_reader.cpp -o tmp/src/game/book/epd_reader.o g++ -O2 -std=c++17 -Wall -Wextra -pedantic -Wuninitialized -g3 -fno-omit-frame-pointer -DGIT_SHA="5e4b66b5" -DGIT_DATE="01010101" -Isrc -Ithird_party -MMD -MP -c src/game/book/opening_book.cpp -o tmp/src/game/book/opening_book.o g++ -O2 -std=c++17 -Wall -Wextra -pedantic -Wuninitialized -g3 -fno-omit-frame-pointer -DGIT_SHA="5e4b66b5" -DGIT_DATE="01010101" -Isrc -Ithird_party -MMD -MP -c src/game/book/pgn_reader.cpp -o tmp/src/game/book/pgn_reader.o g++ -O2 -std=c++17 -Wall -Wextra -pedantic -Wuninitialized -g3 -fno-omit-frame-pointer -DGIT_SHA="5e4b66b5" -DGIT_DATE="01010101" -Isrc -Ithird_party -MMD -MP -c src/game/pgn/pgn_builder.cpp -o tmp/src/game/pgn/pgn_builder.o g++ -O2 -std=c++17 -Wall -Wextra -pedantic -Wuninitialized -g3 -fno-omit-frame-pointer -DGIT_SHA="5e4b66b5" -DGIT_DATE="01010101" -Isrc -Ithird_party -MMD -MP -c src/game/timecontrol/timecontrol.cpp -o tmp/src/game/timecontrol/timecontrol.o g++ -O2 -std=c++17 -Wall -Wextra -pedantic -Wuninitialized -g3 -fno-omit-frame-pointer -DGIT_SHA="5e4b66b5" -DGIT_DATE="01010101" -Isrc -Ithird_party -MMD -MP -c src/matchmaking/syzygy.cpp -o tmp/src/matchmaking/syzygy.o make[1]: Leaving directory '/c/Users/Admin/Downloads/worker-setup-master/worker/tmpjzmxslrk/Disservin-fastchess-5e4b66b/app' Exception downloading, extracting or building fastchess: Executing make -j10 tests CXX=g++ GIT_SHA=5e4b66b5 GIT_DATE=01010101 failed. Return code: 2. Error: ['In file included from src/engine/process/process_win.hpp:15,\n', ' from src/engine/uci_engine.hpp:11,\n', ' from src/engine/uci_engine.cpp:1:\n', "src/affinity/affinity.hpp: In function 'bool fastchess::affinity::setAffinity(const std::vector&, HANDLE)':\n", "src/affinity/affinity.hpp:32:79: error: 'SetProcessDefaultCpuSetMasks' was not declared in this scope; did you mean 'pSetProcessDefaultCpuSetMasks'?\n", ' 32 | const auto pSetProcessDefaultCpuSetMasks = reinterpret_cast<decltype(&SetProcessDefaultCpuSetMasks)>(\n', ' | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~\n', ' | pSetProcessDefaultCpuSetMasks\n', 'In file included from src/engine/process/process_win.hpp:15,\n', ' from src/engine/uci_engine.hpp:11,\n', ' from src/matchmaking/output/output_fastchess.hpp:9,\n', ' from src/matchmaking/output/output_factory.hpp:4,\n', ' from src/cli/cli.cpp:8:\n', "src/affinity/affinity.hpp: In function 'bool fastchess::affinity::setAffinity(const std::vector&, HANDLE)':\n", "src/affinity/affinity.hpp:32:79: error: 'SetProcessDefaultCpuSetMasks' was not declared in this scope; did you mean 'pSetProcessDefaultCpuSetMasks'?\n", ' 32 | const auto pSetProcessDefaultCpuSetMasks = reinterpret_cast<decltype(&SetProcessDefaultCpuSetMasks)>(\n', ' | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~\n', ' | pSetProcessDefaultCpuSetMasks\n', 'In file included from src/engine/process/process_win.hpp:15,\n', ' from src/engine/uci_engine.hpp:11,\n', ' from src/matchmaking/player.hpp:5,\n', ' from src/matchmaking/match/match.hpp:8,\n', ' from src/game/pgn/pgn_builder.hpp:10,\n', ' from src/game/pgn/pgn_builder.cpp:1:\n', "src/affinity/affinity.hpp: In function 'bool fastchess::affinity::setAffinity(const std::vector&, HANDLE)':\n", "src/affinity/affinity.hpp:32:79: error: 'SetProcessDefaultCpuSetMasks' was not declared in this scope; did you mean 'pSetProcessDefaultCpuSetMasks'?\n", ' 32 | const auto pSetProcessDefaultCpuSetMasks = reinterpret_cast<decltype(&SetProcessDefaultCpuSetMasks)>(\n', ' | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~\n', ' | pSetProcessDefaultCpuSetMasks\n', 'make[1]: *** [Makefile:217: tmp/src/engine/uci_engine.o] Error 1\n', 'make[1]: *** Waiting for unfinished jobs....\n', 'make[1]: *** [Makefile:217: tmp/src/cli/cli.o] Error 1\n', 'make[1]: *** [Makefile:217: tmp/src/game/pgn/pgn_builder.o] Error 1\n', 'make: *** [Makefile:18: tests] Error 2\n'] Traceback (most recent call last): File "worker.py", line 1615, in sys.exit(worker()) SystemExit: 1

megaman7de avatar Aug 07 '25 12:08 megaman7de

yes, this is a known issue with fastchess, which needs an update. One user reported upgrading the compiler help, but I'm not sure.

vondele avatar Aug 07 '25 12:08 vondele

You can simply update MSYS2 to update the compiler.

If you have installed the worker with choco, download the installer and run the file 04_update_msys2_choco_admin.cmd https://github.com/ppigazzini/fishtest-worker-setup/archive/refs/heads/master.zip

If you have installed the worker with winget download the installer and run the file 04_update_msys2.cmd https://github.com/ppigazzini/fishtest-worker-setup/archive/refs/heads/winget.zip

ppigazzini avatar Aug 07 '25 13:08 ppigazzini

Updating didn't work, but reinstalling fistest and worker did work.

Thank you

megaman7de avatar Aug 07 '25 15:08 megaman7de

Updating didn't work, but reinstalling fistest and worker did work.

Thank you

This is weird. This suggests that deleting the testing directory is what did the trick. I don't understand how that could make a difference in this case.

vdbergh avatar Aug 07 '25 15:08 vdbergh

yea idk about the testing dir, maybe this helps ? idk https://github.com/Disservin/fastchess/pull/900

Disservin avatar Aug 07 '25 17:08 Disservin

Updating didn't work, but reinstalling fistest and worker did work. Thank you

This is weird. This suggests that deleting the testing directory is what did the trick. I don't understand how that could make a difference in this case.

gcc 10 vs gcc 15. IMO the msys2 was so outdated that the packages signing keys were expired/rotated. In that case pacman -Syu fails silently without a keyring update with pacman -Sy archlinux-keyring

ppigazzini avatar Aug 07 '25 17:08 ppigazzini