Bug 1181863

Summary: GCC 11: bctoolbox package fails
Product: [openSUSE] openSUSE Tumbleweed Reporter: Martin Liška <martin.liska>
Component: BasesystemAssignee: Alexei Sorokin <sor.alexei>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: pstivanin
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 1181859    

Description Martin Liška 2021-02-06 10:59:53 UTC
Fails here:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/bctoolbox/standard/x86_64

due to:
[   44s] cd /home/abuild/rpmbuild/BUILD/bctoolbox-4.4.24/build/src && /usr/bin/cc -DHAVE_CONFIG_H -Dbctoolbox_EXPORTS -I/home/abuild/rpmbuild/BUILD/bctoolbox-4.4.24/include -I/home/abuild/rpmbuild/BUILD/bctoolbox-4.4.24/src -I/home/abuild/rpmbuild/BUILD/bctoolbox-4.4.24/build -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -DNDEBUG -O2 -g -DNDEBUG -fPIC  -Wall -Wuninitialized -Wno-error=pragmas -Werror -Wextra -Wno-unused-parameter -Wno-error=unknown-pragmas -Wuninitialized -Wno-missing-field-initializers -fno-strict-aliasing -Wno-error=deprecated -Wno-error=deprecated-declarations -Werror -Wstrict-prototypes -o CMakeFiles/bctoolbox.dir/utils/port.c.o -c /home/abuild/rpmbuild/BUILD/bctoolbox-4.4.24/src/utils/port.c
[   44s] /home/abuild/rpmbuild/BUILD/bctoolbox-4.4.24/src/utils/port.c:1731:45: error: argument 1 of type 'const uint8_t *' {aka 'const unsigned char *'} declared as a pointer [-Werror=array-parameter=]
[   44s]  1731 | uint32_t bctbx_str_to_uint32(const uint8_t *input_string) {
[   44s]       |                              ~~~~~~~~~~~~~~~^~~~~~~~~~~~
[   44s] In file included from /home/abuild/rpmbuild/BUILD/bctoolbox-4.4.24/include/bctoolbox/logging.h:29,
[   44s]                  from /home/abuild/rpmbuild/BUILD/bctoolbox-4.4.24/src/utils/port.c:25:
[   44s] /home/abuild/rpmbuild/BUILD/bctoolbox-4.4.24/include/bctoolbox/port.h:654:57: note: previously declared as an array 'const uint8_t[9]' {aka 'const unsigned char[9]'}
[   44s]   654 | BCTBX_PUBLIC uint32_t bctbx_str_to_uint32(const uint8_t input_string[9]);
[   44s]       |                                           ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
[   44s] cc1: all warnings being treated as errors
[   44s] make[2]: *** [src/CMakeFiles/bctoolbox.dir/build.make:124: src/CMakeFiles/bctoolbox.dir/utils/port.c.o] Error 1
Comment 1 Martin Liška 2021-02-23 11:16:10 UTC
May I please ping this?
Comment 2 Martin Liška 2021-03-26 09:57:22 UTC
May I please ping this as GCC 11 release is approaching?
Comment 3 Paolo Stivanin 2021-04-07 06:59:12 UTC
Looking into it
Comment 4 Paolo Stivanin 2021-04-07 07:03:29 UTC
I've opened this SR to workaround the issue until upstream fixes it:

https://build.opensuse.org/request/show/883508
Comment 5 Martin Liška 2021-04-21 14:43:11 UTC
Fixed now.