Bug 1041291

Summary: GCC 7: lxc fails to build
Product: [openSUSE] openSUSE Tumbleweed Reporter: Dominique Leuenberger <dimstar>
Component: OtherAssignee: Martin Liška <martin.liska>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: martin.liska, mliska, opensuse_buildservice, rguenther
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: 1030236    

Description Dominique Leuenberger 2017-05-29 08:56:51 UTC
Since the update of gcc to version 7, openSUSE:Factory/lxc fails to build

See a complete log file at https://build.opensuse.org/package/live_build_log/openSUSE:Factory/lxc/standard/x86_64
Comment 1 Johannes Kastl 2017-06-02 19:11:57 UTC
Confirmed. I asked for support on the lxc-devel mailinglist, if I cannot solve this alone.
Comment 2 Johannes Kastl 2017-06-02 19:47:38 UTC
Seems like a bug in gcc, according to the lxc maintainers:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78969
Comment 3 Dominique Leuenberger 2017-06-02 19:55:14 UTC
(In reply to Johannes Kastl from comment #2)
> Seems like a bug in gcc, according to the lxc maintainers:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78969

Let's CC our gcc maintainers then
Comment 4 Martin Liška 2017-06-04 09:14:39 UTC
(In reply to Dominique Leuenberger from comment #3)
> (In reply to Johannes Kastl from comment #2)
> > Seems like a bug in gcc, according to the lxc maintainers:
> > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78969
> 
> Let's CC our gcc maintainers then

It's fixed on trunk, we'll add the patch to Factory/gcc7 as soon as the patch will land in GCC 7 branch.
Comment 5 Johannes Kastl 2017-06-04 12:25:50 UTC
Martin,

thanks for your help!
Comment 6 Johannes Kastl 2017-06-22 20:39:42 UTC
Any news on this?
Comment 7 Richard Biener 2017-06-23 08:43:07 UTC
(In reply to Martin Liška from comment #4)
> (In reply to Dominique Leuenberger from comment #3)
> > (In reply to Johannes Kastl from comment #2)
> > > Seems like a bug in gcc, according to the lxc maintainers:
> > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78969
> > 
> > Let's CC our gcc maintainers then
> 
> It's fixed on trunk, we'll add the patch to Factory/gcc7 as soon as the
> patch will land in GCC 7 branch.

Actually the lxc case was not fixed yet.

You need to workaround this in lxc, for example by not using -Werror
Comment 8 Johannes Kastl 2017-07-05 06:02:32 UTC
I added a workaround to the lxc package to get around this until gcc7 is fixed:
https://build.opensuse.org/request/show/508214
Comment 9 Martin Liška 2018-06-01 07:22:27 UTC
Should be fixed as GCC 7 is one year in Factory now.