Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make error #91

Open
zazeje opened this issue Aug 27, 2021 · 2 comments
Open

make error #91

zazeje opened this issue Aug 27, 2021 · 2 comments

Comments

@zazeje
Copy link

zazeje commented Aug 27, 2021

cmake 3.21.2
libprotoc 3.17.3
ubuntu 16.04 32-bit
[ 83%] Building CXX object tools/CMakeFiles/convert_tool.dir/caffe/caffe_serializer.cpp.o
/home/user/tengine/Tengine-Convert-Tools/tools/caffe/caffe_serializer.cpp: In member function ‘bool TEngine::CaffeSingle::LoadBinaryFile(const char*, te_caffe::NetParameter&)’:
/home/user/tengine/Tengine-Convert-Tools/tools/caffe/caffe_serializer.cpp:169:57: error: no matching function for call to ‘google::protobuf::io::CodedInputStream::SetTotalBytesLimit(int, int)’
coded_input.SetTotalBytesLimit(1024 << 20, 512 << 20);
^
In file included from /home/user/tengine/Tengine-Convert-Tools/tools/caffe/caffe_serializer.cpp:30:0:
/usr/local/include/google/protobuf/io/coded_stream.h:402:8: note: candidate: void google::protobuf::io::CodedInputStream::SetTotalBytesLimit(int)
void SetTotalBytesLimit(int total_bytes_limit);
^
/usr/local/include/google/protobuf/io/coded_stream.h:402:8: note: candidate expects 1 argument, 2 provided
At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-deprecated-register’
cc1plus: warning: unrecognized command line option ‘-Wno-unused-command-line-argument’
tools/CMakeFiles/convert_tool.dir/build.make:131: recipe for target 'tools/CMakeFiles/convert_tool.dir/caffe/caffe_serializer.cpp.o' failed
make[2]: *** [tools/CMakeFiles/convert_tool.dir/caffe/caffe_serializer.cpp.o] Error 1
CMakeFiles/Makefile2:181: recipe for target 'tools/CMakeFiles/convert_tool.dir/all' failed
make[1]: *** [tools/CMakeFiles/convert_tool.dir/all] Error 2
Makefile:135: recipe for target 'all' failed
make: *** [all] Error 2

...
how to fix this bug?

@GuideWsp
Copy link

I meet same error, di you fix this bug?

@littleFlyBoy
Copy link

Same here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants