# Unable to build dgraph/badger lib on s390x hardware architecture

**URL:** <https://discuss.dgraph.io/t/unable-to-build-dgraph-badger-lib-on-s390x-hardware-architecture/14533>\
**Category:** Badger\
**Created:** [June 9, 2021, 3:15pm UTC](https://discuss.dgraph.io/t/unable-to-build-dgraph-badger-lib-on-s390x-hardware-architecture/14533 "2021-06-09T15:15:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jyg007](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/jyg007/32/8376_2.png) [@jyg007](https://discuss.dgraph.io/u/jyg007)\
**Post date:** [June 9, 2021, 3:15pm UTC](https://discuss.dgraph.io/t/unable-to-build-dgraph-badger-lib-on-s390x-hardware-architecture/14533/1 "2021-06-09T15:15:55Z")

</div>

Dpgraph-io/badder v3.2103.0 depends on [github.com/dgraph-io/ristretto](http://github.com/dgraph-io/ristretto) v0.0.4-0.20210309073149-3836124cdc5a

the +s390x pragma is missing in the ./pkg/mod/github.com/dgraph-io/ristretto@v0.0.4-0.20210309073149-3836124cdc5a/z/simd/search.go imported file.

It should be  
// +build 386 s390x arm armbe arm64 mips mipsle mips64p32 mips64p32le ppc ppc64 ppc64le sparc

and not only  
// +build 386 arm armbe arm64 mips mipsle mips64p32 mips64p32le ppc ppc64 ppc64le sparc

Could it be corrected ? Thank you much. The pb applies to all ristretto 0.0.4 flavor.

---

<div class="post-metadata">

**Author:** ![Naman](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/naman/32/3498_2.png) [@Naman](https://discuss.dgraph.io/u/Naman)\
**Post date:** [June 17, 2021, 7:57am UTC](https://discuss.dgraph.io/t/unable-to-build-dgraph-badger-lib-on-s390x-hardware-architecture/14533/2 "2021-06-17T07:57:56Z")

</div>

Hey @jyg007 , it would be great if you could send a PR to fix this. 😃
