[cairo-bugs] [Bug 77060] cairo fails to compile with gcc 4.9

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Jul 13 07:08:17 PDT 2014


--- Comment #6 from Uli Schlachter <psychon at znc.in> ---
Created attachment 102703
  --> https://bugs.freedesktop.org/attachment.cgi?id=102703&action=edit
Self-contained Makefile to reproduce this issue

So I tried to reproduce this issue outside of cairo. The result is the attached

Then I found the GCC LTO FAQ which states that you have to use gcc-ar,
gcc-ranlib and gcc-nm instead of the tools without those prefixes. With my
Makefile I tested this and noticed (after some comparing to what cairo does)
that "ranlib" breaks the .a files that cairo builds by replacing the symbol
index. Using my Makefile with "make RANLIB=gcc-ranlib" is enough to make it

Then I fought a bit against cairo's configure script and can now build cairo
again, if I use
  ./configure ac_cv_prog_RANLIB=gcc-ranlib RANLIB="gcc-ranlib" AR="gcc-ar"

(No, I do not know why just "RANLIB=gcc-ranlib" isn't enough. It's just
silently ignored and libtool will happily continue to use ranlib.)

We can just ignore this issue until a binutils version with plugin support is
used everywhere, at which point "ranlib" and "gcc-ranlib" are equally fine.
Besides that, any idea for fixing this properly?

You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo-bugs/attachments/20140713/a221c230/attachment.html>

More information about the cairo-bugs mailing list