Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-6547

build errors building against recent 4.1-rc1 kernel on Ubuntu 15.04 building linux-tracefile

    XMLWordPrintable

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

      Attachments

        Issue Links

          Activity

            People

              wc-triage WC Triage
              colinianking Colin Ian King
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: