[Bug 308829] [NEW] protobuf 2.0.2-1 (universe) FTBFS on ia64 and sparc

Launchpad Bug Tracker 308829 at bugs.launchpad.net
Wed Dec 17 03:58:15 GMT 2008


You have been subscribed to a public bug by Manny Vindiola (serialorder):

merge of protobuf 2.0.2-1 (universe) from debian unstable FTBFS on ia64
and sparc architectures

ia64 build log:
http://launchpadlibrarian.net/20275404/buildlog_ubuntu-jaunty-ia64.protobuf_2.0.2-1ubuntu1_FAILEDTOBUILD.txt.gz

sparc build log:
http://launchpadlibrarian.net/20314713/buildlog_ubuntu-jaunty-sparc.protobuf_2.0.2-1ubuntu1_FAILEDTOBUILD.txt.gz

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://codereview.appspot.com/8690/show . I had to adapt the patch a little bit because their source is a later revision than the one in the debian package.

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(RepeatedField<bool>) is 20 on 64-bit sparc with GCC 3.4.6.  This is
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://code.google.com/p/protobuf/source/detail?spec=svn72&r=72

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.

** Affects: protobuf (Ubuntu)
     Importance: Undecided
         Status: Confirmed

-- 
protobuf 2.0.2-1 (universe) FTBFS on ia64 and sparc
https://bugs.launchpad.net/bugs/308829
You received this bug notification because you are a member of Ubuntu Sponsors for universe, which is a direct subscriber.



More information about the Ubuntu-universe-sponsors mailing list