Lc0 will no longer compile

1,036 views
Skip to first unread message

Scally

unread,
Jul 17, 2018, 4:29:51 AM7/17/18
to LCZero
Hi,

I’ve managed to compile lc0 until yesterday following the introduction of commit a530848dad2817dc592e0167f29274677c0884e0.

Now I get this error when trying to compile lc0:

Dependency protobuf from subproject subprojects/protobuf found: YES
Program protoc found: NO
Message: protoc will be built from the subproject

meson.build:52:0: ERROR: File libs/lczero-common/proto/net.proto does not exist.

Is there something else I need to install or can I bypass this somehow?


Thanks,

Al.

jadelan

unread,
Jul 17, 2018, 4:43:13 AM7/17/18
to LCZero
I've read in Discord to add this line after git clone:

git submodule update --init --recursive

Haven't tried it yet, though.

Scally

unread,
Jul 17, 2018, 6:53:58 AM7/17/18
to LCZero
Hi jadelan,

Unfortunately there have been further code pushes since then.

I resorted to commenting out the changes added in the meson.build file as I couldn’t see a way to override it in the meson_options.txt file and I’m back in business.


Thanks,

Al.

Scally

unread,
Jul 17, 2018, 7:27:39 AM7/17/18
to LCZero
Ah, it failed further on, so I’m still stuck

I deleted and re-cloned lc0 but am still getting this:

meson.build:52:0: ERROR: File libs/lczero-common/proto/net.proto does not exist.

Does anyone know where I can get this file from please?


Thanks,

Al.

Alan Williams

unread,
Jul 17, 2018, 10:04:53 AM7/17/18
to LCZero
I changed the two lines from:

!git clone -b master ...

To:

!git clone -b release ...

Because the script should be pulling from release not master. This now works for me

Scally

unread,
Jul 17, 2018, 10:16:56 AM7/17/18
to LCZero
Hi Alain,

Yes that works as it pulls in code from 9 days ago, the 8th.

Mine on Master was working before the code change on the 15th that introduced ‘protoc’, so code from the 14th works on Master.

So it looks as though we’re stuck here until someone can explain where this new code is.

Thanks for you reply,

Al.

Nan Zhang

unread,
Jul 17, 2018, 10:52:05 AM7/17/18
to LCZero
Adding this line (and "--depth 1") works after the 'git clone',

git submodule update --init --recursive --depth 1

Nan

Scally

unread,
Jul 17, 2018, 11:18:48 AM7/17/18
to LCZero
Hi Nan,

Thanks for your answer. After following your instructions, my compile got a lot further but now this error:

In file included from ../../src/neural/loader.cc:31:0:
lc0@exe/proto/net.pb.h:25:60: fatal error: google/protobuf/generated_message_table_driven.h: No such file or directory
#include <google/protobuf/generated_message_table_driven.h>
^

Thanks,

Al.

Nan Zhang

unread,
Jul 17, 2018, 11:54:47 AM7/17/18
to LCZero
Attached is the content of the lc0 colab script I am using, you can use it to compare with what you have.

Nan
Lc0_Collab.ipynb

Scally

unread,
Jul 18, 2018, 8:03:09 AM7/18/18
to LCZero
Thanks guys, I had installed a few unwanted programs in between and found a way to uninstall these only. It now compiles fine.

Is there a way to make lc0 load quicker using CPU only, i.e. change some program options before compiling, as it now takes 45 seconds to initialise instead of the 10 seconds before?


Thanks,

Al.

Bankanidhi Sahoo

unread,
Aug 11, 2018, 11:14:04 AM8/11/18
to LCZero
Can you please tell me which unwanted programs i have ti uninstall. I am facing the same problem.

Thanks
BNS

juan deutsch

unread,
Oct 16, 2018, 10:38:03 PM10/16/18
to LCZero
hi. i just got this error:

ninja: build stopped: subcommand failed.


anybody knows how to fix it?

i dont have a lot of knowledge on terminal

thanks!

Reply all
Reply to author
Forward
0 new messages