Errors during compiling Paddle
Created by: JiayiFeng
I get the following errors when I try to compile the latest Paddle:
In file included from src/compiler/php_generator.cc:23:
./src/compiler/php_generator_helpers.h:51:23: error: no member named 'has_php_namespace' in
'google::protobuf::FileOptions'
if (file->options().has_php_namespace()) {
~~~~~~~~~~~~~~~ ^
./src/compiler/php_generator_helpers.h:52:39: error: no member named 'php_namespace' in 'google::protobuf::FileOptions'
oss << ReplaceAll(file->options().php_namespace(), "\\", "/");
~~~~~~~~~~~~~~~ ^
src/compiler/php_generator.cc:47:23: error: no member named 'has_php_namespace' in 'google::protobuf::FileOptions'
if (file->options().has_php_namespace()) {
~~~~~~~~~~~~~~~ ^
src/compiler/php_generator.cc:48:28: error: no member named 'php_namespace' in 'google::protobuf::FileOptions'
return file->options().php_namespace();
~~~~~~~~~~~~~~~ ^
Done processing /Users/baidu/Documents/git_workspace/Paddle/paddle/utils/ThreadLocal.cpp
Done processing TrainerConfigHelper.cpp
Total errors found: 0
Done processing /Users/baidu/Documents/git_workspace/Paddle/paddle/function/CosSimOp.cpp
cpplint: Checking source code style
Done processing /Users/baidu/Documents/git_workspace/Paddle/paddle/function/CropOp.cpp
4 errors generated.
make[3]: *** [/Users/baidu/Documents/git_workspace/Paddle/build/third_party/grpc/src/extern_grpc/objs/opt/src/compiler/php_generator.o] Error 1
make[2]: *** [third_party/grpc/src/extern_grpc-stamp/extern_grpc-build] Error 2
make[1]: *** [CMakeFiles/extern_grpc.dir/all] Error 2