Closed
Bug 1204985
Opened 9 years ago
Closed 9 years ago
fix mach SharedMemory to build for iOS
Categories
(Core :: IPC, defect)
Core
IPC
Tracking
()
RESOLVED
FIXED
mozilla44
Tracking | Status | |
---|---|---|
firefox44 | --- | fixed |
People
(Reporter: ted, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
bug 1161166 changed Darwin to use stuff that doesn't build on iOS. It's possible we could make it work, but for now I just want to switch back to the POSIX shmem.
Reporter | ||
Comment 2•9 years ago
|
||
I can't remember offhand, I will try building with it tomorrow to see.
Reporter | ||
Comment 3•9 years ago
|
||
OK, so, in my local tree I pulled a newer mach_ipc_mac.h from upstream Chromium, and that #includes Foundation.h: http://hg.mozilla.org/users/tmielczarek_mozilla.com/gecko-ios/file/default/ipc/chromium/src/chrome/common/mach_ipc_mac.h#l16 ...which is ObjC code, so it fails because we wind up including it in regular C++ files.
Comment 4•9 years ago
|
||
So the right fix is to not leak the ObjC stuff out into C++. That sounds at least tractable.
Reporter | ||
Comment 5•9 years ago
|
||
So if I renamed that .cpp file to .mm, I get to the root problem: 0:10.10 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk/usr/include/mach/mach_vm.h:1:2: error: mach_vm.h unsupported.
Reporter | ||
Comment 6•9 years ago
|
||
Breakpad has workarounds for this: https://chromium.googlesource.com/breakpad/breakpad/+/master/src/client/mac/handler/mach_vm_compat.h#35
Reporter | ||
Updated•9 years ago
|
Summary: use non-mach SharedMemory for iOS → fix mach SharedMemory to build for iOS
Reporter | ||
Comment 7•9 years ago
|
||
bug 1204985 - make SharedMemoryBasic_mach build on iOS. r?billm
Attachment #8664381 -
Flags: review?(wmccloskey)
Comment on attachment 8664381 [details] MozReview Request: bug 1204985 - make SharedMemoryBasic_mach build on iOS. r?billm https://reviewboard.mozilla.org/r/19947/#review17985
Attachment #8664381 -
Flags: review?(wmccloskey) → review+
Reporter | ||
Comment 9•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=cb291e7e0193
Reporter | ||
Comment 10•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=b16238102bba
Reporter | ||
Comment 11•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/edf2e825c10d245ae7d45e2e1f554b3271cc1f31 bug 1204985 - make SharedMemoryBasic_mach build on iOS. r=billm
Reporter | ||
Comment 12•9 years ago
|
||
best-of-bugzilla |
https://hg.mozilla.org/integration/mozilla-inbound/rev/febb7ebc1644ba8b3f670c4d414f23aef6d154d3 bug 1204985 horrible clobber-avoidance bustage fix r=YOLO CLOSED TREE
Comment 13•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/edf2e825c10d https://hg.mozilla.org/mozilla-central/rev/febb7ebc1644
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox44:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
You need to log in
before you can comment on or make changes to this bug.
Description
•