Closed Bug 1091975 Opened 7 years ago Closed 3 years ago
Android NDK r10c failure building breakpad: error: 'Elf
ELFSIZE _Addr' does not name a type
Looks like ELFSIZE is not defined for android-21. A workaround is to use ARCH_ELFSIZE in toolkit/crashreporter/google-breakpad/src/common/android/include/link.h There are still references to ELFSIZE in NDK r10c android-21 header files, so this might be a regression in NDK.
There are DEFINES for ELFSIZE in various moz.build files. Is one missing?
ah, it's for gonk only.
Same issue building: tools/profiler/LulElfInt.h
We shouldn't be using ELFSIZE at all. It's not defined in glibc, and hardcoding 32 for gonk is wrong anyways, it should be related to sizeof(void*)
Note what you asked for, but this quick patch works for NDK r8d+. Try build: https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=1afc289b6c3b
This will be fixed by r1300 on BreakPad upstream. r1300 | firstname.lastname@example.org | 2014-04-03 08:02:31 +0900 (Thu, 03 Apr 2014) | 8 lines Remove some unecessary Android system header definitions. Newer NDKs include some additional headers needed by Breakpad, so we can remove these redefinitions. BUG=358831,335641,354405 Remail@example.com Review URL: https://breakpad.appspot.com/1374002
You're welcome to try to cherry-pick the upstream revision. I'm not sure if it breaks building with NDKs older than r10c though, which would make integrating it directly a little tricky.
This has been fixed a while ago.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.