Details
-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
None
-
None
-
1
-
9223372036854775807
Description
Building against a recent kernel the -Werror option in the Rules file is catching a re-definition of CONFIG_LNET_MAX_PAYLOAD and causing the build to fail.
make[3]: Entering directory '/usr/src/linux-headers-4.1.0-rc1+'
LD /home/king/lustre/lustre-release/built-in.o
LD /home/king/lustre/lustre-release/libcfs/built-in.o
LD /home/king/lustre/lustre-release/libcfs/libcfs/built-in.o
CC [M] /home/king/lustre/lustre-release/libcfs/libcfs/linux/linux-tracefile.o
In file included from <command-line>:0:0:
/home/king/lustre/lustre-release/config.h:26:0: error: "CONFIG_LNET_MAX_PAYLOAD" redefined [-Werror]
#define CONFIG_LNET_MAX_PAYLOAD LNET_MTU
^
In file included from /usr/src/linux-headers-4.1.0-rc1+/include/linux/kconfig.h:4:0,
from <command-line>:0:
include/generated/autoconf.h:4174:0: note: this is the location of the previous definition
#define CONFIG_LNET_MAX_PAYLOAD 1048576
^
cc1: all warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/home/king/lustre/lustre-release/libcfs/libcfs/linux/linux-tracefile.o' failed