[LU-12705] build fails on power9 client Created: 27/Aug/19  Updated: 24/Oct/19  Resolved: 16/Sep/19

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

Type: Bug Priority: Minor
Reporter: Shuichi Ihara Assignee: Gu Zheng (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Environment:

master branch, b2_12


Attachments: Text File build-fail.log    
Issue Links:
Duplicate
is duplicated by LU-12898 building lustre utils on ppc64le fail... Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

build fails on power9 client (littile endian) due to 'long long unsigned int'. not only ll_decode_linkea.c, but also llsom_sync.c, lfs.c so on. both master and b2_12 gets same roblems.

ll_decode_linkea.c: In function 'decode_linkea':
ll_decode_linkea.c:89:4: error: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type '__u64' [-Werror=format=]
    fname, leh->leh_len, size);
    ^
ll_decode_linkea.c:102:5: error: format '%lld' expects argument of type 'long long int', but argument 4 has type '__u64' [-Werror=format=]
     fname, leh->leh_len, length);
     ^
ll_decode_linkea.c:102:5: error: format '%lld' expects argument of type 'long long int', but argument 5 has type '__u64' [-Werror=format=]
ll_decode_linkea.c:116:4: error: format '%lld' expects argument of type 'long long int', but argument 4 has type '__u64' [-Werror=format=]
    fname, leh->leh_len, length);


 Comments   
Comment by Shuichi Ihara [ 27/Aug/19 ]

full build log is attached. https://jira.whamcloud.com/secure/attachment/33420/build-fail.log

Comment by James A Simmons [ 27/Aug/19 ]

Yes I saw this some time ago but haven't got around to it. Its the return of PRi64 handling.

Comment by Andreas Dilger [ 27/Aug/19 ]

I thought we build every patch on Power, how is your build different from what is done by Jenkins?

Comment by Shuichi Ihara [ 28/Aug/19 ]

I think one difference is big endian (ppc64 client on jenkins) vs little endian on my client.

Comment by Gerrit Updater [ 30/Aug/19 ]

Gu Zheng (gzheng@ddn.com) uploaded a new patch: https://review.whamcloud.com/36007
Subject: LU-12705 build: fix building fail against Power9 little endian
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 89cf428dc530217a5e5bee838121e4dfe964a83f

Comment by Gerrit Updater [ 16/Sep/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36007/
Subject: LU-12705 build: fix building fail against Power9 little endian
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 4eddf36ac3607c66c172668b30eb5dcf921e3de4

Comment by Peter Jones [ 16/Sep/19 ]

Landed for 2.13

Comment by Gerrit Updater [ 17/Sep/19 ]

Minh Diep (mdiep@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/36207
Subject: LU-12705 build: fix building fail against Power9 little endian
Project: fs/lustre-release
Branch: b2_12
Current Patch Set: 1
Commit: 94662d1cce7ffcc5bfffab74aabc4f45b7bddd73

Comment by Gerrit Updater [ 18/Sep/19 ]

Gu Zheng (gzheng@ddn.com) uploaded a new patch: https://review.whamcloud.com/36224
Subject: LU-12705 utils: cleanup unnecessary typecasting
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 6795d55ae1260982530f64728607fe3c0b2b01d7

Comment by Gerrit Updater [ 23/Sep/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36207/
Subject: LU-12705 build: fix building fail against Power9 little endian
Project: fs/lustre-release
Branch: b2_12
Current Patch Set:
Commit: 45f9e02c2fa07d9a94228990cf87d460241d5e01

Comment by Gerrit Updater [ 27/Sep/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36224/
Subject: LU-12705 utils: cleanup unnecessary typecasting
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: d8135ad2fbe58a0fbe6984584816338542901c5c

Comment by Gerrit Updater [ 28/Sep/19 ]

Minh Diep (mdiep@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/36313
Subject: LU-12705 utils: cleanup unnecessary typecasting
Project: fs/lustre-release
Branch: b2_12
Current Patch Set: 1
Commit: 521c1489487b3b787d2a6074a71108c6e8f36ee3

Comment by Gerrit Updater [ 04/Oct/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36313/
Subject: LU-12705 utils: cleanup unnecessary typecasting
Project: fs/lustre-release
Branch: b2_12
Current Patch Set:
Commit: 67a643f2c01da72b2918fa780a28d9c05fc3b15a

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