14
May
mpt-status.h:6:28: error: linux/compiler.h: No such file or directory
Posted by Category: Linux AdministrationYou 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: compiler.h missing + compiling mpt-status, linux/compiler.h: No such file or directory, make: *** [mpt-status] Error 1, mpt-status compile with kernel source, where is compiler.h located?
