Bug 1043390

Summary: qemu uses gcc6 to build
Product: [openSUSE] openSUSE Tumbleweed Reporter: Dominique Leuenberger <dimstar>
Component: KVMAssignee: Bruce Rogers <brogers>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: brogers, jslaby, lyan
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Dominique Leuenberger 2017-06-08 12:52:30 UTC
qemu has explicit requires/patches to build using GCC6. Back in the days this was  done to favor gcc6 over 4.x/5, in order to produce smaller code.

Since TW now moved to gcc7, this is sort-of contra, as we now favor an older compiler over the current one (and the old one is likely supposed to disappear sooner or later)

It would thus be great if qemu can be built using gcc7 too
Comment 3 Bruce Rogers 2017-06-08 21:02:44 UTC
Liang, I believe what dimstar is pointing out is that we treat gcc6 as if it's the best compiler to use to solve our problem of needing a recent compiler, when in fact gcc7 would be a better choice if available. (note to readers - it's only used for compiling seabios, not other components). We should add the smarts here to require at least gcc6 for compiling seabios, but using whatever is default, if it is >= gcc6. That's what I think we should do to address this.
Comment 4 Jiri Slaby 2017-06-22 06:52:26 UTC
 Patch1101:      ipxe-use-gcc6-for-more-compact-code.patch
...
+%if 0%{?suse_version} <= 1320
 %patch1101 -p1
+%endif

*** This bug has been marked as a duplicate of bug 1040228 ***