Bug 1542889

Summary: zypper-1.13.32-1.fc28 FTBFS: zypper-1.13.32/src/callbacks/rpm.h:104:37: error: could not convert '(zypp::sat::asSolvable)(val_r)' from 'zypp::sat::asSolvable' to 'zypp::sat::Solvable'
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: zypperAssignee: Neal Gompa <ngompa13>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: besser82, ngompa13
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://apps.fedoraproject.org/koschei/build/4096790
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-07 12:00:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Pisar 2018-02-07 09:50:45 UTC
zypper-1.13.32-1.fc28 fails to build in F28:

cd /builddir/build/BUILD/zypper-1.13.32/src && /usr/bin/c++  -DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE=\"zypper\" -DVERSION=\"1.13.32\" -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/zypper-1.13.32 -I/usr/include/libxml2 -I/builddir/build/BUILD/zypper-1.13.32/src  -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fstack-clash-protection -g -O2 -Wall -Woverloaded-virtual -Wnon-virtual-dtor -fstack-protector -std=c++11 -fvisibility-inlines-hidden -O2 -g -DNDEBUG   -o CMakeFiles/zypper.dir/main.cc.o -c /builddir/build/BUILD/zypper-1.13.32/src/main.cc
make[2]: Leaving directory '/builddir/build/BUILD/zypper-1.13.32'
In file included from /builddir/build/BUILD/zypper-1.13.32/src/main.cc:11:
/builddir/build/BUILD/zypper-1.13.32/src/callbacks/rpm.h: In static member function 'static zypp::sat::Solvable out::SolvableListFormater::asSolvable(const Tp_&)':
/builddir/build/BUILD/zypper-1.13.32/src/callbacks/rpm.h:104:37: error: could not convert '(zypp::sat::asSolvable)(val_r)' from 'zypp::sat::asSolvable' to 'zypp::sat::Solvable'
     { return sat::asSolvable( val_r ); }
                                     ^

A difference between passing and failing build root is at <https://apps.fedoraproject.org/koschei/build/4096790>. This issue is probably triggered by upgrading GCC to 8 version.

Comment 1 Neal Gompa 2018-02-07 12:00:29 UTC
This was, in fact, triggered by GCC 8.

I reported it yesterday: https://github.com/openSUSE/zypper/issues/146

It was fixed by this commit: https://github.com/openSUSE/zypper/commit/7d3a784a8ca003a14a86859d8e16a6868c6754b9

It is built in Koji now (and updated to the latest version): https://koji.fedoraproject.org/koji/buildinfo?buildID=1028116