[LU-12898] building lustre utils on ppc64le fails with error format expects llu but argument is __u64 Created: 22/Oct/19  Updated: 13/Jan/20  Resolved: 03/Jan/20

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

Type: Bug Priority: Minor
Reporter: Olaf Faaland Assignee: Olaf Faaland
Resolution: Fixed Votes: 0
Labels: llnl, llnlfixready

Issue Links:
Duplicate
duplicates LU-12705 build fails on power9 client Resolved
Related
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Several utilities fail to build with errors like this one:

BUILDSTDERR: libmount_utils_zfs.c: In function 'zfs_mkfs_opts':
BUILDSTDERR: libmount_utils_zfs.c:573:5: error: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type '__u64' [-Werror=format=]
BUILDSTDERR:      mop->mo_device_kb * 1024);

utilities affected:

lustre/utils/ll_decode_filter_fid.c
lustre/utils/llog_reader.c
lustre/utils/lr_reader.c
lustre/utils/lsnapshot.c
lustre/utils/lustre_lfsck.c


 Comments   
Comment by Olaf Faaland [ 22/Oct/19 ]

I am working through them and will have a patch, after I rebase on master.

Comment by Gerrit Updater [ 23/Oct/19 ]

Olaf Faaland-LLNL (faaland1@llnl.gov) uploaded a new patch: https://review.whamcloud.com/36558
Subject: LU-12898 utils: %llu mismatch with type __u64 on ppcle64
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 79f55c12a3f78495d56a66884b84f6f3f4c97f3a

Comment by Peter Jones [ 23/Oct/19 ]

Thanks Olaf

Comment by Andreas Dilger [ 24/Oct/19 ]

It looks like this is a dupe of LU-12705, which already has a patch on master. Rather than making a new patch, the patches from that ticket should be cherry-picked to b2_12

Comment by Andreas Dilger [ 24/Oct/19 ]

Hmm, it looks like those patches are already backported to b2_12... Do the same compile problems exist on master, or only b2_12? Typically we do not accept patches for only LTS branches until they have been landed for master first, so that we don't lose fixes going forward.

Comment by Andreas Dilger [ 24/Oct/19 ]

Doh! Your patch is for master... For some reason I thought the patch was pushed against b2_12 only. Too early I guess.

Comment by Andreas Dilger [ 27/Oct/19 ]

I was trying to understand why we didn't see these problems with LU-12705, but it looks like these compile warnings are all in the server code, which we do not build/test on PPC.

Olaf, are you trying to actually use PPC64le nodes for servers, or is this just because you are building both client+server packages normally and only the packages will only be used on the clients? We definitely haven't done much testing with large PAGE_SIZE on the server.

Comment by Olaf Faaland [ 28/Oct/19 ]

I was trying to understand why we didn't see these problems with LU-12705, but it looks like these compile warnings are all in the server code, which we do not build/test on PPC.

That question has been bothering me, and I didn't connect the dots. Thanks for pointing that out.

Olaf, are you trying to actually use PPC64le nodes for servers, or is this just because you are building both client+server packages normally and only the packages will only be used on the clients? We definitely haven't done much testing with large PAGE_SIZE on the server.

We just build client+server packages as a routine practice; we're not trying to use PPCE64le servers. Thanks for the warning.

Comment by Gerrit Updater [ 03/Jan/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36558/
Subject: LU-12898 utils: %llu mismatch with type __u64 on ppcle64
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 56b4b112a497661de8dbf5a851c7a045d470deff

Comment by Peter Jones [ 03/Jan/20 ]

Landed for 2.14

Comment by Gerrit Updater [ 03/Jan/20 ]

Minh Diep (mdiep@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/37130
Subject: LU-12898 utils: %llu mismatch with type __u64 on ppcle64
Project: fs/lustre-release
Branch: b2_12
Current Patch Set: 1
Commit: 1417405546b58bdc11d10a7bf052b7ba0d1eefa0

Comment by Gerrit Updater [ 10/Jan/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/37130/
Subject: LU-12898 utils: %llu mismatch with type __u64 on ppcle64
Project: fs/lustre-release
Branch: b2_12
Current Patch Set:
Commit: ccaae9deb5b02a789ca0a645d4ca2359f300132f

Generated at Sat Feb 10 02:56:36 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.