http://bugzilla.opensuse.org/show_bug.cgi?id=1151150
Bug ID: 1151150 Summary: Tensorflow uses protobuf v3.6.1.2 tarball instead of protobuf from distribution Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: bnc-team-screening@forge.provo.novell.com Reporter: guillaume.gardet@arm.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: ---
Tensorflow uses protobuf v3.6.1.2 tarball instead of protobuf provided by Tumbleweed, which leads to a build failure on armNN as Caffe is using protobuf from Tumbleweed (v3.9.1) which confilcts with protobuf v3.6.1.2 from Tensorflow.
[ 368s] [ 52%] Building CXX object CMakeFiles/armnnCaffeParser.dir/src/armnnCaffeParser/RecordByRecordCaffeParser.cpp.o [ 368s] /usr/bin/c++ -DARMCOMPUTENEON_ENABLED -DARMNN_CAFFE_PARSER -DARMNN_SERIALIZER -DARMNN_SERIALIZER_SCHEMA_PATH="/home/abuild/rpmbuild/BUILD/armnn-19.05/src/armnnSerializer/ArmnnSchema.fbs" -DARMNN_TF_LITE_PARSER -DARMNN_TF_LITE_SCHEMA_PATH="/usr/include/tensorflow/lite/schema/schema.fbs" -DARMNN_TF_PARSER -DBOOST_ALL_DYN_LINK -DPROTOBUF_USE_DLLS -DarmnnCaffeParser_EXPORTS -I/home/abuild/rpmbuild/BUILD/armnn-19.05/include -I/home/abuild/rpmbuild/BUILD/armnn-19.05/src/armnnUtils -isystem /usr/lib/python3.7/site-packages/tensorflow/include -isystem /usr/include/half -isystem /home/abuild/rpmbuild/BUILD/armnn-19.05/third-party -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g -pthread -std=c++14 -Wall -Werror -Wold-style-cast -Wno-missing-braces -Wconversion -O2 -g -fPIC -o CMakeFiles/armnnCaffeParser.dir/src/armnnCaffeParser/RecordByRecordCaffeParser.cpp.o -c /home/abuild/rpmbuild/BUILD/armnn-19.05/src/armnnCaffeParser/RecordByRecordCaffeParser.cpp [ 368s] In file included from /usr/include/caffe/proto/caffe.pb.h:37, [ 368s] from /home/abuild/rpmbuild/BUILD/armnn-19.05/src/armnnCaffeParser/RecordByRecordCaffeParser.hpp:12, [ 368s] from /home/abuild/rpmbuild/BUILD/armnn-19.05/src/armnnCaffeParser/RecordByRecordCaffeParser.cpp:6: [ 368s] /usr/include/google/protobuf/port_def.inc:74:2: error: #error PROTOBUF_DEPRECATED was previously defined [ 368s] 74 | #error PROTOBUF_DEPRECATED was previously defined [ 368s] | ^~~~~
As a workaround, Tensorflow has been disabled in armNN until this bug is fixed.
http://bugzilla.opensuse.org/show_bug.cgi?id=1151150
Guillaume GARDET guillaume.gardet@arm.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |cgoll@suse.com, | |guillaume.gardet@arm.com
http://bugzilla.opensuse.org/show_bug.cgi?id=1151150
Guillaume GARDET guillaume.gardet@arm.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Tensorflow uses protobuf |Tensorflow uses protobuf |v3.6.1.2 tarball instead of |v3.6.1.2 tarball instead of |protobuf from distribution |protobuf from distribution | |- Breaks Arm NN
http://bugzilla.opensuse.org/show_bug.cgi?id=1151150 http://bugzilla.opensuse.org/show_bug.cgi?id=1151150#c2
Guillaume GARDET guillaume.gardet@arm.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #2 from Guillaume GARDET guillaume.gardet@arm.com --- Fixed in https://build.opensuse.org/request/show/732855