Bugzilla – Bug 1084630
GCC 8: libstoragemgmt build fails
Last modified: 2018-04-17 05:01:23 UTC
Build the package with GCC 8, there's error:
[ 58s] libsg.c:560:34: error: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 983 [-Werror=format-truncation=]
Please build the project as follows to reproduce the issue:
osc build --alternative-project=openSUSE:Factory:Staging:Gcc7
Created attachment 765011 [details]
Full build error log for format-truncation
Created attachment 765012 [details]
python_c error after fixing format-truncation
An pr  in upstream for [-Werror=format-truncation=] against gcc8, not merged yet.
The pr mentioned in Comment#3 is still open.
The patch passed the test on obs, will submit as long as the pr is merged.
The pr in upstream still pending due to the failure of ontap plugin. So backport the gcc8 fix only to factory in https://build.opensuse.org/request/show/595526
Change to resolved/fixed, since openSUSE:Factory accepted the fix.