Bug 90597 - xf86-video-intel trunk fails to build with gcc-5.
Summary: xf86-video-intel trunk fails to build with gcc-5.
Status: RESOLVED NOTOURBUG
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Chris Wilson
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-22 20:43 UTC by ken moffat
Modified: 2015-05-22 20:45 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description ken moffat 2015-05-22 20:43:19 UTC
I was hoping to see if an SNA problem with 2.99.917 had been fixed (will raise that in a few days, after rebuilding a system with debug info), but it crapped out.

  CC       gen4_vertex.lo
gen4_vertex.c: In function ‘emit_primitive_linear__avx2’:
gen4_vertex.c:312:1: error: inlining failed in call to always_inline ‘compute_linear’: optimization level attribute mismatch
 compute_linear(const struct sna_composite_channel *channel,
 ^
gen4_vertex.c:1523:9: error: called from here
  v[5] = compute_linear(&op->src, r->src.x, r->src.y);
         ^
gen4_vertex.c:312:1: error: inlining failed in call to always_inline ‘compute_linear’: optimization level attribute mismatch
 compute_linear(const struct sna_composite_channel *channel,
 ^
gen4_vertex.c:1522:9: error: called from here
  v[3] = compute_linear(&op->src, r->src.x, r->src.y+r->height);
         ^
gen4_vertex.c:312:1: error: inlining failed in call to always_inline ‘compute_linear’: optimization level attribute mismatch
 compute_linear(const struct sna_composite_channel *channel,
 ^
gen4_vertex.c:1521:9: error: called from here
  v[1] = compute_linear(&op->src, r->src.x+r->width, r->src.y+r->height);
         ^
Makefile:647: recipe for target 'gen4_vertex.lo' failed
make[4]: *** [gen4_vertex.lo] Error 1
make[4]: Leaving directory '/scratch/ken/xf86-video-intel-git/src/sna'
Makefile:666: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1

This is with gcc-5.1.0 and a linux x86_64 system built with kernel 4.0.3 headers.
Head was at
commit e617c1941c4e5ee90b69221013aab799eace925d
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Tue May 19 12:14:24 2015 +0100

but google found a similar pastebin posting from about 7th May.
Comment 1 Chris Wilson 2015-05-22 20:45:58 UTC
It's a known bug in gcc5


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.