Closed Bug 1091975 Opened 7 years ago Closed 3 years ago

Android NDK r10c failure building breakpad: error: 'ElfELFSIZE_Addr' does not name a type

Categories

(Toolkit :: Crash Reporting, defect)

ARM
Android
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dougc, Unassigned)

Details

(Whiteboard: [ndk-r10c])

Attachments

(1 file)

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*)
This will be fixed by r1300 on BreakPad upstream.


r1300 | rmcilroy@chromium.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
R=mark@chromium.org

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.