[LU-15972] '--disable-utils' makes build of 2.15.0 fail on rhel8.5 Created: 27/Jun/22  Updated: 30/Jun/22

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

Type: Bug Priority: Minor
Reporter: Thomas Roth Assignee: WC Triage
Resolution: Unresolved Votes: 0
Labels: build
Environment:

Alma Linux 8.5, kernel 4.18.0-348.23.1.el8_5.x86_64


Attachments: File config.log     File make.log    
Issue Links:
Duplicate
duplicates LU-15652 Debian dkms install failure Resolved
Related
Epic/Theme: build, ldiskfs
Severity: 3
Epic: server
Rank (Obsolete): 9223372036854775807

 Description   

Building Lustre 2.15 from git under Alma 8.5 using the configure cmd (taken from previous attempts with lustre-ldiskfs-dkms-2.15.0-1.el8)
__

./configure --prefix=/usr --enable-modules --disable-iokit --disable-snmp --disable-doc --disable-tests --disable-maintainer-mode --disable-utils --with-linux=...

fails with

lstddef.h:306:22: error: static declaration of 'copy_file_range' follows non-static declaration

As recommended here:  https://www.mail-archive.com/lustre-discuss@lists.lustre.org/msg16822.html
omitting  

--disable-utils

 in the configure line makes the build successful.



 Comments   
Comment by Andreas Dilger [ 29/Jun/22 ]

Thanks for the report Thomas. It looks like this may already be addressed by patch https://review.whamcloud.com/46836

LU-15652 build: On Debian detect -common kernel headers

Check for a matching /usr/src/linux-headers-<ver>-common/
and update the --with-linux argument accordingly.

Also move LC_GLIBC_SUPPORT_COPY_FILE_RANGE outside
of utils as this also breaks the dkms build on Debian
with 'static' follows 'non static' declairation of
copy_file_range.
Generated at Sat Feb 10 03:22:52 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.