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

While compiling ‘mpt-status’ tool with the kernel source, you may receive a ‘linux/compiler.h: No such file or directory’ message.

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

The reason is the missing compiler.h header file which isn’t all that necessary. The fix is to edit the mpt-status.h file which is under the extracted 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.

This entry was posted on Friday, May 14th, 2010 and is filed under Linux Administration. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Comments are closed.