mpt-status.h:6:28: error: linux/compiler.h: No such file or directory

Posted by admin     Category: Linux Administration

You may receive the “linux/compiler.h: No such file or directory” error message while compiling ‘mpt-status’ tool with the kernel source. The error message looks like

mpt-status.h:6:28: error: linux/compiler.h: No such file or directory
make: *** [mpt-status] Error 1

The workaround of this issue is, to edit the mpt-status.h file which is under the downloaded directory

vi mpt-status.h

and remove the line which states

#include <linux/compiler.h>

Save the file and you should be able to compile ‘mpt-status’ using “make” with the kernel source.

Tags: , , , ,

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-spam image