Mir

cross-compile-chroot.sh can't build for vivid/xenial from zesty [#error This file was generated by a newer version of protoc...]

Bug #1652261 reported by Daniel van Vugt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mir
Triaged
Medium
Unassigned
mir (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

cross-compile-chroot.sh can't build for vivid from zesty. The reason is that Protobuf on the zesty host is v3 and the target requires v2...

./cross-compile-chroot.sh -d vivid -a armhf
...
[ 4%] Building CXX object src/protobuf/CMakeFiles/mirprotobuf.dir/mir_protobuf.pb.cc.o
In file included from /home/dan/bzr/mir/trunk/build-armhf-vivid/src/protobuf/mir_protobuf_wire.pb.cc:5:0:
/home/dan/bzr/mir/trunk/build-armhf-vivid/src/protobuf/mir_protobuf_wire.pb.h:12:2: error: #error This file was generated by a newer version of protoc which is
 #error This file was generated by a newer version of protoc which is
  ^
/home/dan/bzr/mir/trunk/build-armhf-vivid/src/protobuf/mir_protobuf_wire.pb.h:13:2: error: #error incompatible with your Protocol Buffer headers. Please update
 #error incompatible with your Protocol Buffer headers. Please update
  ^
/home/dan/bzr/mir/trunk/build-armhf-vivid/src/protobuf/mir_protobuf_wire.pb.h:14:2: error: #error your headers.
 #error your headers.
  ^

Tags: xcompile
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Workaround:
Do your cross compiling on a xenial machine.

tags: added: xcompile
summary: - cross-compile-chroot.sh can't build for vivid from zesty
+ cross-compile-chroot.sh can't build for vivid/xenial from zesty
summary: - cross-compile-chroot.sh can't build for vivid/xenial from zesty
+ cross-compile-chroot.sh can't build for vivid/xenial from zesty [#error
+ This file was generated by a newer version of protoc...]
Revision history for this message
Michał Sawicz (saviq) wrote :

Syncing task from Mir.

Changed in mir (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.