protobuf 2.0.2-1 (universe) FTBFS on ia64 and sparc
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
protobuf (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
merge of protobuf 2.0.2-1 (universe) from debian unstable FTBFS on ia64 and sparc architectures
ia64 build log:
http://
sparc build log:
http://
I have tracked down the problems from upstream and have patched the appropriate files. A description follows.
ia64:
gtest attempts to perform death tests using clone(2). clone(2) is not available on ia64 architectures and as a result build fails. gtest developers provide a fix that disables death tests if the system is an ia64 architecture. The patch is available here: http://
sparc:
Fixed alignment issue that caused bus errors on platforms like sparc which
require all memory reads to be aligned. Specifically, it turns out that
sizeof(
strange, since one of RepeatedField's members is a pointer, which I thought
meant that it had to be 64-bit aligned, which means its size should be a
multiple of 64 bits. But, 20 is not a multiple of 8. I don't understand why
this is the case, but if this is possible, then DynamicMessage's strategy of
sorting fields in descending order by size and then tightly packing doesn't
work. To fix this, I got rid of the sort step and instead added code that
aligns each field's offset appropriately based on the field's size.
Fix taken directly from upstream:
http://
I am running i386 architecture so I have not been able to test build these changes but the package continues to build correctly on i386.
Related branches
Changed in protobuf: | |
status: | New → Confirmed |
I have attached the debdiff between ubuntu1 and ubunt2.
builds correctly on i386
unable to test on sparc of ia64