What can I do to fix this- pleas see the protocol

1,117 views
Skip to first unread message

Oskar Juric

unread,
Aug 22, 2018, 5:38:45 AM8/22/18
to LCZero
I need a solution if possible. Please have a look.

Last login: Wed Aug 22 11:23:28 on console

thegameison:~ oskar$ cd /Users/oskar/Lc0

thegameison:Lc0 oskar$ ./build.sh

The Meson build system

Version: 0.47.1

Source dir: /Users/oskar/lc0

Build dir: /Users/oskar/lc0/build/release

Build type: native build

Project name: lc0

Project version: undefined

Native C++ compiler: c++ (clang 8.0.0 "Apple LLVM version 8.0.0 (clang-800.0.42.1)")

Build machine cpu family: x86_64

Build machine cpu: x86_64

Library libprotobuf found: NO

Found Pkg-config: NO

Dependency protobuf found: NO

Program protoc found: NO

Using protobuf from cache.

Using protobuf-3.5.1-2w-wrap.zip from cache.


|

|Executing subproject protobuf 

|

|Project name: protobuf

|Project version: 3.5.1

|Native C++ compiler: c++ (clang 8.0.0 "Apple LLVM version 8.0.0 (clang-800.0.42.1)")

|Compiler for C++ supports arguments -DHAVE_PTHREAD: YES

|Compiler for C++ supports arguments -Wno-sign-compare: YES

|Compiler for C++ supports arguments -Wno-unused-parameter: YES

|Compiler for C++ supports arguments -Wno-ignored-qualifiers: YES

|Compiler for C++ supports arguments /wd4146: NO

|Compiler for C++ supports arguments /wd4244: NO

|Compiler for C++ supports arguments /wd4305: NO

|Compiler for C++ supports arguments /wd4506: NO

|Dependency threads found: YES

|Build targets in project: 6

|

|Subproject protobuf finished.

Library pthread found: YES

Library dl found: YES

Library libtensorflow_cc found: NO

Library libprotobuf found: NO

Dependency Accelerate found: YES /System/Library/Frameworks/Accelerate.framework

Library mkl_rt found: NO

Library openblas.dll found: NO

Library openblas found: NO

Program ispc found: NO

Library OpenCL found: NO

Dependency OpenCL found: YES /System/Library/Frameworks/OpenCL.framework

Library cublas found: NO

Library cudnn found: NO

Library cudart found: NO

Program /usr/local/cuda-9.2/bin/nvcc found: NO

Program /usr/local/cuda-9.1/bin/nvcc found: NO

Program nvcc found: NO

Dependency zlib found: NO

Looking for a fallback subproject for the dependency zlib

Using zlib from cache.

Using zlib-1.2.11-3-wrap.zip from cache.


|

|Executing subproject zlib 

|

|Project name: zlib

|Project version: 1.2.11

|Native C compiler: cc (clang 8.0.0 "Apple LLVM version 8.0.0 (clang-800.0.42.1)")

|Compiler for C supports arguments -Wno-implicit-fallthrough: YES

|Compiler for C supports arguments -Wno-implicit-function-declaration: YES

|Build targets in project: 7

|

|Subproject zlib finished.

Dependency zlib from subproject subprojects/zlib found: YES

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.


|

|Executing subproject gtest 

|

|Project name: gtest

|Project version: 1.8.0

|Native C++ compiler: c++ (clang 8.0.0 "Apple LLVM version 8.0.0 (clang-800.0.42.1)")

|Dependency threads found: YES (cached)

|Dependency threads found: YES (cached)

|Dependency threads found: YES (cached)

|Dependency threads found: YES (cached)

|Build targets in project: 8

|

|Subproject gtest finished.

Dependency gtest from subproject subprojects/gtest found: YES

Build targets in project: 12

Found ninja-1.8.2 at /usr/local/bin/ninja

~/Lc0/build/release ~/Lc0

[29/415] Linking target subprojects/protobuf-3.5.1/libprotobuf-lite.dylib.

clang: warning: argument unused during compilation: '-pthread'

[79/415] Compiling C++ object 'subproj...ogle_protobuf_compiler_js_embed.cc.o'.

../../subprojects/protobuf-3.5.1/src/google/protobuf/compiler/js/embed.cc:37:12: warning: unused variable 'output_file' [-Wunused-const-variable]

const char output_file[] = "well_known_types_embed.cc";

           ^

1 warning generated.

[98/415] Compiling C++ object 'subproj...otobuf_compiler_cpp_cpp_helpers.cc.o'.

../../subprojects/protobuf-3.5.1/src/google/protobuf/compiler/cpp/cpp_helpers.cc:62:8: warning: unused function 'DotsToUnderscores' [-Wunused-function]

string DotsToUnderscores(const string& name) {

       ^

../../subprojects/protobuf-3.5.1/src/google/protobuf/compiler/cpp/cpp_helpers.cc:97:6: warning: function 'HasExtension' is not needed and will not be emitted [-Wunneeded-internal-declaration]

bool HasExtension(const Descriptor* descriptor) {

     ^

../../subprojects/protobuf-3.5.1/src/google/protobuf/compiler/cpp/cpp_helpers.cc:110:6: warning: function 'Base63Char' is not needed and will not be emitted [-Wunneeded-internal-declaration]

char Base63Char(int value) {

     ^

3 warnings generated.

[103/415] Compiling C++ object 'subpro..._compiler_cpp_cpp_message_field.cc.o'.

../../subprojects/protobuf-3.5.1/src/google/protobuf/compiler/cpp/cpp_message_field.cc:54:8: warning: unused function 'StaticCast' [-Wunused-function]

string StaticCast(const string& type, const string& expression,

       ^

1 warning generated.

[169/415] Compiling C++ object 'subpro...ompiler_python_python_generator.cc.o'.

../../subprojects/protobuf-3.5.1/src/google/protobuf/compiler/python/python_generator.cc:81:6: warning: unused function 'StrStartsWith' [-Wunused-function]

bool StrStartsWith(StringPiece sp, StringPiece x) {

     ^

1 warning generated.

[210/415] Compiling C++ object 'lc0@exe/src_main.cc.o'.

FAILED: lc0@exe/src_main.cc.o 

c++ -Ilc0@exe -I. -I../.. -I../../src -I/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers -I/usr/include/ -I../../subprojects/protobuf-3.5.1/src -Isubprojects/zlib-1.2.11 -I../../subprojects/zlib-1.2.11 -I/System/Library/Frameworks/Accelerate.framework/Headers -I/System/Library/Frameworks/OpenCL.framework/Headers -Xclang -fcolor-diagnostics -DNDEBUG -pipe -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++14 -O3 -Wthread-safety -Wextra -pedantic -march=native  -MD -MQ 'lc0@exe/src_main.cc.o' -MF 'lc0@exe/src_main.cc.o.d' -o 'lc0@exe/src_main.cc.o' -c ../../src/main.cc

In file included from ../../src/main.cc:29:

In file included from ../../src/engine.h:31:

In file included from ../../src/mcts/search.h:35:

In file included from ../../src/mcts/node.h:38:

../../src/utils/mutex.h:61:8: error: 'shared_timed_mutex' is unavailable: introduced in macOS 10.12

  std::shared_timed_mutex mutex_;

       ^

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/shared_mutex:202:58: note: 'shared_timed_mutex' has been explicitly marked unavailable here

class _LIBCPP_TYPE_VIS _LIBCPP_AVAILABILITY_SHARED_MUTEX shared_timed_mutex

                                                         ^

In file included from ../../src/main.cc:29:

In file included from ../../src/engine.h:31:

In file included from ../../src/mcts/search.h:35:

In file included from ../../src/mcts/node.h:38:

../../src/utils/mutex.h:96:27: error: 'shared_timed_mutex' is unavailable: introduced in macOS 10.12

    std::unique_lock<std::shared_timed_mutex> lock_;

                          ^

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/shared_mutex:202:58: note: 'shared_timed_mutex' has been explicitly marked unavailable here

class _LIBCPP_TYPE_VIS _LIBCPP_AVAILABILITY_SHARED_MUTEX shared_timed_mutex

                                                         ^

In file included from ../../src/main.cc:29:

In file included from ../../src/engine.h:31:

In file included from ../../src/mcts/search.h:35:

In file included from ../../src/mcts/node.h:38:

../../src/utils/mutex.h:106:27: error: 'shared_timed_mutex' is unavailable: introduced in macOS 10.12

    std::shared_lock<std::shared_timed_mutex> lock_;

                          ^

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/shared_mutex:202:58: note: 'shared_timed_mutex' has been explicitly marked unavailable here

class _LIBCPP_TYPE_VIS _LIBCPP_AVAILABILITY_SHARED_MUTEX shared_timed_mutex

                                                         ^

In file included from ../../src/main.cc:29:

In file included from ../../src/engine.h:31:

In file included from ../../src/mcts/search.h:35:

In file included from ../../src/mcts/node.h:38:

../../src/utils/mutex.h:114:8: error: 'shared_timed_mutex' is unavailable: introduced in macOS 10.12

  std::shared_timed_mutex& get_raw() { return mutex_; }

       ^

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/shared_mutex:202:58: note: 'shared_timed_mutex' has been explicitly marked unavailable here

class _LIBCPP_TYPE_VIS _LIBCPP_AVAILABILITY_SHARED_MUTEX shared_timed_mutex

                                                         ^

In file included from ../../src/main.cc:29:

In file included from ../../src/engine.h:31:

In file included from ../../src/mcts/search.h:35:

In file included from ../../src/mcts/node.h:38:

../../src/utils/mutex.h:117:8: error: 'shared_timed_mutex' is unavailable: introduced in macOS 10.12

  std::shared_timed_mutex mutex_;

       ^

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/shared_mutex:202:58: note: 'shared_timed_mutex' has been explicitly marked unavailable here

class _LIBCPP_TYPE_VIS _LIBCPP_AVAILABILITY_SHARED_MUTEX shared_timed_mutex

                                                         ^

5 errors generated.

[212/415] Compiling C++ object 'lc0@exe/src_engine.cc.o'.

FAILED: lc0@exe/src_engine.cc.o 

c++ -Ilc0@exe -I. -I../.. -I../../src -I/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers -I/usr/include/ -I../../subprojects/protobuf-3.5.1/src -Isubprojects/zlib-1.2.11 -I../../subprojects/zlib-1.2.11 -I/System/Library/Frameworks/Accelerate.framework/Headers -I/System/Library/Frameworks/OpenCL.framework/Headers -Xclang -fcolor-diagnostics -DNDEBUG -pipe -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++14 -O3 -Wthread-safety -Wextra -pedantic -march=native  -MD -MQ 'lc0@exe/src_engine.cc.o' -MF 'lc0@exe/src_engine.cc.o.d' -o 'lc0@exe/src_engine.cc.o' -c ../../src/engine.cc

In file included from ../../src/engine.cc:32:

In file included from ../../src/engine.h:31:

In file included from ../../src/mcts/search.h:35:

In file included from ../../src/mcts/node.h:38:

../../src/utils/mutex.h:61:8: error: 'shared_timed_mutex' is unavailable: introduced in macOS 10.12

  std::shared_timed_mutex mutex_;

       ^

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/shared_mutex:202:58: note: 'shared_timed_mutex' has been explicitly marked unavailable here

class _LIBCPP_TYPE_VIS _LIBCPP_AVAILABILITY_SHARED_MUTEX shared_timed_mutex

                                                         ^

In file included from ../../src/engine.cc:32:

In file included from ../../src/engine.h:31:

In file included from ../../src/mcts/search.h:35:

In file included from ../../src/mcts/node.h:38:

../../src/utils/mutex.h:96:27: error: 'shared_timed_mutex' is unavailable: introduced in macOS 10.12

    std::unique_lock<std::shared_timed_mutex> lock_;

                          ^

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/shared_mutex:202:58: note: 'shared_timed_mutex' has been explicitly marked unavailable here

class _LIBCPP_TYPE_VIS _LIBCPP_AVAILABILITY_SHARED_MUTEX shared_timed_mutex

                                                         ^

In file included from ../../src/engine.cc:32:

In file included from ../../src/engine.h:31:

In file included from ../../src/mcts/search.h:35:

In file included from ../../src/mcts/node.h:38:

../../src/utils/mutex.h:106:27: error: 'shared_timed_mutex' is unavailable: introduced in macOS 10.12

    std::shared_lock<std::shared_timed_mutex> lock_;

                          ^

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/shared_mutex:202:58: note: 'shared_timed_mutex' has been explicitly marked unavailable here

class _LIBCPP_TYPE_VIS _LIBCPP_AVAILABILITY_SHARED_MUTEX shared_timed_mutex

                                                         ^

In file included from ../../src/engine.cc:32:

In file included from ../../src/engine.h:31:

In file included from ../../src/mcts/search.h:35:

In file included from ../../src/mcts/node.h:38:

../../src/utils/mutex.h:114:8: error: 'shared_timed_mutex' is unavailable: introduced in macOS 10.12

  std::shared_timed_mutex& get_raw() { return mutex_; }

       ^

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/shared_mutex:202:58: note: 'shared_timed_mutex' has been explicitly marked unavailable here

class _LIBCPP_TYPE_VIS _LIBCPP_AVAILABILITY_SHARED_MUTEX shared_timed_mutex

                                                         ^

In file included from ../../src/engine.cc:32:

In file included from ../../src/engine.h:31:

In file included from ../../src/mcts/search.h:35:

In file included from ../../src/mcts/node.h:38:

../../src/utils/mutex.h:117:8: error: 'shared_timed_mutex' is unavailable: introduced in macOS 10.12

  std::shared_timed_mutex mutex_;

       ^

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/shared_mutex:202:58: note: 'shared_timed_mutex' has been explicitly marked unavailable here

class _LIBCPP_TYPE_VIS _LIBCPP_AVAILABILITY_SHARED_MUTEX shared_timed_mutex

                                                         ^

5 errors generated.

[213/415] Compiling C++ object 'syzygy_test@exe/src_engine.cc.o'.

FAILED: syzygy_test@exe/src_engine.cc.o 

c++ -Isyzygy_test@exe -I. -I../.. -I../../src -I/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers -I/usr/include/ -I../../subprojects/protobuf-3.5.1/src -Isubprojects/zlib-1.2.11 -I../../subprojects/zlib-1.2.11 -I/System/Library/Frameworks/Accelerate.framework/Headers -I/System/Library/Frameworks/OpenCL.framework/Headers -Xclang -fcolor-diagnostics -DNDEBUG -pipe -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++14 -O3 -Wthread-safety -Wextra -pedantic -march=native -pthread -isystem ../../subprojects/googletest-release-1.8.0/googletest -isystem subprojects/googletest-release-1.8.0/googletest -isystem ../../subprojects/googletest-release-1.8.0/googletest/include  -MD -MQ 'syzygy_test@exe/src_engine.cc.o' -MF 'syzygy_test@exe/src_engine.cc.o.d' -o 'syzygy_test@exe/src_engine.cc.o' -c ../../src/engine.cc

In file included from ../../src/engine.cc:32:

In file included from ../../src/engine.h:31:

In file included from ../../src/mcts/search.h:35:

In file included from ../../src/mcts/node.h:38:

../../src/utils/mutex.h:61:8: error: 'shared_timed_mutex' is unavailable: introduced in macOS 10.12

  std::shared_timed_mutex mutex_;

       ^

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/shared_mutex:202:58: note: 'shared_timed_mutex' has been explicitly marked unavailable here

class _LIBCPP_TYPE_VIS _LIBCPP_AVAILABILITY_SHARED_MUTEX shared_timed_mutex

                                                         ^

In file included from ../../src/engine.cc:32:

In file included from ../../src/engine.h:31:

In file included from ../../src/mcts/search.h:35:

In file included from ../../src/mcts/node.h:38:

../../src/utils/mutex.h:96:27: error: 'shared_timed_mutex' is unavailable: introduced in macOS 10.12

    std::unique_lock<std::shared_timed_mutex> lock_;

                          ^

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/shared_mutex:202:58: note: 'shared_timed_mutex' has been explicitly marked unavailable here

class _LIBCPP_TYPE_VIS _LIBCPP_AVAILABILITY_SHARED_MUTEX shared_timed_mutex

                                                         ^

In file included from ../../src/engine.cc:32:

In file included from ../../src/engine.h:31:

In file included from ../../src/mcts/search.h:35:

In file included from ../../src/mcts/node.h:38:

../../src/utils/mutex.h:106:27: error: 'shared_timed_mutex' is unavailable: introduced in macOS 10.12

    std::shared_lock<std::shared_timed_mutex> lock_;

                          ^

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/shared_mutex:202:58: note: 'shared_timed_mutex' has been explicitly marked unavailable here

class _LIBCPP_TYPE_VIS _LIBCPP_AVAILABILITY_SHARED_MUTEX shared_timed_mutex

                                                         ^

In file included from ../../src/engine.cc:32:

In file included from ../../src/engine.h:31:

In file included from ../../src/mcts/search.h:35:

In file included from ../../src/mcts/node.h:38:

../../src/utils/mutex.h:114:8: error: 'shared_timed_mutex' is unavailable: introduced in macOS 10.12

  std::shared_timed_mutex& get_raw() { return mutex_; }

       ^

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/shared_mutex:202:58: note: 'shared_timed_mutex' has been explicitly marked unavailable here

class _LIBCPP_TYPE_VIS _LIBCPP_AVAILABILITY_SHARED_MUTEX shared_timed_mutex

                                                         ^

In file included from ../../src/engine.cc:32:

In file included from ../../src/engine.h:31:

In file included from ../../src/mcts/search.h:35:

In file included from ../../src/mcts/node.h:38:

../../src/utils/mutex.h:117:8: error: 'shared_timed_mutex' is unavailable: introduced in macOS 10.12

  std::shared_timed_mutex mutex_;

       ^

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/shared_mutex:202:58: note: 'shared_timed_mutex' has been explicitly marked unavailable here

class _LIBCPP_TYPE_VIS _LIBCPP_AVAILABILITY_SHARED_MUTEX shared_timed_mutex

                                                         ^

5 errors generated.

[219/415] Compiling C++ object 'syzygy_test@exe/src_chess_bitboard.cc.o'.

ninja: build stopped: subcommand failed.

acepoint

unread,
Aug 22, 2018, 6:50:38 AM8/22/18
to LCZero
I was able to compile it on an iMac (10.13.6), but it tool me a whole night for figuring out what all went wrong. Give me some time (a day or so), I'm working on a readme/Howto.

Ciao

acepoint

Oskar Juric

unread,
Aug 22, 2018, 6:53:07 AM8/22/18
to LCZero
Thanks so much and take all the time you need!

Cheers

Oskar Juric

unread,
Aug 22, 2018, 7:00:38 AM8/22/18
to LCZero
BTW, I have macOS 10.11.6 (15G22010) and Command Line Tools for macOS El Capitan Version 8.2


Am Mittwoch, 22. August 2018 12:50:38 UTC+2 schrieb acepoint:

Olaf Hilgenfeld

unread,
Aug 28, 2018, 2:21:53 AM8/28/18
to LCZero
Hi Oscar,

I've got exactly the same problem. I'm running osx 10.11.6 and I get the same kind of errors etc. My first impression was that 10.12 would be required. But somehow I could find any "system requirements" for LCZero anywhere. Still it's hard to believe that this can't be compiled on El Capitan. Did you make any progress on this yet? 

Regards
Olaf

acepoint

unread,
Aug 28, 2018, 2:44:39 AM8/28/18
to LCZero
Can you both try it with Xcode 9.0.0 and commandline-tools 9.0.0?

I'm running 10.13.6 and had to »downgrade« both.

Ciao

acepoint

Olaf Hilgenfeld

unread,
Aug 28, 2018, 8:18:44 AM8/28/18
to acep...@gmail.com, lcz...@googlegroups.com
Hi both,
thanks for the reply...
XCode 9 etc. requires OSX 10.12. As I don´t want to upgrade my OS, this is not what I wanted to hear ;)
But again: Is it actually possible at all to install it under 10.11.?
Cheers
Olaf

--
You received this message because you are subscribed to the Google Groups "LCZero" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lczero+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lczero/f07afd09-fdda-40b6-8ea1-31bc1d2f8020%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Oskar Juric

unread,
Sep 2, 2018, 11:15:02 AM9/2/18
to LCZero
No solution yet?


Am Mittwoch, 22. August 2018 12:50:38 UTC+2 schrieb acepoint:

Olaf Hilgenfeld

unread,
Sep 3, 2018, 1:03:43 PM9/3/18
to LCZero
I think we must update to XCode 9 (at least acepoint suggests that) - which would require updating to osx 10.12. Hard to believe though... 

acepoint

unread,
Sep 3, 2018, 2:05:59 PM9/3/18
to LCZero
Well, unfortunately developers show up rarely in the forum here, but...

The src code asks for Cuda-9.2:

meson.build:313:  nvcc = find_program('/usr/local/cuda-9.2/bin/nvcc

And Nvidia asks for Xcode 9.2 and clang-9.0.0 in https://docs.nvidia.com/cuda/cuda-installation-guide-mac-os-x/index.html#system-requirements. I skimmed over some open source projects using Cuda and they all have problems here and there while using different versions, a lot of moaning about Nvidia. I doubt other versions than 9.2 will work.

At least 9.2 kind of works (finally) as you can read in the other thread with Armin. Nonetheless you should also check your graphics cards whether the effort is worth it. Armin had some problems with GPU memory.

Ciao

acepoint
Reply all
Reply to author
Forward
0 new messages