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

lustre build failed with new version glibc (>2.34)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      
      [  600s] Making all in tests
      [  600s] rwv.c: In function 'main':
      [  600s] rwv.c:221:8: error: 'writev' specified size 18446744073709551600 exceeds maximum object size 9223372036854775807 [-Werror=stringop-overflow=]
      [  600s]   221 |   rc = writev(fd, iov, iovcnt);
      [  600s]       |        ^~~~~~~~~~~~~~~~~~~~~~~
      [  600s] In file included from rwv.c:38:
      [  600s] /usr/include/sys/uio.h:52:16: note: in a call to function 'writev' declared with attribute 'read_only (2, 3)'
      [  600s]    52 | extern ssize_t writev (int __fd, const struct iovec *__iovec, int __count)
      [  600s]       |                ^~~~~~
      [  600s] rwv.c:229:8: error: 'readv' specified size 18446744073709551600 exceeds maximum object size 9223372036854775807 [-Werror=stringop-overflow=]
      [  600s]   229 |   rc = readv(fd, iov, iovcnt);
      [  600s]       |        ^~~~~~~~~~~~~~~~~~~~~~
      [  600s] In file included from rwv.c:38:
      [  600s] /usr/include/sys/uio.h:41:16: note: in a call to function 'readv' declared with attribute 'read_only (2, 3)'
      [  600s]    41 | extern ssize_t readv (int __fd, const struct iovec *__iovec, int __count)
      [  600s]       |                ^~~~~
      [  600s] rwv.c:244:9: error: 'writev' specified size 18446744073709551600 exceeds maximum object size 9223372036854775807 [-Werror=stringop-overflow=]
      [  600s]   244 |    rc = writev(out_fd, iov, iovcnt);
      [  600s]       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      [  600s] In file included from rwv.c:38:
      [  600s] /usr/include/sys/uio.h:52:16: note: in a call to function 'writev' declared with attribute 'read_only (2, 3)'
      [  600s]    52 | extern ssize_t writev (int __fd, const struct iovec *__iovec, int __count)
      [  600s]       |                ^~~~~~
      [  600s] cc1: all warnings being treated as errors
      [  600s] make[4]: *** [Makefile:1507: rwv.o] Error 1
      [  600s] make[4]: *** Waiting for unfinished jobs....

      Related glibc patch: https://github.com/bminor/glibc/commit/26492c0a14966c32c43cd6ca1d0dca5e62c6cfef

      Solution like: https://lore.kernel.org/all/20220109205748.4127032-1-philipp.tomsich@vrull.eu/

      Attachments

        Activity

          People

            wc-triage WC Triage
            yikunkero Yikun Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: