[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1097628: Bug #1097628: poco: ftbfs with GCC-15



On Tue Sep 9, 2025 at 10:30 AM CEST, Diederik de Haas wrote:
> On Mon Feb 17, 2025 at 6:45 PM CET, Matthias Klose wrote:
>> Package: src:poco
>> Version: 1.13.0-6
>>
>> The package fails to build in a test rebuild on at least amd64 with
>> gcc-15/g++-15, but succeeds to build with gcc-14/g++-14. The
>> severity of this report will be raised before the forky release.
>
> Anyway, those last lines are useless, this is the relevant part:
>
> ```
> [ 29%] Building CXX object Crypto/CMakeFiles/Crypto.dir/src/ECKey.cpp.o
> cd /build/reproducible-path/poco-1.13.0/obj-x86_64-linux-gnu/Crypto && /usr/bin/c++ -DCrypto_EXPORTS -DPOCO_ENABLE_CPP11 -DPOCO_ENABLE_CPP14 -DPOCO_HAVE_FD_EPOLL -DPOCO_OS_FAMILY_UNIX -DPOCO_UNBUNDLED -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -D_XOPEN_SOURCE=500 -I/build/reproducible-path/poco-1.13.0/Crypto/include -I/build/reproducible-path/poco-1.13.0/Crypto/src -I/build/reproducible-path/poco-1.13.0/Foundation/include -g -O2 -ffile-prefix-map=/build/reproducible-path/poco-1.13.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++17 -fPIC -MD -MT Crypto/CMakeFiles/Crypto.dir/src/ECKey.cpp.o -MF CMakeFiles/Crypto.dir/src/ECKey.cpp.o.d -o CMakeFiles/Crypto.dir/src/ECKey.cpp.o -c /build/reproducible-path/poco-1.13.0/Crypto/src/ECKey.cpp
> In file included from /build/reproducible-path/poco-1.13.0/Data/include/Poco/Data/Statement.h:28,
>                  from /build/reproducible-path/poco-1.13.0/Data/include/Poco/Data/Session.h:23,
>                  from /build/reproducible-path/poco-1.13.0/Data/include/Poco/Data/ArchiveStrategy.h:22:
> /build/reproducible-path/poco-1.13.0/Data/include/Poco/Data/SimpleRowFormatter.h:114:21: error: declaration of ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) noexcept [with _Tp = Poco::Data::SimpleRowFormatter; _Require<__not_<__is_tuple_like<_Tp> >, is_move_constructible<_Tp>, is_move_assignable<_Tp> > = void]’ has a different exception specifier
>   114 |         inline void swap<Poco::Data::SimpleRowFormatter>(Poco::Data::SimpleRowFormatter& s1,
>       |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from /usr/include/c++/15/bits/new_allocator.h:36,
>                  from /usr/include/x86_64-linux-gnu/c++/15/bits/c++allocator.h:33,
>                  from /usr/include/c++/15/bits/allocator.h:46,
>                  from /usr/include/c++/15/string:45,
>                  from /build/reproducible-path/poco-1.13.0/Foundation/include/Poco/Foundation.h:94:
> /usr/include/c++/15/bits/move.h:227:5: note: from previous declaration ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) noexcept (false) [with _Tp = Poco::Data::SimpleRowFormatter; _Require<__not_<__is_tuple_like<_Tp> >, is_move_constructible<_Tp>, is_move_assignable<_Tp> > = void]’
>   227 |     swap(_Tp& __a, _Tp& __b)
>       |     ^~~~
> ```
>
> I included the warning as it is present numerous times in the build log,
> but it's the second that causes a/the build failure.

This seems to be fixed upstream already via this PR:
https://github.com/pocoproject/poco/pull/4702

This commit from that PR is included in the 1.14.0 release so updating
the package to a/the 1.14.x version should fix that.

> Interestingly enough, in the upstream repo there is this issue:
> https://github.com/pocoproject/poco/issues/4695
> "Build error with GCC-15 (class Poco::PriorityDelegate<TObj, void,
> true>’ has no member named ‘_pTarget’)"
>
> but that error is NOT present in the build log. I guess it fails before
> it got to that?

Cheers,
  Diederik

Attachment: signature.asc
Description: PGP signature


Reply to: