Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

build release version of release/0.11.0 failed on Mac

Open QiJune opened this issue 8 years ago • 7 comments

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

QiJune avatar Dec 11 '17 02:12 QiJune

Please use make framework_py_proto to get the complete error log.

reyoung avatar Dec 11 '17 02:12 reyoung

@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

QiJune avatar Dec 11 '17 02:12 QiJune

Interesting.

Maybe you need use a local protobuf, not build protobuf by Paddle

reyoung avatar Dec 11 '17 03:12 reyoung

@reyoung After I install protobuf, the build is successful.

brew install protobuf

QiJune avatar Dec 11 '17 03:12 QiJune

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

putcn avatar Jan 04 '18 06:01 putcn

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.

putcn avatar Jan 04 '18 06:01 putcn

I'm building in Mac with cmake 3.11 and throw the same error

zzhzz avatar May 17 '18 14:05 zzhzz