Closed
Bug 1270879
Opened 10 years ago
Closed 10 years ago
Build Issue : Build still fails, looks like something within the crash reporter?
Categories
(Firefox OS Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1276927
People
(Reporter: nhirata, Assigned: gsvelto)
References
Details
(Whiteboard: fixed-in-pine)
Attachments
(5 files)
As per https://bugzilla.mozilla.org/show_bug.cgi?id=1269422#c9; build still fails.
| Reporter | ||
Comment 1•10 years ago
|
||
to note I found inbound builds for aries and they both fail as well:
https://tools.taskcluster.net/task-graph-inspector/#GT3br7UQTcyuRyR0MLHoUw/
https://tools.taskcluster.net/task-inspector/#M_a9e1mYSoSxtYAWA6kG_g/
https://tools.taskcluster.net/task-inspector/#YJlCLXFlSWWIH8dxoyCYFg
| Assignee | ||
Comment 2•10 years ago
|
||
Looks like this might have been caused by bug 1252804 which changed the way the crash reporter includes are handled.
| Assignee | ||
Comment 3•10 years ago
|
||
I just confirmed that it's indeed bug 1252804, I'll try to fix it. But guess what, there's more breakage still!
Assignee: nobody → gsvelto
Status: NEW → ASSIGNED
| Assignee | ||
Comment 4•10 years ago
|
||
Michael, I'm trying to figure out the breakage here but I cannot seem to put my finger on it. Since bug 1252804 landed it seems that we're not picking LOCAL_INCLUDES any more while building the files in the toolkit/crashreporter/google-breakpad/src/common/linux directory. The sources there are listed under HOST_SOURCES so I tried to alter config/rules.mk so that the rule for building HOST_CPPOBJS picks up LOCAL_INCLUDES correctly but it doesn't seem to help. Since you authored the patch there could you help me figure out what's wrong here?
Flags: needinfo?(mshal)
Comment 5•10 years ago
|
||
The includes were originally added in bug 792391, and were done in a way that they only applied to the target files, not the host files. When I moved them to moz.build in bug 1252804, it seemed like this was no longer an issue because everything built on try, but we don't build B2G on try anymore. So I believe the problem is that you now *are* picking up the LOCAL_INCLUDES to '/toolkit/crashreporter/gonk-include' for host files whereas you weren't before.
ted's suggestion in https://bugzilla.mozilla.org/show_bug.cgi?id=1252804#c3 is to build with --disable-crashreporter.
Another option if you can't do that might be to move the SOURCES and UNIFIED_SOURCES from toolkit/crashreporter/google-breakpad/src/common/linux/moz.build to this block a few directories up: https://dxr.mozilla.org/mozilla-central/rev/043082cb7bd8490c60815f67fbd1f33323ad7663/toolkit/crashreporter/moz.build#31
Then you could just leave the HOST_SOURCES and such in the linux/moz.build, and remove the LOCAL_INCLUDES from there (the same LOCAL_INCLUDES are already in toolkit/crashreporter/moz.build)
I haven't actually tried that though - feel free to ping me if you need a hand.
Flags: needinfo?(mshal)
| Reporter | ||
Comment 6•10 years ago
|
||
If we "--disable-crashreporter"; won't we lose the crashreporter from reporting crashing in B2G?
Comment 7•10 years ago
|
||
I would guess so. Let me know if moving things into toolkit/crashreporter/moz.build presents a problem.
| Assignee | ||
Comment 8•10 years ago
|
||
(In reply to Michael Shal [:mshal] from comment #5)
> The includes were originally added in bug 792391, and were done in a way
> that they only applied to the target files, not the host files. When I moved
> them to moz.build in bug 1252804, it seemed like this was no longer an issue
> because everything built on try, but we don't build B2G on try anymore. So I
> believe the problem is that you now *are* picking up the LOCAL_INCLUDES to
> '/toolkit/crashreporter/gonk-include' for host files whereas you weren't
> before.
You're right, somehow I got it backwards while looking at the compiler invocation parameters.
> ted's suggestion in https://bugzilla.mozilla.org/show_bug.cgi?id=1252804#c3
> is to build with --disable-crashreporter.
>
> Another option if you can't do that might be to move the SOURCES and
> UNIFIED_SOURCES from
> toolkit/crashreporter/google-breakpad/src/common/linux/moz.build to this
> block a few directories up:
> https://dxr.mozilla.org/mozilla-central/rev/
> 043082cb7bd8490c60815f67fbd1f33323ad7663/toolkit/crashreporter/moz.build#31
>
> Then you could just leave the HOST_SOURCES and such in the linux/moz.build,
> and remove the LOCAL_INCLUDES from there (the same LOCAL_INCLUDES are
> already in toolkit/crashreporter/moz.build)
>
> I haven't actually tried that though - feel free to ping me if you need a
> hand.
I'll give it a spin and see if it fixes the problem, thanks!
| Assignee | ||
Comment 9•10 years ago
|
||
Yep, moving the sources around seems to do the trick. I'm now checking if this breaks anything else.
| Assignee | ||
Comment 10•10 years ago
|
||
This is a WIP patch that fixes the crashreporter build on b2g, but breaks Android and Linux. Nothing definitive yet but it can be used to check other build problems while I polish it.
Comment 11•10 years ago
|
||
This is failing even on b2g for me :/
Comment 12•10 years ago
|
||
Maybe we should instead do bug 1091975 ?
Comment 13•10 years ago
|
||
Removing the LOCAL_INCLUDES that references gonk-includes fixed the build failure from attachment 8753817 [details]
Comment 14•10 years ago
|
||
With this change (removing all changes made previously by gabriele) I am able to build b2g (z3c kk). Does it makes sense?
Attachment #8753892 -
Flags: feedback?(mshal)
Comment 15•10 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/53594/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/53594/
Comment 16•10 years ago
|
||
What I currently see is libbreakpad_common_linux_s.a is not being build. It's required by testing/tools/fileid.
Comment 17•10 years ago
|
||
Comment on attachment 8753892 [details]
workaround
Looks fine to me if it's working properly for you. In bug 1069556 there is this comment:
* Upstream removed their Android-compat sys/ucontext.h because the Android NDK
added it, but the bionic we're using for Gonk builds is too old, so add a
copy of sys/ucontext.h from bionic master to keep Gonk building.
Is that no longer relevant?
Attachment #8753892 -
Flags: feedback?(mshal) → feedback+
Comment 18•10 years ago
|
||
(In reply to Thomas Zimmermann [:tzimmermann] [:tdz] from comment #16)
> What I currently see is libbreakpad_common_linux_s.a is not being build.
> It's required by testing/tools/fileid.
Can you clarify which patch this is an issue with? Or is it with the current tip and no patches applied?
Comment 19•10 years ago
|
||
(In reply to Michael Shal [:mshal] from comment #17)
> Comment on attachment 8753892 [details]
> workaround
>
> Looks fine to me if it's working properly for you. In bug 1069556 there is
> this comment:
>
> * Upstream removed their Android-compat sys/ucontext.h because the Android
> NDK
> added it, but the bionic we're using for Gonk builds is too old, so add a
> copy of sys/ucontext.h from bionic master to keep Gonk building.
>
> Is that no longer relevant?
Hm, good catch, I will verify.
Comment 20•10 years ago
|
||
I am going to push this temp patch to pine, to unblock and I will investigate next week
Comment 21•10 years ago
|
||
Whiteboard: fixed-in-pine
Comment 22•10 years ago
|
||
(In reply to Michael Shal [:mshal] from comment #18)
> (In reply to Thomas Zimmermann [:tzimmermann] [:tdz] from comment #16)
> > What I currently see is libbreakpad_common_linux_s.a is not being build.
> > It's required by testing/tools/fileid.
>
> Can you clarify which patch this is an issue with? Or is it with the current
> tip and no patches applied?
This happens with the WIP patch [1] applied.
[1] https://bugzilla.mozilla.org/attachment.cgi?id=8753314
Comment 23•10 years ago
|
||
(In reply to Thomas Zimmermann [:tzimmermann] [:tdz] from comment #22)
> (In reply to Michael Shal [:mshal] from comment #18)
> > (In reply to Thomas Zimmermann [:tzimmermann] [:tdz] from comment #16)
> > > What I currently see is libbreakpad_common_linux_s.a is not being build.
> > > It's required by testing/tools/fileid.
> >
> > Can you clarify which patch this is an issue with? Or is it with the current
> > tip and no patches applied?
>
> This happens with the WIP patch [1] applied.
>
> [1] https://bugzilla.mozilla.org/attachment.cgi?id=8753314
Never mind. Alex' patch seems to work.
Comment 24•10 years ago
|
||
After applying the proposed workaround I hit this error:
--
libdom_presentation.a.desc
In file included from /root/B2G/gecko/toolkit/crashreporter/google-breakpad/src/common/linux/elfutils.h:37:0,
from /root/B2G/gecko/toolkit/crashreporter/google-breakpad/src/common/linux/file_id.cc:44:
/root/B2G/objdir-gecko/dist/system_wrappers/link.h:3:23: fatal error: link.h: No such file or directory
#include_next <link.h>
^
compilation terminated
--
Not really sure of the "link.h" referenced here, any idea ?
Thanks,
s.
Flags: needinfo?(gsvelto)
Comment 25•10 years ago
|
||
(In reply to sahid from comment #24)
> After applying the proposed workaround I hit this error:
>
> --
> libdom_presentation.a.desc
> In file included from
> /root/B2G/gecko/toolkit/crashreporter/google-breakpad/src/common/linux/
> elfutils.h:37:0,
> from
> /root/B2G/gecko/toolkit/crashreporter/google-breakpad/src/common/linux/
> file_id.cc:44:
> /root/B2G/objdir-gecko/dist/system_wrappers/link.h:3:23: fatal error:
> link.h: No such file or directory
> #include_next <link.h>
> ^
> compilation terminated
> --
>
> Not really sure of the "link.h" referenced here, any idea ?
>
> Thanks,
> s.
The preprocessor searches the include paths in a specific order. 'include_next' includes the next found header. Apparently, there's none.
I have a fix for this problem in bug 1276927.
| Assignee | ||
Comment 26•10 years ago
|
||
Clearing my NI since Thomas already responded.
Flags: needinfo?(gsvelto)
Comment 27•10 years ago
|
||
I'm closing this as duplicated as the problem has been fixed by the other bug's patch set.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•