[LU-16400] lustre build failed with new version glibc (>2.34) Created: 14/Dec/22  Updated: 14/Dec/22

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Yikun Jiang Assignee: WC Triage
Resolution: Unresolved Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 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/



 Comments   
Comment by Yikun Jiang [ 14/Dec/22 ]

GCC: GNU 12

Glibc version: 2.34

OS version: openEuler 22.03 LTS

lustre version: 2.15.1

[1] https://github.com/openhpc/ohpc/blob/3fa0098380e754141b7c83f6468155615daf4954/components/fs/lustre-client/SPECS/lustre.spec

Generated at Sat Feb 10 03:26:41 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.