[Pkg-mongodb-maintainers] Bug#848298: Bug#848298: mongodb: Build for s390x

Apollon Oikonomopoulos apoikos at debian.org
Mon Jan 2 15:19:09 UTC 2017

Hi Jeremy, Lászlo,

On 14:46 Sun 25 Dec     , Jeremy Bicha wrote:
> Merry Christmas!
> On Sun, Dec 25, 2016 at 10:05 AM, László Böszörményi (GCS)
> <gcs at debian.org> wrote:
> >  Just for the record, Apollon packaged 3.4.1-3 and it just compiled on
> > s390x in experimental.
> 3.4.1-2 built fine for s390x on Launchpad for Ubuntu:
> https://launchpad.net/ubuntu/+source/mongodb/1:3.4.1-2/
> So I tried without disabling hardware crc32 on s390x. It built but
> crashed when it tried to run the tests.
> https://launchpad.net/ubuntu/+source/mongodb/1:3.4.1-2ubuntu2

It looks like hardware CRC32 support is not reliable/deterministic on 
non-x86 platforms and largely depends on the build environment and the 
runtime environment as well. Debian's s390x buildd's for instance don't 
seem to support the lay instruction, while Ubuntu's might do so.

I think this part needs to be worked out upstream and has to offer 
better runtime detection and/or use more portable (?!) asm instructions.

> (I had the same build problem with arm64 with 1:3.4.1-1)
> Attached are the changes I made if you want to apply them in Debian.
> In the second patch, I went ahead and left hardware crc32 disabled on
> s390x even on Ubuntu, but I showed how we could turn it on if we
> wanted to. I think the s390x patch could be submitted upstream.

Great, thanks! I'll have a look in the next couple of days and post a 

We still need to figure out whether 3.4 in Stretch is a good idea :)

Regards and best wishes for a Happy New Year!

More information about the Pkg-mongodb-maintainers mailing list