Skip to content

Common issues

Kirk Morrow edited this page Feb 25, 2015 · 4 revisions

libcxl.h:21:22: error: misc/cxl.h: No such file or directory

If you hit this fail on compile it is because you don't have the latest kernel-headers package that contains the file /usr/include/misc/cxl.h.

For some distributions it may be as simple as installing the kernel headers package and after it's installed you'll be able to compile.

  • Ubuntu 14.10 or later:

    sudo apt-get install linux-libc-dev

Other distributions may package the file elsewhere. If your distribution uses RPM packages you could search for "cxl.h" here.

You don't have root access and can not install kernel headers package

In this case you could download the latest kernel 3.18 or later source here. Extract the file {kernel-version}/include/uapi/misc/cxl.h from tarball and put it in your build directory instead.

tar -zxvf linux-3.18-tar.gz linux-3.18-tar.gz/include/uapi/misc/cxl.h

If you do this you'll have to edit libcxl.h as described below.

Change this:

#include <misc/cxl.h>

To this:

#include "cxl.h"
Clone this wiki locally