Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

katago 1.15.1 build failure #961

Open
chenrui333 opened this issue Jul 23, 2024 · 1 comment
Open

katago 1.15.1 build failure #961

chenrui333 opened this issue Jul 23, 2024 · 1 comment

Comments

@chenrui333
Copy link

👋 trying to build the latest release, but run into some build issue. The error log is as below:

error build log
  /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super/g++-11  -mfpmath=sse -g -O2 -pedantic -Wall -Wextra -Wno-sign-compare -Wcast-align -Wcast-qual -Wctor-dtor-privacy -Wdisabled-optimization -Wformat=2 -Wmissing-declarations -Wmissing-include-dirs -Woverloaded-virtual -Wredundant-decls -Wshadow -Wstrict-overflow=1 -Wswitch-default -Wfloat-conversion -Wunused -Wlogical-op -Wnoexcept -Wstrict-null-sentinel -Wnull-dereference -Walloc-zero -Wduplicated-branches -Wduplicated-cond -Wdangling-else -Wrestrict -O3 -DNDEBUG CMakeFiles/katago.dir/core/global.cpp.o CMakeFiles/katago.dir/core/base64.cpp.o CMakeFiles/katago.dir/core/bsearch.cpp.o CMakeFiles/katago.dir/core/commandloop.cpp.o CMakeFiles/katago.dir/core/config_parser.cpp.o CMakeFiles/katago.dir/core/datetime.cpp.o CMakeFiles/katago.dir/core/elo.cpp.o CMakeFiles/katago.dir/core/fancymath.cpp.o CMakeFiles/katago.dir/core/fileutils.cpp.o CMakeFiles/katago.dir/core/hash.cpp.o CMakeFiles/katago.dir/core/logger.cpp.o CMakeFiles/katago.dir/core/mainargs.cpp.o CMakeFiles/katago.dir/core/makedir.cpp.o CMakeFiles/katago.dir/core/md5.cpp.o CMakeFiles/katago.dir/core/multithread.cpp.o CMakeFiles/katago.dir/core/parallel.cpp.o CMakeFiles/katago.dir/core/rand.cpp.o CMakeFiles/katago.dir/core/rand_helpers.cpp.o CMakeFiles/katago.dir/core/sha2.cpp.o CMakeFiles/katago.dir/core/test.cpp.o CMakeFiles/katago.dir/core/threadsafecounter.cpp.o CMakeFiles/katago.dir/core/threadsafequeue.cpp.o CMakeFiles/katago.dir/core/threadtest.cpp.o CMakeFiles/katago.dir/core/timer.cpp.o CMakeFiles/katago.dir/game/board.cpp.o CMakeFiles/katago.dir/game/rules.cpp.o CMakeFiles/katago.dir/game/boardhistory.cpp.o CMakeFiles/katago.dir/game/graphhash.cpp.o CMakeFiles/katago.dir/dataio/sgf.cpp.o CMakeFiles/katago.dir/dataio/numpywrite.cpp.o CMakeFiles/katago.dir/dataio/poswriter.cpp.o CMakeFiles/katago.dir/dataio/trainingwrite.cpp.o CMakeFiles/katago.dir/dataio/loadmodel.cpp.o CMakeFiles/katago.dir/dataio/homedata.cpp.o CMakeFiles/katago.dir/dataio/files.cpp.o CMakeFiles/katago.dir/neuralnet/nninputs.cpp.o CMakeFiles/katago.dir/neuralnet/sgfmetadata.cpp.o CMakeFiles/katago.dir/neuralnet/modelversion.cpp.o CMakeFiles/katago.dir/neuralnet/nneval.cpp.o CMakeFiles/katago.dir/neuralnet/desc.cpp.o CMakeFiles/katago.dir/neuralnet/dummybackend.cpp.o CMakeFiles/katago.dir/book/book.cpp.o CMakeFiles/katago.dir/book/bookcssjs.cpp.o CMakeFiles/katago.dir/search/timecontrols.cpp.o CMakeFiles/katago.dir/search/searchparams.cpp.o CMakeFiles/katago.dir/search/mutexpool.cpp.o CMakeFiles/katago.dir/search/search.cpp.o CMakeFiles/katago.dir/search/searchnode.cpp.o CMakeFiles/katago.dir/search/searchresults.cpp.o CMakeFiles/katago.dir/search/searchhelpers.cpp.o CMakeFiles/katago.dir/search/searchexplorehelpers.cpp.o CMakeFiles/katago.dir/search/searchmirror.cpp.o CMakeFiles/katago.dir/search/searchmultithreadhelpers.cpp.o CMakeFiles/katago.dir/search/searchnnhelpers.cpp.o CMakeFiles/katago.dir/search/searchtimehelpers.cpp.o CMakeFiles/katago.dir/search/searchupdatehelpers.cpp.o CMakeFiles/katago.dir/search/asyncbot.cpp.o CMakeFiles/katago.dir/search/distributiontable.cpp.o CMakeFiles/katago.dir/search/localpattern.cpp.o CMakeFiles/katago.dir/search/searchnodetable.cpp.o CMakeFiles/katago.dir/search/subtreevaluebiastable.cpp.o CMakeFiles/katago.dir/search/patternbonustable.cpp.o CMakeFiles/katago.dir/search/analysisdata.cpp.o CMakeFiles/katago.dir/search/reportedsearchvalues.cpp.o CMakeFiles/katago.dir/program/gtpconfig.cpp.o CMakeFiles/katago.dir/program/setup.cpp.o CMakeFiles/katago.dir/program/playutils.cpp.o CMakeFiles/katago.dir/program/playsettings.cpp.o CMakeFiles/katago.dir/program/play.cpp.o CMakeFiles/katago.dir/program/selfplaymanager.cpp.o CMakeFiles/katago.dir/tests/testboardarea.cpp.o CMakeFiles/katago.dir/tests/testboardbasic.cpp.o CMakeFiles/katago.dir/tests/testbook.cpp.o CMakeFiles/katago.dir/tests/testcommon.cpp.o CMakeFiles/katago.dir/tests/testconfig.cpp.o CMakeFiles/katago.dir/tests/testmisc.cpp.o CMakeFiles/katago.dir/tests/testnnevalcanary.cpp.o CMakeFiles/katago.dir/tests/testrules.cpp.o CMakeFiles/katago.dir/tests/testscore.cpp.o CMakeFiles/katago.dir/tests/testsgf.cpp.o CMakeFiles/katago.dir/tests/testsymmetries.cpp.o CMakeFiles/katago.dir/tests/testnninputs.cpp.o CMakeFiles/katago.dir/tests/testownership.cpp.o CMakeFiles/katago.dir/tests/testsearchcommon.cpp.o CMakeFiles/katago.dir/tests/testsearchnonn.cpp.o CMakeFiles/katago.dir/tests/testsearch.cpp.o CMakeFiles/katago.dir/tests/testsearchv3.cpp.o CMakeFiles/katago.dir/tests/testsearchv8.cpp.o CMakeFiles/katago.dir/tests/testsearchv9.cpp.o CMakeFiles/katago.dir/tests/testsearchmisc.cpp.o CMakeFiles/katago.dir/tests/testtime.cpp.o CMakeFiles/katago.dir/tests/testtrainingwrite.cpp.o CMakeFiles/katago.dir/tests/testnn.cpp.o CMakeFiles/katago.dir/tests/tinymodel.cpp.o CMakeFiles/katago.dir/tests/tinymodeldata.cpp.o CMakeFiles/katago.dir/distributed/client.cpp.o CMakeFiles/katago.dir/command/commandline.cpp.o CMakeFiles/katago.dir/command/analysis.cpp.o CMakeFiles/katago.dir/command/benchmark.cpp.o CMakeFiles/katago.dir/command/contribute.cpp.o CMakeFiles/katago.dir/command/evalsgf.cpp.o CMakeFiles/katago.dir/command/gatekeeper.cpp.o CMakeFiles/katago.dir/command/genbook.cpp.o CMakeFiles/katago.dir/command/gputest.cpp.o CMakeFiles/katago.dir/command/gtp.cpp.o CMakeFiles/katago.dir/command/match.cpp.o CMakeFiles/katago.dir/command/misc.cpp.o CMakeFiles/katago.dir/command/runtests.cpp.o CMakeFiles/katago.dir/command/sandbox.cpp.o CMakeFiles/katago.dir/command/selfplay.cpp.o CMakeFiles/katago.dir/command/tune.cpp.o CMakeFiles/katago.dir/command/writetrainingdata.cpp.o CMakeFiles/katago.dir/main.cpp.o -o katago  /home/linuxbrew/.linuxbrew/lib/libz.so /home/linuxbrew/.linuxbrew/lib/libzip.so
  /usr/bin/ld: CMakeFiles/katago.dir/neuralnet/nneval.cpp.o: in function `NNEvaluator::NNEvaluator(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Logger*, int, int, int, bool, bool, int, int, bool, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, enabled_t, enabled_t, int, std::vector<int, std::allocator<int> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, int)':
  nneval.cpp:(.text+0x2d8a): undefined reference to `NeuralNet::getNumInputMetaChannels(LoadedModel const*)'
  collect2: error: ld returned 1 exit status
  make[2]: *** [CMakeFiles/katago.dir/build.make:1894: katago] Error 1
  make[2]: Leaving directory '/tmp/katago-20240721-8519-9oodhe/KataGo-1.15.1/cpp'
  make[1]: *** [CMakeFiles/Makefile2:86: CMakeFiles/katago.dir/all] Error 2
  make[1]: Leaving directory '/tmp/katago-20240721-8519-9oodhe/KataGo-1.15.1/cpp'
  make: *** [Makefile:94: all] Error 2

full build log, https://github.com/Homebrew/homebrew-core/actions/runs/10022870460/job/27715779374?pr=177923
relates to Homebrew/homebrew-core#177923

@lightvector
Copy link
Owner

Thanks for reporting this, https://github.com/lightvector/KataGo/releases/tag/v1.15.2 should have a fix for the compile error that was found here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants