Closed ScallyBag closed 5 years ago
Compiles fine on a Raspberry Pi 3B+ from a clean git clone using the instructions in the README.
Specifically, I use clang v6, do not have OpenCL installed (only BLAS), and do not have protobuf installed but let the build process deal with it. Also, your meson is out of date, now on 48.0.
Hi thanks for the tip.
Strangely after deleting meson and re-installing, it installs v48.2 but meson —version says it’s still v47.1, however after removing protobuf it now compiles via clang 6.0.0 and gcc 8.1.0.
Thanks,
Al.
Sounds like you have two mesons floating around, perhaps one installed directly and one via pip
Yeah I thought similar, but the command:
sudo find / -name meson
only shows the one version.
Thanks,
Al.
The original problem looks like it was caused by an older version of the lczero-common submodule.
I'm closing this as it seems that the problem was resolved?.. Anyway, feel free to reopen the issue.
Hi,
I compile Lc0 daily with your latest code on my Raspberry Pi and never had a problem until today. I pulled your lastest code and ran my normal compile, output is as follows:
Thanks,
Alan Cooper
—————————
Al@PicoChess:~/lc0 $ CC=gcc-8.1.0 CXX=g++-8.1.0 ./build.sh -Ddefault_library=static The Meson build system Version: 0.47.1 Source dir: /home/Al/lc0 Build dir: /home/Al/lc0/build/release Build type: native build Project name: lc0 Project version: undefined Native C++ compiler: g++-8.1.0 (gcc 8.1.0 "g++-8.1.0 (GCC) 8.1.0") Build machine cpu family: arm Build machine cpu: armv7l Library libprotobuf found: YES Program protoc found: YES (/usr/bin/protoc) Library pthread found: YES Library dl found: YES Library libtensorflow_cc found: NO Found pkg-config: /usr/bin/pkg-config (0.29) Dependency Accelerate found: NO Library mkl_rt found: NO Library openblas.dll found: NO Library openblas found: YES Has header "openblas_config.h": YES Program ispc found: NO Library OpenCL found: YES Native dependency OpenCL found: YES 2.1 Library cublas found: NO Library cudnn found: NO Library cudart found: NO Program /usr/local/cuda/bin/nvcc found: NO Program nvcc found: NO Native dependency zlib found: YES 1.2.8 Dependency GTest found: NO Looking for a fallback subproject for the dependency gtest Using gtest from cache. Using gtest-1.8.0-5-wrap.zip from cache.
Dependency gtest from subproject subprojects/gtest found: YES Build targets in project: 8 Found ninja-1.7.2 at /usr/bin/ninja ~/lc0/build/release ~/lc0 [4/105] Compiling C++ object 'lc0@exe/src_chess_position.cc.o'. In file included from /usr/local/gcc-8.1.0/include/c++/8.1.0/vector:69, from ../../src/chess/bitboard.h:33, from ../../src/chess/board.h:31, from ../../src/chess/position.h:31, from ../../src/chess/position.cc:28: /usr/local/gcc-8.1.0/include/c++/8.1.0/bits/vector.tcc: In member function ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const lczero::ChessBoard&, int&, int&}; _Tp = lczero::Position; _Alloc = std::allocator]’:
/usr/local/gcc-8.1.0/include/c++/8.1.0/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector::iterator’ {aka ‘gnu_cxx::__normal_iterator<lczero::Position*, std::vector >’} changed in GCC 7.1
vector<_Tp, _Alloc>::
^ gnu_cxx::normal_iterator<lczero::Position*, std::vector >’ changed in GCC 7.1
_M_realloc_insert(end(), std::forward<_Args>(__args)...);
^]’:
/usr/local/gcc-8.1.0/include/c++/8.1.0/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector::iterator’ {aka ‘ gnu_cxx::normal_iterator<lczero::Position*, std::vector >’} changed in GCC 7.1
vector<_Tp, _Alloc>::
^ normal_iterator<lczero::Position, std::vector >’ changed in GCC 7.1
_M_realloc_insert(end(), std::forward<_Args>(args)...);
^]’:
/usr/local/gcc-8.1.0/include/c++/8.1.0/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector::iterator’ {aka ‘__gnu_cxx:: normal_iterator<lczero::MoveExecution , std::vector >’} changed in GCC 7.1
vector<_Tp, _Alloc>::
^ lczero::ChessBoard::GenerateLegalMovesAndPositions() const’:
/usr/local/gcc-8.1.0/include/c++/8.1.0/bits/vector.tcc:109:4: note: parameter passing for argument of type ‘gnu_cxx::__normal_iterator<lczero::MoveExecution*, std::vector >’ changed in GCC 7.1
_M_realloc_insert(end(), std::forward<_Args>( args)...);
^
~~~~~~ /usr/local/gcc-8.1.0/include/c++/8.1.0/bits/vector.tcc: In member function ‘void lczero::PositionHistory::Reset(const lczero::ChessBoard&, int, int)’: /usr/local/gcc-8.1.0/include/c++/8.1.0/bits/vector.tcc:109:4: note: parameter passing for argument of type ‘~~~~ /usr/local/gcc-8.1.0/include/c++/8.1.0/bits/vector.tcc: In member function ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {lczero::Position}; _Tp = lczero::Position; _Alloc = std::allocator~~~~~~ /usr/local/gcc-8.1.0/include/c++/8.1.0/bits/vector.tcc: In member function ‘void lczero::PositionHistory::Append(lczero::Move)’: /usr/local/gcc-8.1.0/include/c++/8.1.0/bits/vector.tcc:109:4: note: parameter passing for argument of type ‘__gnu_cxx::~~~~ [7/105] Compiling C++ object 'lc0@exe/src_chess_board.cc.o'. In file included from /usr/local/gcc-8.1.0/include/c++/8.1.0/vector:69, from ../../src/chess/bitboard.h:33, from ../../src/chess/board.h:31, from ../../src/chess/board.cc:28: /usr/local/gcc-8.1.0/include/c++/8.1.0/bits/vector.tcc: In member function ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {}; _Tp = lczero::MoveExecution; _Alloc = std::allocator~~~~~~ /usr/local/gcc-8.1.0/include/c++/8.1.0/bits/vector.tcc: In member function ‘std::vector~~~~ [8/105] Compiling C++ object 'lc0@exe/meson-generated_proto_net.pb.cc.o'. lc0@exe/proto/net.pb.cc: In member function ‘virtual google::protobuf::uint8 pblczero::EngineVersion::InternalSerializeWithCachedSizesToArray(bool, google::protobuf::uint8) const’: lc0@exe/proto/net.pb.cc:529:10: warning: unused parameter ‘deterministic’ [-Wunused-parameter] bool deterministic, ::google::protobuf::uint8* target) const {