<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:darxus@chaosreigns.com" title="Darxus <darxus@chaosreigns.com>"> <span class="fn">Darxus</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - cairo fails to compile with gcc 4.9"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=77060">bug 77060</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>darxus@chaosreigns.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - cairo fails to compile with gcc 4.9"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=77060#c8">Comment # 8</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - cairo fails to compile with gcc 4.9"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=77060">bug 77060</a>
              from <span class="vcard"><a class="email" href="mailto:darxus@chaosreigns.com" title="Darxus <darxus@chaosreigns.com>"> <span class="fn">Darxus</span></a>
</span></b>
        <pre>In case anybody else ends up wanting to build commits from the several years
where -flto was enabled, between the commits mentioned above, this has worked
well for me:

sed -i -e 's/-flto//g' build/configure.ac.warnings

Mailing list thread where this came up, trying to find where tests started
failing:  <a href="https://lists.cairographics.org/archives/cairo/2016-July/027613.html">https://lists.cairographics.org/archives/cairo/2016-July/027613.html</a>

The error that led me to this bug, and this solution, was:
undefined reference to `cairo_boilerplate_xmalloc'


Commits between which I expect this error to show up:

commit c7ff9bb32e20679d6da4e8a2856be716e5bd9e12
Author:     Uli Schlachter <<a href="mailto:psychon@znc.in">psychon@znc.in</a>>
Commit:     Bryce Harrington <<a href="mailto:bryce@osg.samsung.com">bryce@osg.samsung.com</a>>
CommitDate: Fri Aug 1 13:11:31 2014 -0700
    Remove LTO support

commit 0870c6fb5b39dcc04fa376123848adde2d06d2ce
Author:     Chris Wilson <<a href="mailto:chris@chris-wilson.co.uk">chris@chris-wilson.co.uk</a>>
Commit:     Chris Wilson <<a href="mailto:chris@chris-wilson.co.uk">chris@chris-wilson.co.uk</a>>
CommitDate: Wed May 12 20:54:49 2010 +0100
    gcc-4.5 warnings and optimisation flags.


With the above sed command I've been able to build commits back to at least:

commit 493aaf0f15bfedc88371ffab07d862a400b0da38
Author:     Andrea Canciani <<a href="mailto:ranma42@gmail.com">ranma42@gmail.com</a>>
Commit:     Andrea Canciani <<a href="mailto:ranma42@gmail.com">ranma42@gmail.com</a>>
CommitDate: Wed Nov 24 14:45:19 2010 +0100


This one and before fails:

commit 852e789b756f9589b102a4b24b85642f199d0915
Author:     Andrea Canciani <<a href="mailto:ranma42@gmail.com">ranma42@gmail.com</a>>
Commit:     Andrea Canciani <<a href="mailto:ranma42@gmail.com">ranma42@gmail.com</a>>
CommitDate: Mon Nov 1 15:53:10 2010 +0100

With:
configure: error: cannot find install-sh, install.sh, or shtool in "." "./.."
"./../.."</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>