lingvo icon indicating copy to clipboard operation
lingvo copied to clipboard

Protobuf version mismatch

Open durson opened this issue 5 years ago • 1 comments

Hi, I cannot build lingvo. My setup: tf-1.14 (using protobuf 3.7.1) Command: bazel build --verbose_failures //lingvo/core/ops:py_x_ops Error: bazel-out/k8-fastbuild/genfiles/lingvo/core/ops/hyps.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 ^ bazel-out/k8-fastbuild/genfiles/lingvo/core/ops/hyps.pb.h:13:2: error: #error incompatible with your Protocol Buffer headers. Please update #error incompatible with your Protocol Buffer headers. Please update ^ bazel-out/k8-fastbuild/genfiles/lingvo/core/ops/hyps.pb.h:14:2: error: #error your headers. #error your headers. ^ In file included from bazel-out/k8-fastbuild/genfiles/lingvo/core/ops/hyps.pb.cc:4:0: bazel-out/k8-fastbuild/genfiles/lingvo/core/ops/hyps.pb.h:38:1: error: 'PROTOBUF_NAMESPACE_OPEN' does not name a type PROTOBUF_NAMESPACE_OPEN ^ bazel-out/k8-fastbuild/genfiles/lingvo/core/ops/hyps.pb.h:42:1: error: 'PROTOBUF_NAMESPACE_CLOSE' does not name a type PROTOBUF_NAMESPACE_CLOSE ^ bazel-out/k8-fastbuild/genfiles/lingvo/core/ops/hyps.pb.h:67:1: error: 'PROTOBUF_NAMESPACE_OPEN' does not name a type PROTOBUF_NAMESPACE_OPEN ^ Can I install lingvo with older protobuf?

durson avatar Sep 11 '19 12:09 durson

The protobuf version is set here. You can check the history of that file to see the sha256. If you use an older version, you are on your own in an unsupported path. Other things might break.

drpngx avatar Sep 11 '19 16:09 drpngx