Bug 1170968 - GCC 10: xen build fails on i586
GCC 10: xen build fails on i586
Status: RESOLVED FIXED
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem
Current
Other Other
: P5 - None : Normal (vote)
: ---
Assigned To: Charles Arnold
E-mail List
:
Depends on:
Blocks: 1157217
  Show dependency treegraph
 
Reported: 2020-05-01 07:15 UTC by Martin Liška
Modified: 2020-05-14 07:17 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Liška 2020-05-01 07:15:22 UTC
Fails here:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:N/xen/standard/i586

with:

[  118s] xenpmd.c: In function 'get_next_battery_file':
[  118s] xenpmd.c:92:37: error: '%s' directive output may be truncated writing between 4 and 2147483645 bytes into a region of size 271 [-Werror=format-truncation=]
[  118s]    92 |     #define BATTERY_STATE_FILE_PATH "/tmp/battery/%s/state"
[  118s]       |                                     ^~~~~~~~~~~~~~~~~~~~~~~
[  118s] xenpmd.c:117:52: note: in expansion of macro 'BATTERY_STATE_FILE_PATH'
[  118s]   117 |             snprintf(file_name, sizeof(file_name), BATTERY_STATE_FILE_PATH,
[  118s]       |                                                    ^~~~~~~~~~~~~~~~~~~~~~~
[  118s] xenpmd.c:92:51: note: format string is defined here
[  118s]    92 |     #define BATTERY_STATE_FILE_PATH "/tmp/battery/%s/state"
[  118s]       |                                                   ^~
[  118s] In file included from /usr/include/stdio.h:867,
[  118s]                  from xenpmd.c:35:
[  118s] /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 24 and 2147483665 bytes into a destination of size 284
[  118s]    67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
[  118s]       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[  118s]    68 |        __bos (__s), __fmt, __va_arg_pack ());
[  118s]       |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[  118s] xenpmd.c:91:36: error: '%s' directive output may be truncated writing between 4 and 2147483645 bytes into a region of size 271 [-Werror=format-truncation=]
[  118s]    91 |     #define BATTERY_INFO_FILE_PATH "/tmp/battery/%s/info"
[  118s]       |                                    ^~~~~~~~~~~~~~~~~~~~~~
[  118s] xenpmd.c:114:52: note: in expansion of macro 'BATTERY_INFO_FILE_PATH'
[  118s]   114 |             snprintf(file_name, sizeof(file_name), BATTERY_INFO_FILE_PATH,
[  118s]       |                                                    ^~~~~~~~~~~~~~~~~~~~~~
[  118s] xenpmd.c:91:50: note: format string is defined here
[  118s]    91 |     #define BATTERY_INFO_FILE_PATH "/tmp/battery/%s/info"
[  118s]       |                                                  ^~
[  118s] In file included from /usr/include/stdio.h:867,
[  118s]                  from xenpmd.c:35:
[  118s] /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 23 and 2147483664 bytes into a destination of size 284
[  118s]    67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
[  118s]       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[  118s]    68 |        __bos (__s), __fmt, __va_arg_pack ());
[  118s]       |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Comment 1 Martin Liška 2020-05-05 08:24:53 UTC
@Charles: Can you please disable -Werror as mentioned in openSUSE packaging guide:
https://en.opensuse.org/openSUSE:Specfile_guidelines#Werror
?
Comment 2 Martin Liška 2020-05-13 07:45:01 UTC
Any update on this, please?
Comment 3 Charles Arnold 2020-05-13 17:03:19 UTC
(In reply to Martin Liška from comment #2)
> Any update on this, please?

Fix submitted to Factory with SR#805360
Comment 4 OBSbugzilla Bot 2020-05-13 17:40:07 UTC
This is an autogenerated message for OBS integration:
This bug (1170968) was mentioned in
https://build.opensuse.org/request/show/805360 Factory / xen
Comment 5 Martin Liška 2020-05-14 07:17:04 UTC
Thank you Charles.