pfnet-research / menoh

Menoh: fast DNN inference library with multiple programming language support
MIT License
279 stars 34 forks source link

build error when `LINK_STATIC_LIBPROTOBUF=ON` and `make -j` are used #141

Closed msakai closed 6 years ago

msakai commented 6 years ago
$ cmake -DLINK_STATIC_LIBPROTOBUF=ON .. && make -j4
...
Scanning dependencies of target gen_onnx_proto
Scanning dependencies of target Protobuf
[  1%] Running gen_proto.py on onnx/onnx.in.proto
[  2%] Creating directories for 'Protobuf'
[  3%] Performing download step (download, verify and extract) for 'Protobuf'
-- Downloading...
   dst='/Users/sakai/Menoh/build/downloads/protobuf-cpp-3.6.1.tar.gz'
   timeout='none'
-- Using src='https://github.com/protocolbuffers/protobuf/releases/download/v3.6.1/protobuf-cpp-3.6.1.tar.gz'
Processing /Users/sakai/Menoh/external/onnx/onnx/onnx.in.proto
Writing /Users/sakai/Menoh/build/external/onnx/onnx/onnx.proto
Writing /Users/sakai/Menoh/build/external/onnx/onnx/onnx.proto3
generating /Users/sakai/Menoh/build/external/onnx/onnx/onnx_pb.py
[  4%] Running C++ protocol buffer compiler on /Users/sakai/Menoh/build/external/onnx/onnx/onnx.proto
/bin/sh: ../../protobuf-3.6.1/bin/protoc: No such file or directory
make[2]: *** [external/onnx/onnx/onnx.pb.cc] Error 127
make[1]: *** [external/onnx/CMakeFiles/gen_onnx_proto.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
-- [download 0% complete]
...
-- [download 100% complete]
-- verifying file...
       file='/Users/sakai/Menoh/build/downloads/protobuf-cpp-3.6.1.tar.gz'
-- Downloading... done
-- extracting...
     src='/Users/sakai/Menoh/build/downloads/protobuf-cpp-3.6.1.tar.gz'
     dst='/Users/sakai/Menoh/build/protobuf-3.6.1/src/Protobuf'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[  6%] No patch step for 'Protobuf'
[  7%] No update step for 'Protobuf'
[  8%] Performing configure step for 'Protobuf'
...

full log