# Ibd() export error

**URL:** <https://discuss.hail.is/t/ibd-export-error/2779>\
**Category:** Hail Query & hailctl\
**Created:** [August 10, 2022, 5:05pm UTC](https://discuss.hail.is/t/ibd-export-error/2779 "2022-08-10T17:05:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CuriousGeneticist](https://avatars.discourse-cdn.com/v4/letter/c/6f9a4e/32.png) [@CuriousGeneticist](https://discuss.hail.is/u/CuriousGeneticist)\
**Post date:** [August 10, 2022, 5:05pm UTC](https://discuss.hail.is/t/ibd-export-error/2779/1 "2022-08-10T17:05:05Z")

</div>

I am trying to run `ibd` on my MatrixTable with `ibd = hl.identity_by_descent(mt)`, followed by `ibd.export("ibd.tsv")` to export it. However, I ran into this error

```python
Hail version: 0.2.97-937922d7f46c
Error summary: NoClassDefFoundError: Could not initialize class is.hail.methods.IBSFFI$

```

Can I get some advice on how to resolve this please? Thank you!

---

<div class="post-metadata">

**Author:** ![tpoterba](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/tpoterba/32/61_2.png) [@tpoterba](https://discuss.hail.is/u/tpoterba)\
**Post date:** [August 13, 2022, 11:47am UTC](https://discuss.hail.is/t/ibd-export-error/2779/2 "2022-08-13T11:47:49Z")

</div>

This is an error coming from our precompiled native library for a fast implementation of IBD genotype comparisons. There’s a mismatch between the architecture our library is compiled for, and your system architecture. You can fix this by recompiling Hail yourself, as here:

> [@Native compilation lz4 issue on CentOS 7.8.2003](https://discuss.hail.is/t/native-compilation-lz4-issue-on-centos-7-8-2003/2076):
>
> Hi guys, I am wondering if anyone has successfully compiled Hail 0.2 on CentOS7? We have enabled devtoolset-8 which provides gcc 8.3.1, and the lz4 libraries and header files have been installed $ ls /usr/lib64/liblz4.so /usr/lib64/liblz4.so $ ls /usr/include/lz4.h /usr/include/lz4.h But I still got error: $ make install-on-cluster HAIL\_COMPILE\_NATIVES=1 SCALA\_VERSION=2.12 SPARK\_VERSION=3.1.1 gmake -C src/main/c prebuilt gmake[1]: Entering directory ‘/share/apps/luffy/binf/hail/hail/sr…
