build release version of release/0.11.0 failed on Mac
The cmake config is:
cmake .. -DCMAKE_BUILD_TYPE=Release -DWITH_GOLANG=OFF -DPYTHON_EXECUTABLE=/usr/local/bin/python2.7 -DPYTHON_LIBRARY=/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib
The log is following:
[ 15%] Built target paddle_proto
paddle/framework/CMakeFiles/framework_py_proto.dir/build.make:60: *** target pattern contains no `%'. Stop.
make[1]: *** [paddle/framework/CMakeFiles/framework_py_proto.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 15%] Linking CXX static library libddim.a
cpplint: Checking source code style
[ 15%] Linking CXX static library libframework_proto.a
Please use make framework_py_proto to get the complete error log.
@reyoung The log is following:
➜ build git:(release/0.11.0) make framework_py_proto
Built target framework_py_proto_init
paddle/framework/CMakeFiles/framework_py_proto.dir/build.make:60: *** target pattern contains no `%'. Stop.
make[2]: *** [paddle/framework/CMakeFiles/framework_py_proto.dir/all] Error 2
make[1]: *** [paddle/framework/CMakeFiles/framework_py_proto.dir/rule] Error 2
make: *** [framework_py_proto] Error 2
Interesting.
Maybe you need use a local protobuf, not build protobuf by Paddle
@reyoung After I install protobuf, the build is successful.
brew install protobuf
tried brew install protobuf, not working in my case, same error
Scanning dependencies of target framework_py_proto_init
[ 56%] Built target framework_py_proto_init
paddle/framework/CMakeFiles/framework_py_proto.dir/build.make:60: *** target pattern contains no `%'. Stop.
make[1]: *** [paddle/framework/CMakeFiles/framework_py_proto.dir/all] Error 2
make: *** [all] Error 2
found the root cause of this issue, if you are building in Mac, make sure your cmake is later than 3.4 or it will throw this error.
I'm building in Mac with cmake 3.11 and throw the same error