Created attachment 681391 [details, diff]
patch to #include <limits> in several files
Found liborcus failed to build with gcc11
Errors due to not #include <limits>, as reported in multiple packages now, some in the gcc11 tracker
e.g. for liborcus-0.15.4
orcus_xlsx.cpp:313:35: error: ‘numeric_limits’ was not declared in this scope
313 | return it == rank_map.end() ? numeric_limits<size_t>::max() : it->second;
Only dependent in my tree is libreoffice.
BTW I found same with liborcus-0.16.1 and liborcus-9999 (gave them a try even though libreoffice requires dev-libs/liborcus:0/0.15)
fixed upstream .
Created attachment 681463 [details, diff]
Created attachment 681811 [details]
build.log and emerge --info.txt
Can reproduce with gcc-11.0.9999-d54be5a, attaching full log+info for completeness.
But what do you mean by fixed upstream? Link? Still getting error liborcus @34865af, it would certainly be good to get it fixed there instead.
(In reply to Ionen Wolkens from comment #3)
> Created attachment 681811 [details]
> build.log and emerge --info.txt
> Can reproduce with gcc-11.0.9999-d54be5a, attaching full log+info for
> But what do you mean by fixed upstream? Link? Still getting error liborcus
> @34865af, it would certainly be good to get it fixed there instead.
i did not know that it was ok to add links here but here you go:
hedmo@mya51 ~ $ cat fails_gcc11-20210104 | grep dev-libs/liborcus-0.16.1
dev-libs/liborcus-0.16.1 ## fixed upstream https://gerrit.libreoffice.org/c/core/+/104074/2/external/liborcus/include.patch.0#1
hedmo@mya51 ~ $
as this is from libreoffice i will double check with liborcus at gitlab
and make a merge request if he does not have it..
made a merge request upstream : https://gitlab.com/orcus/orcus/-/merge_requests/97
The bug has been closed via the following commit(s):
Author: Andreas Sturmlechner <email@example.com>
AuthorDate: 2021-01-24 12:46:13 +0000
Commit: Andreas Sturmlechner <firstname.lastname@example.org>
CommitDate: 2021-01-24 12:59:06 +0000
dev-libs/liborcus: Fix build with GCC-11, python3_9
Reported-by: Geoff Leach <email@example.com>
Thanks-to: andy <firstname.lastname@example.org>
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Andreas Sturmlechner <email@example.com>
.../liborcus/files/liborcus-0.15.4-gcc11.patch | 72 ++++++++++++++++++++++
dev-libs/liborcus/liborcus-0.15.4.ebuild | 9 ++-
2 files changed, 78 insertions(+), 3 deletions(-)