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

build fails after configure --disable-modules

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.11.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      This is on current master, CentOS 7.

      $ sh autogen.sh && ./configure --disable-modules
      ...
      $ make
      ...
      gcc -DHAVE_CONFIG_H -I. -I../..  -D_GNU_SOURCE -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLUSTRE_UTILS=1 -include /work/lustre-release/undef.h -include /work/lustre-release/config.h -I/work/lustre-release/libcfs/include -I/work/lustre-release/lnet/include -I/work/lustre-release/lustre/include  -fPIC -g -O2 -Wall -Werror -MT libcfsutil_a-parser.o -MD -MP -MF .deps/libcfsutil_a-parser.Tpo -c -o libcfsutil_a-parser.o `test -f 'util/parser.c' || echo './'`util/parser.c
      In file included from <command-line>:0:0:
      /usr/include/stdc-predef.h:40:1: fatal error: /work/lustre-release/undef.h: No such file or directory
       #endif
       ^
      compilation terminated.make[4]: *** [libcfsutil_a-parser.o] Error 1
      make[4]: Leaving directory `/work/lustre-release/libcfs/libcfs'
      make[3]: *** [all-recursive] Error 1
      make[3]: Leaving directory `/work/lustre-release/libcfs/libcfs'
      make[2]: *** [all-recursive] Error 1
      make[2]: Leaving directory `/work/lustre-release/libcfs'
      make[1]: *** [all-recursive] Error 1
      make[1]: Leaving directory `/work/lustre-release'
      make: *** [all] Error 2
      

      The workaround is to do make undef.h.

      Attachments

        Activity

          People

            dmiter Dmitry Eremin (Inactive)
            rread Robert Read
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: