[Webkit-unassigned] [Bug 139056] New: [jhBuild] cairo build error (-flto)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 26 01:27:12 PST 2014


https://bugs.webkit.org/show_bug.cgi?id=139056

            Bug ID: 139056
           Summary: [jhBuild] cairo build error (-flto)
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: fvallee at connected-labs.com

Using jhbuild w/ GTK port (but EFL is very likely to have same issue).

Cairo fails to build on Debian Testing using binutils (2.24.90.20141023-1) :


using gnu-ld :

  CC     cairo-boilerplate-svg.lo
  CC     cairo-boilerplate-constructors.lo
/usr/bin/ld: -f may not be used without -shared
collect2: error: ld returned 1 exit status
Makefile:1468: recipe for target 'any2ppm' failed
make[4]: *** [any2ppm] Error 1
make[4]: *** Waiting for unfinished jobs....


using gold:

  CCLD   any2ppm
  CC     cairo-boilerplate-xcb.lo
  CC     cairo-boilerplate-egl.lo
  CC     cairo-boilerplate-glx.lo
  CC     cairo-boilerplate-script.lo
  CC     cairo-boilerplate-ps.lo
  CC     cairo-boilerplate-pdf.lo
  CC     cairo-boilerplate-svg.lo
  CC     cairo-boilerplate-constructors.lo
/usr/lib/gold-ld/ld: fatal error: -f/--auxiliary may not be used without -shared
collect2: error: ld returned 1 exit status
Makefile:1468: recipe for target 'any2ppm' failed
make[4]: *** [any2ppm] Error 1


After investigation, it seems the error is related to LTO support.
Cairo has been added some lto support here : 
http://cgit.freedesktop.org/cairo/commit/?id=d486ea30f1a58640a1178de74f705a73845b1cda

This commit is included in cairo package used by jhbuild (http://www.cairographics.org/news/cairo-1.12.8 for gtk or 1.12.4 for ELF).

The lto related commit has been amended here http://cgit.freedesktop.org/cairo/commit/?id=c3645d97ebd24c6f7ad850785d585aebc706a11c and even reverted here http://cgit.freedesktop.org/cairo/commit/?id=c7ff9bb32e20679d6da4e8a2856be716e5bd9e12, however we don't have theses commits.


Strange thing is that lto support is already supposed to be deactivated in cairo after http://trac.webkit.org/changeset/158866.
But it doesn't seems to work using gcc 4.9.1 / binutils 2.24.90.20141023-1.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20141126/688e87aa/attachment-0002.html>


More information about the webkit-unassigned mailing list