Bug 2340762
| Summary: | libsolv: FTBFS in Fedora rawhide/f42: bool redefinitions with GCC 15 in bindings/solv.i (via Swig-generated solv_perl.c) | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Fedora Release Engineering <releng> | ||||||||
| Component: | libsolv | Assignee: | Petr Pisar <ppisar> | ||||||||
| Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||
| Severity: | unspecified | Docs Contact: | |||||||||
| Priority: | unspecified | ||||||||||
| Version: | 42 | CC: | daniel.mach, igor.raits, jmracek, jrohel, mcermak, ngompa13, pkratoch, ppisar, rpm-software-management | ||||||||
| Target Milestone: | --- | ||||||||||
| Target Release: | --- | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | libsolv-0.7.31-5.fc42 | Doc Type: | If docs needed, set a value | ||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2025-02-18 07:59:35 UTC | Type: | --- | ||||||||
| Regression: | --- | Mount Type: | --- | ||||||||
| Documentation: | --- | CRM: | |||||||||
| Verified Versions: | Category: | --- | |||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||
| Embargoed: | |||||||||||
| Bug Depends On: | |||||||||||
| Bug Blocks: | 2300528 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Fedora Release Engineering
2025-01-22 20:46:50 UTC
Created attachment 2070823 [details]
build.log
file build.log too big, will only attach last 32768 bytes
Created attachment 2070824 [details]
root.log
file root.log too big, will only attach last 32768 bytes
Created attachment 2070825 [details]
state.log
From the build log:
[127/142] cd /home/test/fedora/libsolv/libsolv-0.7.31-build/libsolv-0.7.31/redhat-linux-build/bindings/perl && /usr/bin/swig -perl -DHAVE_STRCHRNUL -DHAVE_FOPENCOOKIE -DHAVE_RPMDBFSTAT -DWITH_LIBXML2 -DENABLE_COMPLEX_DEPS -DMULTI_SEMANTICS -DENABLE_CONDA -DENABLE_RPMDB -DENABLE_RPMPKG -DENABLE_RPMMD -DENABLE_RPMPKG_LIBRPM -DENABLE_RPMDB_LIBRPM -DENABLE_RPMDB_BYRPMHEADER -DENABLE_SUSEREPO -DENABLE_COMPS -DENABLE_HELIXREPO -DENABLE_ARCHREPO -DENABLE_DEBIAN -DENABLE_ZLIB_COMPRESSION -DENABLE_LZMA_COMPRESSION -DENABLE_BZIP2_COMPRESSION -DENABLE_ZSTD_COMPRESSION -DENABLE_ZCHUNK_COMPRESSION -DENABLE_APPDATA -DWITH_SYSTEM_ZCHUNK -I/home/test/fedora/libsolv/libsolv-0.7.31-build/libsolv-0.7.31/src -o solv_perl.c /home/test/fedora/libsolv/libsolv-0.7.31-build/libsolv-0.7.31/bindings/solv.i && sed -i -e "s/SvTYPE(tsv) == SVt_PVHV/SvTYPE(tsv) == SVt_PVHV || SvTYPE(tsv) == SVt_PVAV/" solv_perl.c
[...]
/usr/bin/gcc -DENABLE_APPDATA=1 -DENABLE_ARCHREPO=1 -DENABLE_BZIP2_COMPRESSION=1 -DENABLE_COMPLEX_DEPS=1 -DENABLE_COMPS=1 -DENABLE_CONDA=1 -DENABLE_DEBIAN=1 -DENABLE_HELIXREPO=1 -DENABLE_LZMA_COMPRESSION=1 -DEN
ABLE_RPMDB=1 -DENABLE_RPMDB_BYRPMHEADER=1 -DENABLE_RPMDB_LIBRPM=1 -DENABLE_RPMMD=1 -DENABLE_RPMPKG=1 -DENABLE_RPMPKG_LIBRPM=1 -DENABLE_SUSEREPO=1 -DENABLE_ZCHUNK_COMPRESSION=1 -DENABLE_ZLIB_COMPRESSION=1 -DENAB
LE_ZSTD_COMPRESSION=1 -DFEDORA -DHAVE_FOPENCOOKIE=1 -DHAVE_RPMDBFSTAT=1 -DHAVE_STRCHRNUL=1 -DMU
LTI_SEMANTICS=1 -DWITH_LIBXML2=1 -DWITH_SYSTEM_ZCHUNK=1 -D_FILE_OFFSET_BITS=64 -Dbindings_perl_EXPORTS -I/usr/include/libxml2 -I/home/test/fedora/libsolv/libsolv-0.7.31-build/libsolv-0.7.31 -I/home/test/fedora/libsolv/libsolv-0.7.31-build/libsolv-0.7.31/src -I/home/test/fedora/libsolv/libsolv-0.7.31-build/libsolv-0.7.31/ext -I/home/test/fedora/libsolv/libsolv-0.7.31-build/libsolv-0.7.31/redhat-linux-build -I/home/test/fedora/libsolv/libsolv-0.7.31-build/libsolv-0.7.31/redhat-linux-build/src -I/usr/lib64/perl5/CORE -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -fPIC -fPIC -D_REENTRANT -D_GNU_SOURCE -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unused -Wno-nonnull -MD -MT bindings/perl/CMakeFiles/bindings_perl.dir/solv_perl.c.o -MF bindings/perl/CMakeFiles/bindings_perl.dir/solv_perl.c.o.d -o bindings/perl/CMakeFiles/bindings_perl.dir/solv_perl.c.o -c /home/test/fedora/libsolv/libsolv-0.7.31-build/libsolv-0.7.31/redhat-linux-build/bindings/perl/solv_perl.c
/home/test/fedora/libsolv/libsolv-0.7.31-build/libsolv-0.7.31/redhat-linux-build/bindings/perl/solv_perl.c:1641:13: error: ‘bool’ cannot be defined via ‘typedef’
1641 | typedef int bool;
| ^~~~
/home/test/fedora/libsolv/libsolv-0.7.31-build/libsolv-0.7.31/redhat-linux-build/bindings/perl/solv_perl.c:1641:13: note: ‘bool’ is a keyword with ‘-std=c23’ onwards
/home/test/fedora/libsolv/libsolv-0.7.31-build/libsolv-0.7.31/redhat-linux-build/bindings/perl/solv_perl.c:1641:1: warning: useless type name in empty declaration
1641 | typedef int bool;
| ^~~~~~~
The bool definition actually comes from libsolv's bindings/solv.i:
%{
#include <stdbool.h>
#include <stdio.h>
#include <sys/stat.h>
#include <sys/utsname.h>
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
/* argh, swig undefs bool for perl */
#ifndef bool
typedef int bool;
#endif
The fix was accepted upstream. |