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

Build issue with gcc 4.9.2, v2_7_52, in sendfile_copy

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.8.0
    • Lustre 2.7.0
    • Ubuntu Vivid 15.04
    • 3
    • 9223372036854775807

    Description

      Building with gcc 4.9.2 on Ubuntu 15.04 I get the following build error:

      libtool: link: gcc -g -Wall -fPIC -D_GNU_SOURCE -g -O2 -Werror -o llapi_fid_test llapi_fid_test.o ../../lustre/utils/liblustreapi.a
      gcc -DHAVE_CONFIG_H -I. -I../.. -D_LARGEFILE64_SOURCE=1 -I/opt/lam/include -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUSTRE_UTILS -include /home/king/lustre/no-deb-build/lustre-release/config.h -I/home/king/lustre/no-deb-build/lustre-release/libcfs/include -I/home/king/lustre/no-deb-build/lustre-release/lnet/include -I/home/king/lustre/no-deb-build/lustre-release/lustre/include -g -Wall -fPIC -D_GNU_SOURCE -g -O2 -Werror -MT sendfile_grouplock.o -MD -MP -MF .deps/sendfile_grouplock.Tpo -c -o sendfile_grouplock.o sendfile_grouplock.c
      In file included from /usr/include/fcntl.h:279:0,
      from sendfile_grouplock.c:60:
      In function ‘open’,
      inlined from ‘sendfile_copy’ at sendfile_grouplock.c:229:9:
      /usr/include/x86_64-linux-gnu/bits/fcntl2.h:50:4: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
      __open_missing_mode ();
      ^
      Makefile:1195: recipe for target 'sendfile_grouplock.o' failed

      I'm guessing that the newer versions of gcc are more pedantic and catching this open + O_CREATE without mode flag issue.

      Attached is a patch to fix this build issue.

      Attachments

        Activity

          People

            bogl Bob Glossman (Inactive)
            colinianking Colin Ian King
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: