ibm-capi / libcxl

Library to abstract the userspace cxl (CAPI) Linux kernel API
Apache License 2.0
35 stars 16 forks source link

Build fails on Redhat-7.5 #30

Open santoshs opened 6 years ago

santoshs commented 6 years ago
sudo yum install libcxl-devel dapl-devel

A make gives the following error.

...
make -C hxeocapi
make[2]: Entering directory `/home/santosh/HTX/bin/hxeocapi'
cc -D__HTX_LINUX__ -DTRUE=1 -DFALSE=0 -D__64BIT__ -D__HTX_LE__ -O2 -g -D_GNU_SOURCE -D__HTX_LINUX__ -I/usr/local/include -I./ -I/usr/include/ -I/home/santosh/HTX//export/ppc64le//include/ -c get_rule.c -o get_rule.o
In file included from hxeocapi.h:23:0,
                 from get_rule.c:22:
memcpy.h:26:21: fatal error: libocxl.h: No such file or directory
 #include <libocxl.h>
                     ^
compilation terminated.
make[2]: *** [get_rule.o] Error 1
make[2]: Leaving directory `/home/santosh/HTX/bin/hxeocapi'
make[1]: *** [hxeocapi] Error 2
make[1]: Leaving directory `/home/santosh/HTX/bin'
make: *** [bin] Error 2

There is no file name libocxl in /usr/include, changing the include to libcxl.h leads to more errors.

fbarrat commented 6 years ago

libcxl is for capi1 (power8) or capi2 (power9) libocxl is for opencapi Based on the name of your source file, I'm guessing you're interested in opencapi. Can you confirm? If so, then RHEL7.5-ALT doesn't support opencapi. Support is added in RHEL7.6-ALT (a.k.a Pegas 1.2). You will also need to make sure the libocxl package is installed.