LeelaChessZero / lc0

The rewritten engine, originally for tensorflow. Now all other backends have been ported here.
GNU General Public License v3.0
2.45k stars 529 forks source link

new build error on macOS #934

Closed MichaelB7 closed 5 years ago

MichaelB7 commented 5 years ago

appears to be a linking error for lc0 at step 64, any suggestions? OS 10.14.6 Mojave

Mac-Pro:lc0 $ sudo port select --set gcc mp-gcc8
Selecting 'mp-gcc8' for 'gcc' succeeded. 'mp-gcc8' is now active.
Mac-Pro:lc0 $ ls
CONTRIBUTING.md     build-cl.cmd        install_openSUSE_lc0.sh scripts
COPYING         build-cuda.cmd      lc0@exe         src
FLAGS.md        build.sh        libs            subprojects
README.md       changelog.txt       meson.build     tensorflow.md
appveyor.yml        checkdir.py     meson_options.txt   third_party
build           dist            openSUSE_install.md windows_build.md
Mac-Pro:lc0 michaelbyrne$ build.sh
~/Github/lc0/build/release ~/Github/lc0
[0/1] Regenerating build files.
The Meson build system
Version: 0.51.1
Source dir: /Users/michaelbyrne/Github/lczero
Build dir: /Users/michaelbyrne/Github/lc0/build/release
Build type: native build
DEPRECATION: Option uses prefix "build_", which is reserved for Meson. This will become an error in the future.
Project name: lc0
Project version: undefined
C++ compiler for the build machine: c++ (gcc 9.1.0 "c++ (MacPorts gcc9 9.1.0_2) 9.1.0")
C++ compiler for the host machine: c++ (gcc 9.1.0 "c++ (MacPorts gcc9 9.1.0_2) 9.1.0")
Build machine cpu family: x86_64
Build machine cpu: x86_64
Library libprotobuf found: NO
Dependency protobuf found: YES (cached)
Program protoc found: YES (/opt/local/bin/protoc)
Library pthread found: YES
Library dl found: YES
Library libtensorflow_cc found: NO
Found pkg-config: /opt/local/bin/pkg-config (0.29.2)
Found CMake: /opt/local/bin/cmake (3.15.2)
Run-time dependency accelerate found: NO (tried pkgconfig, cmake and framework)
Library mkl_rt found: YES
Library openblas.dll found: NO
Library openblas found: NO
Program ispc found: NO
Library OpenCL found: NO
Run-time dependency opencl found: NO (tried pkgconfig, cmake and framework)
Library cublas found: NO
Library cudnn found: NO
Library cudart found: NO
Program nvcc found: NO
Program /usr/local/cuda/bin/nvcc found: NO
Program /opt/cuda/bin/nvcc found: NO
Dependency zlib found: YES (cached)
Run-time dependency GTest found: NO (tried pkgconfig and system)
Looking for a fallback subproject for the dependency gtest

|Executing subproject gtest method meson 
|
|Project name: gtest
|Project version: 1.8.0
|C++ compiler for the build machine: c++ (gcc 9.1.0 "c++ (MacPorts gcc9 9.1.0_2) 9.1.0")
|C++ compiler for the host machine: c++ (gcc 9.1.0 "c++ (MacPorts gcc9 9.1.0_2) 9.1.0")
|Dependency threads found: YES (cached)
|Dependency threads found: YES (cached)
|Dependency threads found: YES (cached)
|Dependency threads found: YES (cached)
|Build targets in project: 1
|Subproject gtest finished.

Dependency gtest from subproject subprojects/gtest found: YES
Build targets in project: 8
Found ninja-1.9.0 at /opt/local/bin/ninja
[9/112] Compiling C++ object 'lc0@exe/src_neural_network_legacy.cc.o'.
In file included from /opt/local/include/google/protobuf/map_type_handler.h:34,
                 from /opt/local/include/google/protobuf/map.h:49,
                 from /opt/local/include/google/protobuf/generated_message_table_driven.h:34,
                 from lc0@exe/proto/net.pb.h:26,
                 from ../../../lczero/src/neural/network_legacy.h:22,
                 from ../../../lczero/src/neural/network_legacy.cc:19:
/opt/local/include/google/protobuf/parse_context.h: In function 'const char* google::protobuf::internal::InlineGreedyStringParserUTF8Verify(std::__cxx11::string*, const char*, google::protobuf::internal::ParseContext*, const char*)':
/opt/local/include/google/protobuf/parse_context.h:615:17: warning: unused parameter 'field_name' [-Wunused-parameter]
     const char* field_name) {
     ~~~~~~~~~~~~^~~~~~~~~~
[11/112] Compiling C++ object 'lc0@exe/src_neural_network_rr.cc.o'.
In file included from /opt/local/include/google/protobuf/map_type_handler.h:34,
                 from /opt/local/include/google/protobuf/map.h:49,
                 from /opt/local/include/google/protobuf/generated_message_table_driven.h:34,
                 from lc0@exe/proto/net.pb.h:26,
                 from ../../../lczero/src/neural/loader.h:34,
                 from ../../../lczero/src/neural/factory.h:33,
                 from ../../../lczero/src/neural/network_rr.cc:28:
/opt/local/include/google/protobuf/parse_context.h: In function 'const char* google::protobuf::internal::InlineGreedyStringParserUTF8Verify(std::__cxx11::string*, const char*, google::protobuf::internal::ParseContext*, const char*)':
/opt/local/include/google/protobuf/parse_context.h:615:17: warning: unused parameter 'field_name' [-Wunused-parameter]
     const char* field_name) {
     ~~~~~~~~~~~~^~~~~~~~~~
[13/112] Compiling C++ object 'lc0@exe/src_neural_network_random.cc.o'.
In file included from /opt/local/include/google/protobuf/map_type_handler.h:34,
                 from /opt/local/include/google/protobuf/map.h:49,
                 from /opt/local/include/google/protobuf/generated_message_table_driven.h:34,
                 from lc0@exe/proto/net.pb.h:26,
                 from ../../../lczero/src/neural/loader.h:34,
                 from ../../../lczero/src/neural/factory.h:33,
                 from ../../../lczero/src/neural/network_random.cc:33:
/opt/local/include/google/protobuf/parse_context.h: In function 'const char* google::protobuf::internal::InlineGreedyStringParserUTF8Verify(std::__cxx11::string*, const char*, google::protobuf::internal::ParseContext*, const char*)':
/opt/local/include/google/protobuf/parse_context.h:615:17: warning: unused parameter 'field_name' [-Wunused-parameter]
     const char* field_name) {
     ~~~~~~~~~~~~^~~~~~~~~~
[15/112] Compiling C++ object 'lc0@exe/src_main.cc.o'.
In file included from /opt/local/include/google/protobuf/map_type_handler.h:34,
                 from /opt/local/include/google/protobuf/map.h:49,
                 from /opt/local/include/google/protobuf/generated_message_table_driven.h:34,
                 from lc0@exe/proto/net.pb.h:26,
                 from ../../../lczero/src/neural/loader.h:34,
                 from ../../../lczero/src/neural/factory.h:33,
                 from ../../../lczero/src/benchmark/benchmark.h:32,
                 from ../../../lczero/src/main.cc:28:
/opt/local/include/google/protobuf/parse_context.h: In function 'const char* google::protobuf::internal::InlineGreedyStringParserUTF8Verify(std::__cxx11::string*, const char*, google::protobuf::internal::ParseContext*, const char*)':
/opt/local/include/google/protobuf/parse_context.h:615:17: warning: unused parameter 'field_name' [-Wunused-parameter]
     const char* field_name) {
     ~~~~~~~~~~~~^~~~~~~~~~
[16/112] Compiling C++ object 'lc0@exe/src_neural_loader.cc.o'.
In file included from /opt/local/include/google/protobuf/map_type_handler.h:34,
                 from /opt/local/include/google/protobuf/map.h:49,
                 from /opt/local/include/google/protobuf/generated_message_table_driven.h:34,
                 from lc0@exe/proto/net.pb.h:26,
                 from ../../../lczero/src/neural/loader.h:34,
                 from ../../../lczero/src/neural/loader.cc:28:
/opt/local/include/google/protobuf/parse_context.h: In function 'const char* google::protobuf::internal::InlineGreedyStringParserUTF8Verify(std::__cxx11::string*, const char*, google::protobuf::internal::ParseContext*, const char*)':
/opt/local/include/google/protobuf/parse_context.h:615:17: warning: unused parameter 'field_name' [-Wunused-parameter]
     const char* field_name) {
     ~~~~~~~~~~~~^~~~~~~~~~
[19/112] Compiling C++ object 'lc0@exe/src_neural_network_mux.cc.o'.
In file included from /opt/local/include/google/protobuf/map_type_handler.h:34,
                 from /opt/local/include/google/protobuf/map.h:49,
                 from /opt/local/include/google/protobuf/generated_message_table_driven.h:34,
                 from lc0@exe/proto/net.pb.h:26,
                 from ../../../lczero/src/neural/loader.h:34,
                 from ../../../lczero/src/neural/factory.h:33,
                 from ../../../lczero/src/neural/network_mux.cc:28:
/opt/local/include/google/protobuf/parse_context.h: In function 'const char* google::protobuf::internal::InlineGreedyStringParserUTF8Verify(std::__cxx11::string*, const char*, google::protobuf::internal::ParseContext*, const char*)':
/opt/local/include/google/protobuf/parse_context.h:615:17: warning: unused parameter 'field_name' [-Wunused-parameter]
     const char* field_name) {
     ~~~~~~~~~~~~^~~~~~~~~~
[20/112] Compiling C++ object 'lc0@exe/src_selfplay_loop.cc.o'.
../../../lczero/src/selfplay/loop.cc: In member function 'void lczero::SelfPlayLoop::SendTournament(const lczero::TournamentInfo&)':
../../../lczero/src/selfplay/loop.cc:169:40: warning: 'los.lczero::optional<float>::value_' may be used uninitialized in this function [-Wmaybe-uninitialized]
         << (los.value_or(0.0f) * 100.0f) << "%";
                                        ^
[21/112] Compiling C++ object 'lc0@exe/src_neural_network_demux.cc.o'.
In file included from /opt/local/include/google/protobuf/map_type_handler.h:34,
                 from /opt/local/include/google/protobuf/map.h:49,
                 from /opt/local/include/google/protobuf/generated_message_table_driven.h:34,
                 from lc0@exe/proto/net.pb.h:26,
                 from ../../../lczero/src/neural/loader.h:34,
                 from ../../../lczero/src/neural/factory.h:33,
                 from ../../../lczero/src/neural/network_demux.cc:28:
/opt/local/include/google/protobuf/parse_context.h: In function 'const char* google::protobuf::internal::InlineGreedyStringParserUTF8Verify(std::__cxx11::string*, const char*, google::protobuf::internal::ParseContext*, const char*)':
/opt/local/include/google/protobuf/parse_context.h:615:17: warning: unused parameter 'field_name' [-Wunused-parameter]
     const char* field_name) {
     ~~~~~~~~~~~~^~~~~~~~~~
[30/112] Compiling C++ object 'lc0@exe/src_neural_factory.cc.o'.
In file included from /opt/local/include/google/protobuf/map_type_handler.h:34,
                 from /opt/local/include/google/protobuf/map.h:49,
                 from /opt/local/include/google/protobuf/generated_message_table_driven.h:34,
                 from lc0@exe/proto/net.pb.h:26,
                 from ../../../lczero/src/neural/loader.h:34,
                 from ../../../lczero/src/neural/factory.h:33,
                 from ../../../lczero/src/neural/factory.cc:28:
/opt/local/include/google/protobuf/parse_context.h: In function 'const char* google::protobuf::internal::InlineGreedyStringParserUTF8Verify(std::__cxx11::string*, const char*, google::protobuf::internal::ParseContext*, const char*)':
/opt/local/include/google/protobuf/parse_context.h:615:17: warning: unused parameter 'field_name' [-Wunused-parameter]
     const char* field_name) {
     ~~~~~~~~~~~~^~~~~~~~~~
[36/112] Compiling C++ object 'lc0@exe/src_utils_weights_adapter.cc.o'.
In file included from /opt/local/include/google/protobuf/map_type_handler.h:34,
                 from /opt/local/include/google/protobuf/map.h:49,
                 from /opt/local/include/google/protobuf/generated_message_table_driven.h:34,
                 from lc0@exe/proto/net.pb.h:26,
                 from ../../../lczero/src/utils/weights_adapter.h:30,
                 from ../../../lczero/src/utils/weights_adapter.cc:28:
/opt/local/include/google/protobuf/parse_context.h: In function 'const char* google::protobuf::internal::InlineGreedyStringParserUTF8Verify(std::__cxx11::string*, const char*, google::protobuf::internal::ParseContext*, const char*)':
/opt/local/include/google/protobuf/parse_context.h:615:17: warning: unused parameter 'field_name' [-Wunused-parameter]
     const char* field_name) {
     ~~~~~~~~~~~~^~~~~~~~~~
[37/112] Compiling C++ object 'lc0@exe/src_neural_network_check.cc.o'.
In file included from /opt/local/include/google/protobuf/map_type_handler.h:34,
                 from /opt/local/include/google/protobuf/map.h:49,
                 from /opt/local/include/google/protobuf/generated_message_table_driven.h:34,
                 from lc0@exe/proto/net.pb.h:26,
                 from ../../../lczero/src/neural/loader.h:34,
                 from ../../../lczero/src/neural/factory.h:33,
                 from ../../../lczero/src/neural/network_check.cc:32:
/opt/local/include/google/protobuf/parse_context.h: In function 'const char* google::protobuf::internal::InlineGreedyStringParserUTF8Verify(std::__cxx11::string*, const char*, google::protobuf::internal::ParseContext*, const char*)':
/opt/local/include/google/protobuf/parse_context.h:615:17: warning: unused parameter 'field_name' [-Wunused-parameter]
     const char* field_name) {
     ~~~~~~~~~~~~^~~~~~~~~~
[39/112] Compiling C++ object 'lc0@exe/meson-generated_proto_net.pb.cc.o'.
In file included from /opt/local/include/google/protobuf/map_type_handler.h:34,
                 from /opt/local/include/google/protobuf/map.h:49,
                 from /opt/local/include/google/protobuf/generated_message_table_driven.h:34,
                 from lc0@exe/proto/net.pb.h:26,
                 from lc0@exe/proto/net.pb.cc:4:
/opt/local/include/google/protobuf/parse_context.h: In function 'const char* google::protobuf::internal::InlineGreedyStringParserUTF8Verify(std::__cxx11::string*, const char*, google::protobuf::internal::ParseContext*, const char*)':
/opt/local/include/google/protobuf/parse_context.h:615:17: warning: unused parameter 'field_name' [-Wunused-parameter]
     const char* field_name) {
     ~~~~~~~~~~~~^~~~~~~~~~
[40/112] Compiling C++ object 'lc0@exe/src_benchmark_benchmark.cc.o'.
In file included from /opt/local/include/google/protobuf/map_type_handler.h:34,
                 from /opt/local/include/google/protobuf/map.h:49,
                 from /opt/local/include/google/protobuf/generated_message_table_driven.h:34,
                 from lc0@exe/proto/net.pb.h:26,
                 from ../../../lczero/src/neural/loader.h:34,
                 from ../../../lczero/src/neural/factory.h:33,
                 from ../../../lczero/src/benchmark/benchmark.h:32,
                 from ../../../lczero/src/benchmark/benchmark.cc:28:
/opt/local/include/google/protobuf/parse_context.h: In function 'const char* google::protobuf::internal::InlineGreedyStringParserUTF8Verify(std::__cxx11::string*, const char*, google::protobuf::internal::ParseContext*, const char*)':
/opt/local/include/google/protobuf/parse_context.h:615:17: warning: unused parameter 'field_name' [-Wunused-parameter]
     const char* field_name) {
     ~~~~~~~~~~~~^~~~~~~~~~
[47/112] Compiling C++ object 'lc0@exe/src_engine.cc.o'.
In file included from /opt/local/include/google/protobuf/map_type_handler.h:34,
                 from /opt/local/include/google/protobuf/map.h:49,
                 from /opt/local/include/google/protobuf/generated_message_table_driven.h:34,
                 from lc0@exe/proto/net.pb.h:26,
                 from ../../../lczero/src/neural/loader.h:34,
                 from ../../../lczero/src/neural/factory.h:33,
                 from ../../../lczero/src/engine.h:33,
                 from ../../../lczero/src/engine.cc:32:
/opt/local/include/google/protobuf/parse_context.h: In function 'const char* google::protobuf::internal::InlineGreedyStringParserUTF8Verify(std::__cxx11::string*, const char*, google::protobuf::internal::ParseContext*, const char*)':
/opt/local/include/google/protobuf/parse_context.h:615:17: warning: unused parameter 'field_name' [-Wunused-parameter]
     const char* field_name) {
     ~~~~~~~~~~~~^~~~~~~~~~
[48/112] Compiling C++ object 'lc0_lib@sha/src_neural_network_check.cc.o'.
In file included from /opt/local/include/google/protobuf/map_type_handler.h:34,
                 from /opt/local/include/google/protobuf/map.h:49,
                 from /opt/local/include/google/protobuf/generated_message_table_driven.h:34,
                 from lc0_lib@sha/proto/net.pb.h:26,
                 from ../../../lczero/src/neural/loader.h:34,
                 from ../../../lczero/src/neural/factory.h:33,
                 from ../../../lczero/src/neural/network_check.cc:32:
/opt/local/include/google/protobuf/parse_context.h: In function 'const char* google::protobuf::internal::InlineGreedyStringParserUTF8Verify(std::__cxx11::string*, const char*, google::protobuf::internal::ParseContext*, const char*)':
/opt/local/include/google/protobuf/parse_context.h:615:17: warning: unused parameter 'field_name' [-Wunused-parameter]
     const char* field_name) {
     ~~~~~~~~~~~~^~~~~~~~~~
[53/112] Compiling C++ object 'lc0@exe/src_selfplay_tournament.cc.o'.
In file included from /opt/local/include/google/protobuf/map_type_handler.h:34,
                 from /opt/local/include/google/protobuf/map.h:49,
                 from /opt/local/include/google/protobuf/generated_message_table_driven.h:34,
                 from lc0@exe/proto/net.pb.h:26,
                 from ../../../lczero/src/neural/loader.h:34,
                 from ../../../lczero/src/neural/factory.h:33,
                 from ../../../lczero/src/selfplay/tournament.cc:30:
/opt/local/include/google/protobuf/parse_context.h: In function 'const char* google::protobuf::internal::InlineGreedyStringParserUTF8Verify(std::__cxx11::string*, const char*, google::protobuf::internal::ParseContext*, const char*)':
/opt/local/include/google/protobuf/parse_context.h:615:17: warning: unused parameter 'field_name' [-Wunused-parameter]
     const char* field_name) {
     ~~~~~~~~~~~~^~~~~~~~~~
[54/112] Compiling C++ object 'lc0_lib@sha/src_neural_network_legacy.cc.o'.
In file included from /opt/local/include/google/protobuf/map_type_handler.h:34,
                 from /opt/local/include/google/protobuf/map.h:49,
                 from /opt/local/include/google/protobuf/generated_message_table_driven.h:34,
                 from lc0_lib@sha/proto/net.pb.h:26,
                 from ../../../lczero/src/neural/network_legacy.h:22,
                 from ../../../lczero/src/neural/network_legacy.cc:19:
/opt/local/include/google/protobuf/parse_context.h: In function 'const char* google::protobuf::internal::InlineGreedyStringParserUTF8Verify(std::__cxx11::string*, const char*, google::protobuf::internal::ParseContext*, const char*)':
/opt/local/include/google/protobuf/parse_context.h:615:17: warning: unused parameter 'field_name' [-Wunused-parameter]
     const char* field_name) {
     ~~~~~~~~~~~~^~~~~~~~~~
[56/112] Compiling C++ object 'lc0_lib@sha/src_neural_network_random.cc.o'.
In file included from /opt/local/include/google/protobuf/map_type_handler.h:34,
                 from /opt/local/include/google/protobuf/map.h:49,
                 from /opt/local/include/google/protobuf/generated_message_table_driven.h:34,
                 from lc0_lib@sha/proto/net.pb.h:26,
                 from ../../../lczero/src/neural/loader.h:34,
                 from ../../../lczero/src/neural/factory.h:33,
                 from ../../../lczero/src/neural/network_random.cc:33:
/opt/local/include/google/protobuf/parse_context.h: In function 'const char* google::protobuf::internal::InlineGreedyStringParserUTF8Verify(std::__cxx11::string*, const char*, google::protobuf::internal::ParseContext*, const char*)':
/opt/local/include/google/protobuf/parse_context.h:615:17: warning: unused parameter 'field_name' [-Wunused-parameter]
     const char* field_name) {
     ~~~~~~~~~~~~^~~~~~~~~~
[60/112] Compiling C++ object 'lc0_lib@sha/src_neural_network_rr.cc.o'.
In file included from /opt/local/include/google/protobuf/map_type_handler.h:34,
                 from /opt/local/include/google/protobuf/map.h:49,
                 from /opt/local/include/google/protobuf/generated_message_table_driven.h:34,
                 from lc0_lib@sha/proto/net.pb.h:26,
                 from ../../../lczero/src/neural/loader.h:34,
                 from ../../../lczero/src/neural/factory.h:33,
                 from ../../../lczero/src/neural/network_rr.cc:28:
/opt/local/include/google/protobuf/parse_context.h: In function 'const char* google::protobuf::internal::InlineGreedyStringParserUTF8Verify(std::__cxx11::string*, const char*, google::protobuf::internal::ParseContext*, const char*)':
/opt/local/include/google/protobuf/parse_context.h:615:17: warning: unused parameter 'field_name' [-Wunused-parameter]
     const char* field_name) {
     ~~~~~~~~~~~~^~~~~~~~~~
[61/112] Compiling C++ object 'lc0@exe/src_neural_blas_network_blas.cc.o'.
In file included from /opt/local/include/google/protobuf/map_type_handler.h:34,
                 from /opt/local/include/google/protobuf/map.h:49,
                 from /opt/local/include/google/protobuf/generated_message_table_driven.h:34,
                 from lc0@exe/proto/net.pb.h:26,
                 from ../../../lczero/src/neural/loader.h:34,
                 from ../../../lczero/src/neural/factory.h:33,
                 from ../../../lczero/src/neural/blas/network_blas.cc:24:
/opt/local/include/google/protobuf/parse_context.h: In function 'const char* google::protobuf::internal::InlineGreedyStringParserUTF8Verify(std::__cxx11::string*, const char*, google::protobuf::internal::ParseContext*, const char*)':
/opt/local/include/google/protobuf/parse_context.h:615:17: warning: unused parameter 'field_name' [-Wunused-parameter]
     const char* field_name) {
     ~~~~~~~~~~~~^~~~~~~~~~
[63/112] Compiling C++ object 'lc0_lib@sha/src_neural_loader.cc.o'.
In file included from /opt/local/include/google/protobuf/map_type_handler.h:34,
                 from /opt/local/include/google/protobuf/map.h:49,
                 from /opt/local/include/google/protobuf/generated_message_table_driven.h:34,
                 from lc0_lib@sha/proto/net.pb.h:26,
                 from ../../../lczero/src/neural/loader.h:34,
                 from ../../../lczero/src/neural/loader.cc:28:
/opt/local/include/google/protobuf/parse_context.h: In function 'const char* google::protobuf::internal::InlineGreedyStringParserUTF8Verify(std::__cxx11::string*, const char*, google::protobuf::internal::ParseContext*, const char*)':
/opt/local/include/google/protobuf/parse_context.h:615:17: warning: unused parameter 'field_name' [-Wunused-parameter]
     const char* field_name) {
     ~~~~~~~~~~~~^~~~~~~~~~
[64/112] Linking target lc0.
FAILED: lc0 
c++  -o lc0 'lc0@exe/meson-generated_proto_net.pb.cc.o' 'lc0@exe/src_main.cc.o' 'lc0@exe/src_engine.cc.o' 'lc0@exe/src_version.cc.o' 'lc0@exe/src_benchmark_benchmark.cc.o' 'lc0@exe/src_chess_bitboard.cc.o' 'lc0@exe/src_chess_board.cc.o' 'lc0@exe/src_chess_position.cc.o' 'lc0@exe/src_chess_uciloop.cc.o' 'lc0@exe/src_mcts_node.cc.o' 'lc0@exe/src_mcts_params.cc.o' 'lc0@exe/src_mcts_search.cc.o' 'lc0@exe/src_neural_cache.cc.o' 'lc0@exe/src_neural_encoder.cc.o' 'lc0@exe/src_neural_factory.cc.o' 'lc0@exe/src_neural_loader.cc.o' 'lc0@exe/src_neural_network_check.cc.o' 'lc0@exe/src_neural_network_demux.cc.o' 'lc0@exe/src_neural_network_legacy.cc.o' 'lc0@exe/src_neural_network_mux.cc.o' 'lc0@exe/src_neural_network_random.cc.o' 'lc0@exe/src_neural_network_rr.cc.o' 'lc0@exe/src_neural_network_st_batch.cc.o' 'lc0@exe/src_neural_writer.cc.o' 'lc0@exe/src_selfplay_game.cc.o' 'lc0@exe/src_selfplay_loop.cc.o' 'lc0@exe/src_selfplay_tournament.cc.o' 'lc0@exe/src_syzygy_syzygy.cc.o' 'lc0@exe/src_utils_commandline.cc.o' 'lc0@exe/src_utils_configfile.cc.o' 'lc0@exe/src_utils_histogram.cc.o' 'lc0@exe/src_utils_logging.cc.o' 'lc0@exe/src_utils_optionsdict.cc.o' 'lc0@exe/src_utils_optionsparser.cc.o' 'lc0@exe/src_utils_random.cc.o' 'lc0@exe/src_utils_string.cc.o' 'lc0@exe/src_utils_transpose.cc.o' 'lc0@exe/src_utils_weights_adapter.cc.o' 'lc0@exe/src_utils_filesystem.posix.cc.o' 'lc0@exe/src_neural_blas_convolution1.cc.o' 'lc0@exe/src_neural_blas_fully_connected_layer.cc.o' 'lc0@exe/src_neural_blas_se_unit.cc.o' 'lc0@exe/src_neural_blas_network_blas.cc.o' 'lc0@exe/src_neural_blas_winograd_convolution3.cc.o' 'lc0@exe/src_neural_shared_activation.cc.o' 'lc0@exe/src_neural_shared_winograd_filter.cc.o' -Wl,-dead_strip_dylibs /opt/local/lib/libprotobuf.dylib -lpthread /opt/intel/mkl/lib/libmkl_rt.dylib /opt/local/lib/libz.dylib -Wl,-headerpad_max_install_names -Wl,-rpath,/opt/local/lib -Wl,-rpath,/opt/intel/mkl/lib
Undefined symbols for architecture x86_64:
  "google::protobuf::io::CodedOutputStream::WriteStringWithSizeToArray(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned char*)", referenced from:
      pblczero::Weights_Layer::InternalSerializeWithCachedSizesToArray(unsigned char*) const in meson-generated_proto_net.pb.cc.o
      pblczero::TrainingParams::InternalSerializeWithCachedSizesToArray(unsigned char*) const in meson-generated_proto_net.pb.cc.o
      pblczero::Net::InternalSerializeWithCachedSizesToArray(unsigned char*) const in meson-generated_proto_net.pb.cc.o
  "google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, google::protobuf::io::CodedOutputStream*)", referenced from:
      pblczero::Weights_Layer::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream*) const in meson-generated_proto_net.pb.cc.o
  "google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, google::protobuf::io::CodedOutputStream*)", referenced from:
      pblczero::TrainingParams::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream*) const in meson-generated_proto_net.pb.cc.o
      pblczero::Net::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream*) const in meson-generated_proto_net.pb.cc.o
  "google::protobuf::internal::WireFormatLite::ReadBytes(google::protobuf::io::CodedInputStream*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)", referenced from:
      pblczero::Weights_Layer::MergePartialFromCodedStream(google::protobuf::io::CodedInputStream*)      in meson-generated_proto_net.pb.cc.o
      pblczero::TrainingParams::MergePartialFromCodedStream(google::protobuf::io::CodedInputStream*)      in meson-generated_proto_net.pb.cc.o
      pblczero::Net::MergePartialFromCodedStream(google::protobuf::io::CodedInputStream*)     in meson-generated_proto_net.pb.cc.o
  "google::protobuf::internal::fixed_address_empty_string[abi:cxx11]", referenced from:
      pblczero::Weights_Layer::Weights_Layer() in meson-generated_proto_net.pb.cc.o
      pblczero::Weights_Layer::~Weights_Layer() in meson-generated_proto_net.pb.cc.o
      pblczero::Weights_Layer::~Weights_Layer() in meson-generated_proto_net.pb.cc.o
      pblczero::TrainingParams::TrainingParams() in meson-generated_proto_net.pb.cc.o
      pblczero::TrainingParams::~TrainingParams() in meson-generated_proto_net.pb.cc.o
      pblczero::TrainingParams::~TrainingParams() in meson-generated_proto_net.pb.cc.o
      pblczero::Net::Net()  in meson-generated_proto_net.pb.cc.o
      ...
  "google::protobuf::Message::GetTypeName[abi:cxx11]() const", referenced from:
      vtable for pblczero::EngineVersion in meson-generated_proto_net.pb.cc.o
      vtable for pblczero::Weights_Layer in meson-generated_proto_net.pb.cc.o
      vtable for pblczero::Weights_ConvBlock in meson-generated_proto_net.pb.cc.o
      vtable for pblczero::Weights_SEunit in meson-generated_proto_net.pb.cc.o
      vtable for pblczero::Weights_Residual in meson-generated_proto_net.pb.cc.o
      vtable for pblczero::Weights in meson-generated_proto_net.pb.cc.o
      vtable for pblczero::TrainingParams in meson-generated_proto_net.pb.cc.o
      ...
  "google::protobuf::Message::InitializationErrorString[abi:cxx11]() const", referenced from:
      vtable for pblczero::EngineVersion in meson-generated_proto_net.pb.cc.o
      vtable for pblczero::Weights_Layer in meson-generated_proto_net.pb.cc.o
      vtable for pblczero::Weights_ConvBlock in meson-generated_proto_net.pb.cc.o
      vtable for pblczero::Weights_SEunit in meson-generated_proto_net.pb.cc.o
      vtable for pblczero::Weights_Residual in meson-generated_proto_net.pb.cc.o
      vtable for pblczero::Weights in meson-generated_proto_net.pb.cc.o
      vtable for pblczero::TrainingParams in meson-generated_proto_net.pb.cc.o
      ...
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
[70/112] Compiling C++ object 'lc0_lib@sha/src_neural_network_demux.cc.o'.
In file included from /opt/local/include/google/protobuf/map_type_handler.h:34,
                 from /opt/local/include/google/protobuf/map.h:49,
                 from /opt/local/include/google/protobuf/generated_message_table_driven.h:34,
                 from lc0_lib@sha/proto/net.pb.h:26,
                 from ../../../lczero/src/neural/loader.h:34,
                 from ../../../lczero/src/neural/factory.h:33,
                 from ../../../lczero/src/neural/network_demux.cc:28:
/opt/local/include/google/protobuf/parse_context.h: In function 'const char* google::protobuf::internal::InlineGreedyStringParserUTF8Verify(std::__cxx11::string*, const char*, google::protobuf::internal::ParseContext*, const char*)':
/opt/local/include/google/protobuf/parse_context.h:615:17: warning: unused parameter 'field_name' [-Wunused-parameter]
     const char* field_name) {
     ~~~~~~~~~~~~^~~~~~~~~~
[72/112] Compiling C++ object 'lc0_lib@sha/src_neural_network_mux.cc.o'.
In file included from /opt/local/include/google/protobuf/map_type_handler.h:34,
                 from /opt/local/include/google/protobuf/map.h:49,
                 from /opt/local/include/google/protobuf/generated_message_table_driven.h:34,
                 from lc0_lib@sha/proto/net.pb.h:26,
                 from ../../../lczero/src/neural/loader.h:34,
                 from ../../../lczero/src/neural/factory.h:33,
                 from ../../../lczero/src/neural/network_mux.cc:28:
/opt/local/include/google/protobuf/parse_context.h: In function 'const char* google::protobuf::internal::InlineGreedyStringParserUTF8Verify(std::__cxx11::string*, const char*, google::protobuf::internal::ParseContext*, const char*)':
/opt/local/include/google/protobuf/parse_context.h:615:17: warning: unused parameter 'field_name' [-Wunused-parameter]
     const char* field_name) {
     ~~~~~~~~~~~~^~~~~~~~~~
[73/112] Compiling C++ object 'lc0_lib@sha/src_benchmark_benchmark.cc.o'.
In file included from /opt/local/include/google/protobuf/map_type_handler.h:34,
                 from /opt/local/include/google/protobuf/map.h:49,
                 from /opt/local/include/google/protobuf/generated_message_table_driven.h:34,
                 from lc0_lib@sha/proto/net.pb.h:26,
                 from ../../../lczero/src/neural/loader.h:34,
                 from ../../../lczero/src/neural/factory.h:33,
                 from ../../../lczero/src/benchmark/benchmark.h:32,
                 from ../../../lczero/src/benchmark/benchmark.cc:28:
/opt/local/include/google/protobuf/parse_context.h: In function 'const char* google::protobuf::internal::InlineGreedyStringParserUTF8Verify(std::__cxx11::string*, const char*, google::protobuf::internal::ParseContext*, const char*)':
/opt/local/include/google/protobuf/parse_context.h:615:17: warning: unused parameter 'field_name' [-Wunused-parameter]
     const char* field_name) {
     ~~~~~~~~~~~~^~~~~~~~~~
[74/112] Compiling C++ object 'lc0_lib@sha/src_neural_factory.cc.o'.
In file included from /opt/local/include/google/protobuf/map_type_handler.h:34,
                 from /opt/local/include/google/protobuf/map.h:49,
                 from /opt/local/include/google/protobuf/generated_message_table_driven.h:34,
                 from lc0_lib@sha/proto/net.pb.h:26,
                 from ../../../lczero/src/neural/loader.h:34,
                 from ../../../lczero/src/neural/factory.h:33,
                 from ../../../lczero/src/neural/factory.cc:28:
/opt/local/include/google/protobuf/parse_context.h: In function 'const char* google::protobuf::internal::InlineGreedyStringParserUTF8Verify(std::__cxx11::string*, const char*, google::protobuf::internal::ParseContext*, const char*)':
/opt/local/include/google/protobuf/parse_context.h:615:17: warning: unused parameter 'field_name' [-Wunused-parameter]
     const char* field_name) {
     ~~~~~~~~~~~~^~~~~~~~~~
[75/112] Compiling C++ object 'lc0_lib@sha/meson-generated_proto_net.pb.cc.o'.
In file included from /opt/local/include/google/protobuf/map_type_handler.h:34,
                 from /opt/local/include/google/protobuf/map.h:49,
                 from /opt/local/include/google/protobuf/generated_message_table_driven.h:34,
                 from lc0_lib@sha/proto/net.pb.h:26,
                 from lc0_lib@sha/proto/net.pb.cc:4:
/opt/local/include/google/protobuf/parse_context.h: In function 'const char* google::protobuf::internal::InlineGreedyStringParserUTF8Verify(std::__cxx11::string*, const char*, google::protobuf::internal::ParseContext*, const char*)':
/opt/local/include/google/protobuf/parse_context.h:615:17: warning: unused parameter 'field_name' [-Wunused-parameter]
     const char* field_name) {
     ~~~~~~~~~~~~^~~~~~~~~~
[81/112] Compiling C++ object 'lc0_lib@sha/src_selfplay_loop.cc.o'.
../../../lczero/src/selfplay/loop.cc: In member function 'void lczero::SelfPlayLoop::SendTournament(const lczero::TournamentInfo&)':
../../../lczero/src/selfplay/loop.cc:169:40: warning: 'los.lczero::optional<float>::value_' may be used uninitialized in this function [-Wmaybe-uninitialized]
         << (los.value_or(0.0f) * 100.0f) << "%";
                                        ^
[83/112] Compiling C++ object 'lc0_lib@sha/src_utils_weights_adapter.cc.o'.
In file included from /opt/local/include/google/protobuf/map_type_handler.h:34,
                 from /opt/local/include/google/protobuf/map.h:49,
                 from /opt/local/include/google/protobuf/generated_message_table_driven.h:34,
                 from lc0_lib@sha/proto/net.pb.h:26,
                 from ../../../lczero/src/utils/weights_adapter.h:30,
                 from ../../../lczero/src/utils/weights_adapter.cc:28:
/opt/local/include/google/protobuf/parse_context.h: In function 'const char* google::protobuf::internal::InlineGreedyStringParserUTF8Verify(std::__cxx11::string*, const char*, google::protobuf::internal::ParseContext*, const char*)':
/opt/local/include/google/protobuf/parse_context.h:615:17: warning: unused parameter 'field_name' [-Wunused-parameter]
     const char* field_name) {
     ~~~~~~~~~~~~^~~~~~~~~~
[84/112] Compiling C++ object 'lc0_lib@sha/src_engine.cc.o'.
In file included from /opt/local/include/google/protobuf/map_type_handler.h:34,
                 from /opt/local/include/google/protobuf/map.h:49,
                 from /opt/local/include/google/protobuf/generated_message_table_driven.h:34,
                 from lc0_lib@sha/proto/net.pb.h:26,
                 from ../../../lczero/src/neural/loader.h:34,
                 from ../../../lczero/src/neural/factory.h:33,
                 from ../../../lczero/src/engine.h:33,
                 from ../../../lczero/src/engine.cc:32:
/opt/local/include/google/protobuf/parse_context.h: In function 'const char* google::protobuf::internal::InlineGreedyStringParserUTF8Verify(std::__cxx11::string*, const char*, google::protobuf::internal::ParseContext*, const char*)':
/opt/local/include/google/protobuf/parse_context.h:615:17: warning: unused parameter 'field_name' [-Wunused-parameter]
     const char* field_name) {
     ~~~~~~~~~~~~^~~~~~~~~~
[88/112] Compiling C++ object 'lc0_lib@sha/src_neural_blas_network_blas.cc.o'.
In file included from /opt/local/include/google/protobuf/map_type_handler.h:34,
                 from /opt/local/include/google/protobuf/map.h:49,
                 from /opt/local/include/google/protobuf/generated_message_table_driven.h:34,
                 from lc0_lib@sha/proto/net.pb.h:26,
                 from ../../../lczero/src/neural/loader.h:34,
                 from ../../../lczero/src/neural/factory.h:33,
                 from ../../../lczero/src/neural/blas/network_blas.cc:24:
/opt/local/include/google/protobuf/parse_context.h: In function 'const char* google::protobuf::internal::InlineGreedyStringParserUTF8Verify(std::__cxx11::string*, const char*, google::protobuf::internal::ParseContext*, const char*)':
/opt/local/include/google/protobuf/parse_context.h:615:17: warning: unused parameter 'field_name' [-Wunused-parameter]
     const char* field_name) {
     ~~~~~~~~~~~~^~~~~~~~~~
[89/112] Compiling C++ object 'lc0_lib@sha/src_selfplay_tournament.cc.o'.
In file included from /opt/local/include/google/protobuf/map_type_handler.h:34,
                 from /opt/local/include/google/protobuf/map.h:49,
                 from /opt/local/include/google/protobuf/generated_message_table_driven.h:34,
                 from lc0_lib@sha/proto/net.pb.h:26,
                 from ../../../lczero/src/neural/loader.h:34,
                 from ../../../lczero/src/neural/factory.h:33,
                 from ../../../lczero/src/selfplay/tournament.cc:30:
/opt/local/include/google/protobuf/parse_context.h: In function 'const char* google::protobuf::internal::InlineGreedyStringParserUTF8Verify(std::__cxx11::string*, const char*, google::protobuf::internal::ParseContext*, const char*)':
/opt/local/include/google/protobuf/parse_context.h:615:17: warning: unused parameter 'field_name' [-Wunused-parameter]
     const char* field_name) {
     ~~~~~~~~~~~~^~~~~~~~~~
ninja: build stopped: subcommand failed.
Mac-Pro:lc0 $
MichaelB7 commented 5 years ago

let me know if you there is anything else I can provide macOS , OS 10.6 Mojave

meson-log.txt

ninja.log

borg323 commented 5 years ago

Try passing -Dtensorflow=true to the build script. This is a hack but will probably help in this case.

MichaelB7 commented 5 years ago

Thanks very much for your reply, but that wasn't it, as it turned out I had created some conflicts of my own doing and had to do clean install of macOS Mojave and all is good now. Fortunately, I have auto backups every hour - so nothing was lost.

MichaelB7 commented 5 years ago

Resolved