This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/45375] [meta-bug] Issues with building Mozilla with LTO
- From: "jamborm at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 5 Aug 2011 13:48:04 +0000
- Subject: [Bug lto/45375] [meta-bug] Issues with building Mozilla with LTO
- Auto-submitted: auto-generated
- References: <bug-45375-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45375
--- Comment #110 from Martin Jambor <jamborm at gcc dot gnu.org> 2011-08-05 13:47:30 UTC ---
(In reply to comment #107)
>
> Martin, you mentioned similar problem earlier, perhaps you already have
> solution?
I went for adding the includes. I wasn't looking into dependencies in
much detail and ended up just adding #include <unistd.h> to:
- ipc/chromium/src/base/file_util.cc
- ipc/chromium/src/base/message_pump_libevent.cc
- ipc/chromium/src/base/file_util_linux.cc
- toolkit/crashreporter/client/crashreporter_gtk_common.cpp
However, I also suspected some configure problem because I also had to
tweak #if's in ipc/chromium/src/base/time_posix.cc.
The patch that I use to do this is at
http://labs.suse.cz/mjambor/undefined_and_pp_errors.diff
In order to LTO build mozilla I currently need this one, a patch
adding attribute used to various places I got from you and a simple
patch fixing mozilla bug 652563.