[LU-13855] build: missing dependency check on binutils-devel Created: 05/Aug/20  Updated: 13/Dec/20  Resolved: 13/Dec/20

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Upstream
Fix Version/s: Lustre 2.14.0

Type: Bug Priority: Minor
Reporter: Quentin Bouget Assignee: Neil Brown
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Trying to compile the latest version of Lustre on Centos7 failed with:

# bash autogen.sh && rpm --eval %configure | bash && make -j 16
(...)
gcc -DHAVE_CONFIG_H -I. -I../..   -include /home/user/lustre-release/undef.h -include /home/user/lustre-release/config.h -I/home/user/lustre-release/lnet/include/uapi -I/home/user/lustre-release/lustre/include/uapi -I/home/user/lustre-release/libcfs/include -I/home/user/lustre-release/lnet/utils -I/home/user/lustre-release/lustre/include  -fPIC -D_GNU_SOURCE -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Werror -c -o statmany.o statmany.c
statx.c:53:10: fatal error: libiberty.h: No such file or directory
 #include <libiberty.h>
          ^~~~~~~~~~~~~
compilation terminated.

Installing binutils-devel fixes the issue.



 Comments   
Comment by Peter Jones [ 05/Aug/20 ]

By "latest version" do you mean master or b2_12?

Comment by Quentin Bouget [ 05/Aug/20 ]

I mean master.

Comment by Gerrit Updater [ 12/Aug/20 ]

Neil Brown (neilb@suse.de) uploaded a new patch: https://review.whamcloud.com/39653
Subject: LU-13855 build: Move GLIBC check to where they are needed.
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 0698ca2070d1ff6a7c505db4bb3002b077eb1258

Comment by Andreas Dilger [ 13/Sep/20 ]

I'm not sure where the LU ticket number came from, but the following patch landed to master, and probably should have been under this LU ticket:

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/39749/
Subject: LU-13902 config: add test for /usr/include/libiberty/
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: e5923357b4ec5177e8cc540c5603f0f9df41de1e

Comment by Quentin Bouget [ 15/Sep/20 ]

Thanks!

Comment by Andreas Dilger [ 30/Nov/20 ]

Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/40802
Subject: LU-13855 tests: remove the need for libiberty
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 46ed9ccdefe3c89161ef2df3dbe3b5bf844b1707

Comment by Gerrit Updater [ 13/Dec/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/40802/
Subject: LU-13855 tests: remove the need for libiberty
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 8b02ade2818d86f29965dae61918456330f38d55

Comment by Peter Jones [ 13/Dec/20 ]

Landed for 2.14

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