ska-sa / spead2

Library for the Streaming Protocol for Exchange of Astronomical Data (SPEAD)
http://spead2.readthedocs.io/en/latest/
GNU Lesser General Public License v3.0
23 stars 14 forks source link

Compilation failure due to missing dependecy #240

Closed rtobar closed 1 year ago

rtobar commented 1 year ago

While trying to compile spead (both standalone or as a python package), configure detects ibverbs support, but compilation still fails:

[...]
Libraries:

    ibverbs: yes
    ibverbs HW rate limit: yes
[...]

In file included from src/common_loader_rdmacm.cpp:30:
include/spead2/common_loader_rdmacm.h:33:10: fatal error: rdma/rdma_cma.h: No such file or directory
   33 | #include <rdma/rdma_cma.h>

When compiling standalone I can easily bypass this by running ./configure --without-ibv, in which case compilation continues. Compiling the python package requires modifying setup.py to pass the flag to configure though.

I'm running in Ubuntu 22.10 with libibverbs-dev version 42.0-1 installed. If I install librdmacm-dev the problem also goes away.

bmerry commented 1 year ago

Ok, so I guess I need to check for that header as well before enabling the ibverbs support. Since there is an easy workaround (install librdmacm-dev) I'll leave this open for now, since I'm looking into replacing the whole build system.

bmerry commented 1 year ago

@rtobar I think this should be fixed in 4.0.0b1. Let me know if not.

rtobar commented 1 year ago

Works now, thanks!