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

Build error - Update protocol buffer headers #485

Closed
reikdas opened this issue Nov 3, 2018 · 1 comment
Closed

Build error - Update protocol buffer headers #485

reikdas opened this issue Nov 3, 2018 · 1 comment

Comments

@reikdas
Copy link

reikdas commented Nov 3, 2018

OS - Ubuntu 18.04

pratyush@pratyush-GS65-Stealth-Thin-8RF:~/dev/lc0$ ./build.sh
The Meson build system
Version: 0.45.1
Source dir: /home/pratyush/dev/lc0
Build dir: /home/pratyush/dev/lc0/build/release
Build type: native build
Project name: lc0
Native C++ compiler: c++ (gcc 7.3.0 "c++ (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0")
Build machine cpu family: x86_64
Build machine cpu: x86_64
Library libprotobuf found: YES
Program protoc found: YES (/home/pratyush/anaconda3/bin/protoc)
Library pthread found: YES
Library dl found: YES
Library libtensorflow_cc found: NO
Found pkg-config: /usr/bin/pkg-config (0.29.1)
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.11
Dependency GTest found: YES (building self)
Build targets in project: 8
Found ninja-1.8.2 at /home/pratyush/anaconda3/bin/ninja
~/dev/lc0/build/release ~/dev/lc0
[3/108] Compiling C++ object 'lc0@exe/meson-generated_proto_net.pb.cc.o'.
FAILED: lc0@exe/meson-generated_proto_net.pb.cc.o 
c++  -Ilc0@exe -I. -I../.. -I/usr/local/include/ -I../../src -I/usr/include/ -fdiagnostics-color=always -DNDEBUG -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++14 -O3 -Wextra -pedantic -march=native -DUSE_OPENBLAS -MD -MQ 'lc0@exe/meson-generated_proto_net.pb.cc.o' -MF 'lc0@exe/meson-generated_proto_net.pb.cc.o.d' -o 'lc0@exe/meson-generated_proto_net.pb.cc.o' -c 'lc0@exe/proto/net.pb.cc'
In file included from lc0@exe/proto/net.pb.cc:4:0:
lc0@exe/proto/net.pb.h:12:2: error: #error This file was generated by a newer version of protoc which is
 #error This file was generated by a newer version of protoc which is
  ^~~~~
lc0@exe/proto/net.pb.h:13:2: error: #error incompatible with your Protocol Buffer headers. Please update
 #error incompatible with your Protocol Buffer headers.  Please update
  ^~~~~
lc0@exe/proto/net.pb.h:14:2: error: #error your headers.
 #error your headers.
  ^~~~~
In file included from lc0@exe/proto/net.pb.cc:4:0:
lc0@exe/proto/net.pb.h:25:10: fatal error: google/protobuf/generated_message_table_driven.h: No such file or directory
 #include <google/protobuf/generated_message_table_driven.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[16/108] Compiling C++ object 'lc0@exe/src_mcts_search.cc.o'.
ninja: build stopped: subcommand failed.
@reikdas
Copy link
Author

reikdas commented Nov 3, 2018

Running the build as super user fixed it.

@reikdas reikdas closed this as completed Nov 3, 2018
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

1 participant