| Summary: | [jhBuild] cairo build error (-flto) | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Fabien Vallée <fvallee> | ||||
| Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | berto, clopez, commit-queue, gyuyoung.kim, ltilve, mrobinson, nick.diego | ||||
| Priority: | P2 | ||||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Attachments: |
|
||||||
|
Description
Fabien Vallée
2014-11-26 01:27:12 PST
The issue can be fixed in Tools/gtk/jhbuild.modules updating the cairo section:
- <autotools id="cairo" autogen-sh="configure"
- autogenargs="--enable-gl=yes --enable-egl=yes --enable-glx=yes ac_cv_func_rsvg_pixbuf_from_file=no"
- makeargs="CFLAGS=-fno-lto CXXFLAGS=-fno-lto LDFLAGS=-fno-lto">
+ <autotools id="cairo"
+ autogenargs="--enable-gl=yes --enable-egl=yes --enable-glx=yes ac_cv_func_rsvg_pixbuf_from_file=no --disable-lto"
+ makeargs="">
<dependencies>
<dep package="fontconfig"/>
<dep package="pixman"/>
@@ -71,6 +71,7 @@
repo="cairographics.org"
hash="sha256:8fbb6fc66117ab4100bad830cb4479497e53c6f3facb98bf05c8d298554ebdd9"
md5sum="8b3dcade859c44fb7e56fc68edfe9a45">
+ <patch file="cairo-1.12.8-add_disable-lto.patch" strip="1"/>
</branch>
</autotools>
1) apply cairo commit "configure.ac: Add a --disable-lto configure option"
http://cgit.freedesktop.org/cairo/commit/?id=c3645d97ebd24c6f7ad850785d585aebc706a11c
2) add the --disable-lto to autogenargs
3) remove makeargs (CFLAGS=-fno-lto CXXFLAGS=-fno-lto LDFLAGS=-fno-lto)
4) remove autogen-sh="configure" to force the updated configure.ac to be reparsed
I don't think the changes are good enough to be submitted as-is (but they are good enough to fix my build and are not breaking build w/ gcc 4.8.1 / ld 2.23.2).
I can confirm that I have applied these changes and they are also repairing my build. I think that it would be a good idea to format them and submit the patch. Created attachment 243002 [details]
Patch
uploaded patch "as-is", if anyone is willing to look at this issue, please feel free to review and/or amend and/or discard the patch and find another way to fix the build. Thanks. It works fine, thanks! Comment on attachment 243002 [details] Patch Clearing flags on attachment: 243002 Committed r177789: <http://trac.webkit.org/changeset/177789> All reviewed patches have been landed. Closing bug. |