[LU-12764] ubuntu16 client build failure Created: 16/Sep/19  Updated: 04/Oct/19  Resolved: 04/Oct/19

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

Type: Bug Priority: Minor
Reporter: Wang Shilong (Inactive) Assignee: Wang Shilong (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Environment:

NAME="Ubuntu"
VERSION="16.04.5 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.5 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial

wangsl@ubuntu:~/lustre-release$ gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609


Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   
In file included from include/linux/kernel.h:10:0,
                 from include/linux/list.h:9,
                 from include/linux/random.h:10,
                 from /home/wangsl/lustre-release/lnet/lnet/router.c:25:
/home/wangsl/lustre-release/lnet/lnet/router.c: In function ‘lnet_del_route’:
include/linux/compiler.h:177:26: error: ‘lp’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
  case 8: *(__u64 *)res = *(volatile __u64 *)p; break;  \
                          ^
/home/wangsl/lustre-release/lnet/lnet/router.c:754:20: note: ‘lp’ was declared here
  struct lnet_peer *lp;
                    ^
/home/wangsl/lustre-release/lnet/lnet/router.c: At top level:
cc1: error: unrecognized command line option ‘-Wno-stringop-overflow’ [-Werror]
cc1: error: unrecognized command line option ‘-Wno-stringop-truncation’ [-Werror]
cc1: error: unrecognized command line option ‘-Wno-format-truncation’ [-Werror]
cc1: all warnings being treated as errors


 Comments   
Comment by Gerrit Updater [ 16/Sep/19 ]

Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/36189
Subject: LU-12764 lnet: eliminate uninitialized warning
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 0b7daa19f8f6b276244c6b39f533c523b0c51ce3

Comment by Gerrit Updater [ 04/Oct/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36189/
Subject: LU-12764 lnet: eliminate uninitialized warning
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: a8fbaa1b998f558cdb196822447b2aafe8cf98b5

Comment by Peter Jones [ 04/Oct/19 ]

Landed for 2.13

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