[LU-13787] Build failure libcfs needed by snmp Created: 15/Jul/20  Updated: 17/Feb/21  Resolved: 07/Aug/20

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

Type: Bug Priority: Minor
Reporter: Gian-Carlo Defazio Assignee: James A Simmons
Resolution: Fixed Votes: 0
Labels: llnl
Environment:

Centos 7.8 TOSS 3.6-3 (RHEL 7.8)


Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Lustre fails to build while in the snmp directory with the error

make[3]: *** No rule to make target `../libcfs/libcfs/libcfs.la', needed by `liblustresnmp.la'.  Stop.

This can be fixed by just changing the build order in autoMakefile.am by putting libcfs before snmp for both SUBDIRS and DIST_SUBDIRS. However, I don't get a build failure for Centos 7.7, and I don't see everyone's builds failing here, so I suspect I'm not really understanding the problem. Also libcfs came before snmp until change 37971.

So the questions are:

Is there some other reason why the build is failing that explains why it doesn't fail for other environments?

Is there a reason that the build order was changed, putting snmp before libcfs?



 Comments   
Comment by John Hammond [ 15/Jul/20 ]

Let's delete the snmp directory and see if anyone notices.

Comment by Andreas Dilger [ 15/Jul/20 ]

Gian-Carlo, I'm not aware of any reason that the order of these lines were changed, but I've added James to the CC list here to get his feedback.

Feel free to submit a patch that reverts to the original order in autoMakefile.am with a label:

Fixes: 742897a967cf ("LU-13274 uapi: make lnet UAPI headers C99 compliant")

and add James and me as reviewers.

If this fixes your build issue and does not break any of the Jenkins builds, then there shouldn't be any problem to land it. James is generally very responsive, so I'm sure he'll comment if there was a good reason for the change.

Comment by Gerrit Updater [ 15/Jul/20 ]

James Simmons (jsimmons@infradead.org) uploaded a new patch: https://review.whamcloud.com/39388
Subject: LU-13787 build: fix snmp / libcfs build order
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 345ef7a0722b9e73ccfa03d6b4e6cb949ea02cf1

Comment by James A Simmons [ 15/Jul/20 ]

I can reproduce this only on Ubuntu20 with make -j X so its a rare corner case for the build system. Easy fix. Sorry it was my OCD for ordering things that broke this.

Comment by Gian-Carlo Defazio [ 15/Jul/20 ]

I was able to get it to fail with only a single make thread, but on Centos 7.8. Thanks for the fix.

Comment by Gerrit Updater [ 07/Aug/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/39388/
Subject: LU-13787 build: fix snmp / libcfs build order
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: fb01543905d3d1bd579338b3f280d02b22f6aec3

Comment by Peter Jones [ 07/Aug/20 ]

Landed for 2.14

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