[LU-14460] lustre master build fail on ppcle64 Created: 22/Feb/21  Updated: 09/Nov/21  Resolved: 11/Mar/21

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

Type: Bug Priority: Minor
Reporter: Minh Diep Assignee: Feng Lei
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-10973 LNet Unit Test Framework (LUTF) Autot... Open
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

build master on ppc64le with CentOS 8.3 failed

libtool: link: (cd ".libs" && rm -f "liblnetconfig.so.4" && ln -s "liblnetconfig.so.4.0.0" "liblnetconfig.so.4")
libtool: link: (cd ".libs" && rm -f "liblnetconfig.so" && ln -s "liblnetconfig.so.4.0.0" "liblnetconfig.so")
libtool: link: (cd .libs/liblnetconfig.lax/libcfs.a && ar x "/tmp/rpmbuild-lustre-jenkins-0CfRHsoL/BUILD/lustre-2.14.0/lnet/utils/lnetconfig/../../../libcfs/libcfs/.libs/libcfs.a")
libtool: link: ar cru .libs/liblnetconfig.a  liblnetconfig_la-liblnetconfig.o liblnetconfig_la-liblnetconfig_lnd.o liblnetconfig_la-cyaml.o  .libs/liblnetconfig.lax/libcfs.a/libcfs_la-l_ioctl.o .libs/liblnetconfig.lax/libcfs.a/libcfs_la-nidstrings.o .libs/liblnetconfig.lax/libcfs.a/libcfs_la-param.o .libs/liblnetconfig.lax/libcfs.a/libcfs_la-parser.o .libs/liblnetconfig.lax/libcfs.a/libcfs_la-string.o 
libtool: link: ranlib .libs/liblnetconfig.a
libtool: link: rm -fr .libs/liblnetconfig.lax
libtool: link: ( cd ".libs" && rm -f "liblnetconfig.la" && ln -s "../liblnetconfig.la" "liblnetconfig.la" )
lnetctl.c: In function 'jt_calc_service_id':
lnetctl.c:275:39: error: format '%llx' expects argument of type 'long long unsigned int', but argument 2 has type '__u64' {aka 'long unsigned int'} [-Werror=format=]
  printf("service id:\n    value: 0x%llx\n", service_id);
                                    ~~~^     ~~~~~~~~~~
                                    %lx
libtool: link: gcc -fPIC -D_GNU_SOURCE -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -funwind-tables -fstack-clash-protection -g -O2 -Werror -Wl,-z -Wl,relro -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z -Wl,relro -o wirecheck wirecheck.o  -L. -lkeyutils
libtool: link: gcc -fPIC -D_GNU_SOURCE -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -funwind-tables -fstack-clash-protection -g -O2 -Werror -Wl,-z -Wl,relro -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z -Wl,relro -o .libs/routerstat routerstat.o  -L. ../../lnet/utils/lnetconfig/.libs/liblnetconfig.so -L../../../libcfs/libcfs -lyaml -lm -lreadline -lkeyutils 


 Comments   
Comment by James A Simmons [ 24/Feb/21 ]

A fix for this exist in https://review.whamcloud.com/#/c/38086. 

Comment by Feng Lei [ 25/Feb/21 ]

Does it mean that I don't need to work on it repeatly to avoid confliction in the future and duplicate this issue to LU-10973?

Comment by Minh Diep [ 25/Feb/21 ]

flei, I think we just need to push a patch with that one line change and build on ppc64le

Comment by Gerrit Updater [ 25/Feb/21 ]

Feng, Lei (flei@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/41755
Subject: LU-14460 lnet: fix mismatched printf format
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 11b2cf598559dfa63ecb4b6ec735806adf6f861b

Comment by Gerrit Updater [ 10/Mar/21 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/41755/
Subject: LU-14460 lnet: fix mismatched printf format
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 58e05ff5af3d1fcd7b059dc56955a5f8d94db4ab

Comment by Peter Jones [ 11/Mar/21 ]

Landed for 2.15

Comment by Gerrit Updater [ 06/Jul/21 ]

Gian-Carlo DeFazio (defazio1@llnl.gov) uploaded a new patch: https://review.whamcloud.com/44162
Subject: LU-14460 lnet: fix mismatched printf format
Project: fs/lustre-release
Branch: b2_14
Current Patch Set: 1
Commit: 19fbd5aef6f30723904522c334693bc21a1822fa

Comment by Gerrit Updater [ 09/Nov/21 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/44162/
Subject: LU-14460 lnet: fix mismatched printf format
Project: fs/lustre-release
Branch: b2_14
Current Patch Set:
Commit: 974d2cf8f84c5a5a57bd1d7b97497f36a465a221

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