Bug 1181867

Summary: GCC 11: dpkg package fails
Product: [openSUSE] openSUSE Tumbleweed Reporter: Martin Liška <martin.liska>
Component: BasesystemAssignee: Martin Liška <martin.liska>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: adrian.glaubitz
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 11:04:25 UTC
Fails here:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/dpkg/standard/x86_64

due to:
[  184s] /usr/include/c++/11/bits/algorithmfwd.h:229:55: error: macro "clamp" passed 4 arguments, but takes just 3
[  184s]   229 |     clamp(const _Tp&, const _Tp&, const _Tp&, _Compare);
[  184s]       |                                                       ^
[  184s] In file included from ../lib/dpkg/i18n.h:24,
[  184s]                  from basecmds.cc:28:
[  184s] ../lib/dpkg/macros.h:127: note: macro "clamp" defined here
[  184s]   127 | #define clamp(v, l, h) ((v) > (h) ? (h) : ((v) < (l) ? (l) : (v)))
[  184s]       | 
[  184s] In file included from /usr/include/c++/11/bits/stl_algo.h:60,
[  184s]                  from /usr/include/c++/11/algorithm:62,
[  184s]                  from dselect.h:27,
[  184s]                  from basetop.cc:26:
[  184s] /usr/include/c++/11/bits/algorithmfwd.h:229:55: error: macro "clamp" passed 4 arguments, but takes just 3
[  184s]   229 |     clamp(const _Tp&, const _Tp&, const _Tp&, _Compare);
Comment 1 Martin Liška 2021-02-26 13:58:28 UTC
May I please ping this?
Comment 2 Martin Liška 2021-03-26 09:57:42 UTC
May I please ping this as GCC 11 release is approaching?
Comment 3 Martin Liška 2021-04-23 09:08:15 UTC
I've just made SR#1181867.
Comment 4 John Paul Adrian Glaubitz 2021-05-03 11:17:29 UTC
I submitted the latest upstream version: https://build.opensuse.org/request/show/890017
Comment 5 Martin Liška 2021-05-10 10:21:01 UTC
Fixed in devel project by my cherry-pick commit.
Comment 6 John Paul Adrian Glaubitz 2021-05-10 10:30:39 UTC
(In reply to Martin Liška from comment #5)
> Fixed in devel project by my cherry-pick commit.

Ehrm, why not just update to the latest upstream version?

This update is submitted to Factory, after all. Backporting fixes is rather unusual for a rolling release distribution, isn't it?
Comment 7 Martin Liška 2021-05-10 10:36:03 UTC
(In reply to John Paul Adrian Glaubitz from comment #6)
> (In reply to Martin Liška from comment #5)
> > Fixed in devel project by my cherry-pick commit.
> 
> Ehrm, why not just update to the latest upstream version?

Yes, your SR is better, please ping the submit request.

> 
> This update is submitted to Factory, after all. Backporting fixes is rather
> unusual for a rolling release distribution, isn't it?

Yes.
Comment 8 OBSbugzilla Bot 2021-06-08 13:40:06 UTC
This is an autogenerated message for OBS integration:
This bug (1181867) was mentioned in
https://build.opensuse.org/request/show/898420 Factory / dpkg
Comment 9 OBSbugzilla Bot 2021-06-10 11:10:06 UTC
This is an autogenerated message for OBS integration:
This bug (1181867) was mentioned in
https://build.opensuse.org/request/show/899017 Factory / dpkg