Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(526)

Issue 1163943004: Make SharedMemoryHandle a class on Mac. (Closed)

Created:
5 years, 6 months ago by erikchen
Modified:
5 years, 6 months ago
CC:
reveman, chromium-reviews, darin-cc_chromium.org, Daniele Castagna, erikwright+watch_chromium.org, gavinp+memory_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@shared_memory_make_class3_base
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mac: Make SharedMemoryHandle its own class. This is in prepration for allowing SharedMemoryHandle to be backed by both Mach primitives and POSIX fds. Other than a slight change in the wire format for SharedMemoryHandle on Mac, there are no other intended behavior changes. This CL makes a new file shared_memory_handle.h to hold the now expanded logic for SharedMemoryHandle. This CL forks the file shared_memory_posix.cc to shared_memory_mac.cc, since the implementations are about to heavily diverge. BUG=466437 NOPRESUBMIT=true Committed: https://crrev.com/cc9f9127f979acd6eb22103656057a655a0e76a6 Cr-Commit-Position: refs/heads/master@{#335360}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : Rebase against top of tree. #

Patch Set 6 : Fork shared_memory_posix to shared_memory_mac. #

Patch Set 7 : Remove an unnecessary (and incorrect) include on windows. #

Patch Set 8 : Use right include on windows. #

Total comments: 6

Patch Set 9 : Comments from rsesek. #

Patch Set 10 : Fix NACL rewriting of IPC messages. #

Total comments: 11

Patch Set 11 : Rebase against top of tree. #

Patch Set 12 : Comments from rsesek, round two. #

Patch Set 13 : Fix compile error from rebase. #

Patch Set 14 : Fix logic error. #

Total comments: 31

Patch Set 15 : Comments from tsepez. #

Total comments: 2

Patch Set 16 : Rebase against top of tree. #

Patch Set 17 : Comments from piman. #

Patch Set 18 : Rebase against top of tree. #

Patch Set 19 : Fix up shared_memory_mac.cc #

Patch Set 20 : Remove more unused headers that magically appeared from rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+317 lines, -93 lines) Patch
M base/base.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +8 lines, -0 lines 0 comments Download
M base/memory/BUILD.gn View 1 2 3 4 5 2 chunks +7 lines, -0 lines 0 comments Download
M base/memory/shared_memory.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +4 lines, -10 lines 0 comments Download
A base/memory/shared_memory_handle.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +97 lines, -0 lines 0 comments Download
A base/memory/shared_memory_handle_mac.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +90 lines, -0 lines 0 comments Download
A + base/memory/shared_memory_mac.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 15 chunks +13 lines, -59 lines 0 comments Download
M base/memory/shared_memory_nacl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +3 lines, -2 lines 0 comments Download
M base/memory/shared_memory_posix.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 6 chunks +3 lines, -14 lines 0 comments Download
M base/memory/shared_memory_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +8 lines, -5 lines 0 comments Download
M base/memory/shared_memory_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_buffer_pool.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +8 lines, -0 lines 0 comments Download
M ipc/ipc_message_utils.h View 1 2 3 4 5 2 chunks +14 lines, -0 lines 0 comments Download
M ipc/ipc_message_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +56 lines, -0 lines 0 comments Download
M ppapi/proxy/nacl_message_scanner.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 96 (44 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1163943004/60001
5 years, 6 months ago (2015-06-03 22:07:26 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/59256) ios_dbg_simulator_ninja on ...
5 years, 6 months ago (2015-06-03 22:13:12 UTC) #4
erikchen
On 2015/06/03 22:13:12, commit-bot: I haz the power wrote: > Dry run: Try jobs failed ...
5 years, 6 months ago (2015-06-03 22:15:07 UTC) #5
erikchen
On 2015/06/03 22:15:07, erikchen wrote: > On 2015/06/03 22:13:12, commit-bot: I haz the power wrote: ...
5 years, 6 months ago (2015-06-03 22:15:24 UTC) #6
erikchen
rsesek: Please review.
5 years, 6 months ago (2015-06-03 22:16:30 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1163943004/60001
5 years, 6 months ago (2015-06-05 00:46:03 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/59829) ios_dbg_simulator_ninja on ...
5 years, 6 months ago (2015-06-05 00:50:28 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1163943004/80001
5 years, 6 months ago (2015-06-05 01:03:21 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1163943004/120001
5 years, 6 months ago (2015-06-05 01:45:12 UTC) #17
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/68619)
5 years, 6 months ago (2015-06-05 01:53:32 UTC) #19
Robert Sesek
https://codereview.chromium.org/1163943004/diff/160001/base/memory/shared_memory_handle.h File base/memory/shared_memory_handle.h (right): https://codereview.chromium.org/1163943004/diff/160001/base/memory/shared_memory_handle.h#newcode34 base/memory/shared_memory_handle.h:34: POSIX_FD = 0, I think just POSIX and MACH ...
5 years, 6 months ago (2015-06-05 19:27:14 UTC) #20
erikchen
rsesek: PTAL https://codereview.chromium.org/1163943004/diff/160001/base/memory/shared_memory_handle.h File base/memory/shared_memory_handle.h (right): https://codereview.chromium.org/1163943004/diff/160001/base/memory/shared_memory_handle.h#newcode34 base/memory/shared_memory_handle.h:34: POSIX_FD = 0, On 2015/06/05 19:27:14, Robert ...
5 years, 6 months ago (2015-06-06 01:47:00 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1163943004/180001
5 years, 6 months ago (2015-06-06 01:48:24 UTC) #23
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/68945)
5 years, 6 months ago (2015-06-06 01:54:39 UTC) #25
erikchen
On 2015/06/06 01:54:39, commit-bot: I haz the power wrote: > Dry run: Try jobs failed ...
5 years, 6 months ago (2015-06-09 01:37:41 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1163943004/220001
5 years, 6 months ago (2015-06-09 02:21:37 UTC) #30
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/69338)
5 years, 6 months ago (2015-06-09 02:28:35 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1163943004/240001
5 years, 6 months ago (2015-06-11 00:17:02 UTC) #35
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/70024)
5 years, 6 months ago (2015-06-11 00:24:57 UTC) #37
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1163943004/260001
5 years, 6 months ago (2015-06-11 01:10:57 UTC) #39
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1163943004/280001
5 years, 6 months ago (2015-06-11 01:26:00 UTC) #41
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 6 months ago (2015-06-11 02:39:08 UTC) #43
erikchen
rsesek: PTAL
5 years, 6 months ago (2015-06-11 08:05:09 UTC) #47
Robert Sesek
https://codereview.chromium.org/1163943004/diff/280001/base/memory/shared_memory_handle.h File base/memory/shared_memory_handle.h (right): https://codereview.chromium.org/1163943004/diff/280001/base/memory/shared_memory_handle.h#newcode34 base/memory/shared_memory_handle.h:34: enum Mechanism { "Mechanism" seems very verbose to me. ...
5 years, 6 months ago (2015-06-15 21:34:33 UTC) #48
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1163943004/340001
5 years, 6 months ago (2015-06-16 00:59:07 UTC) #51
erikchen
rsesek: PTAL https://codereview.chromium.org/1163943004/diff/280001/base/memory/shared_memory_handle.h File base/memory/shared_memory_handle.h (right): https://codereview.chromium.org/1163943004/diff/280001/base/memory/shared_memory_handle.h#newcode34 base/memory/shared_memory_handle.h:34: enum Mechanism { On 2015/06/15 21:34:33, Robert ...
5 years, 6 months ago (2015-06-16 00:59:27 UTC) #52
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/77200)
5 years, 6 months ago (2015-06-16 01:48:09 UTC) #54
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1163943004/360001
5 years, 6 months ago (2015-06-16 02:21:56 UTC) #56
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/77233)
5 years, 6 months ago (2015-06-16 03:59:29 UTC) #58
Robert Sesek
LGTM https://codereview.chromium.org/1163943004/diff/280001/base/memory/shared_memory_handle.h File base/memory/shared_memory_handle.h (right): https://codereview.chromium.org/1163943004/diff/280001/base/memory/shared_memory_handle.h#newcode34 base/memory/shared_memory_handle.h:34: enum Mechanism { On 2015/06/16 00:59:27, erikchen wrote: ...
5 years, 6 months ago (2015-06-16 22:53:06 UTC) #59
erikchen
thakis: Looking for an OWNER review of base/
5 years, 6 months ago (2015-06-16 23:52:24 UTC) #61
Nico
https://codereview.chromium.org/1163943004/diff/380001/base/base.gypi File base/base.gypi (right): https://codereview.chromium.org/1163943004/diff/380001/base/base.gypi#newcode771 base/base.gypi:771: 'memory/shared_memory_posix.cc', should probably be renamed to shared_memory_linux.cc then? https://codereview.chromium.org/1163943004/diff/380001/base/memory/shared_memory_mac.cc ...
5 years, 6 months ago (2015-06-17 04:03:21 UTC) #62
erikchen
thakis: PTAL https://codereview.chromium.org/1163943004/diff/380001/base/base.gypi File base/base.gypi (right): https://codereview.chromium.org/1163943004/diff/380001/base/base.gypi#newcode771 base/base.gypi:771: 'memory/shared_memory_posix.cc', On 2015/06/17 04:03:20, Nico wrote: > ...
5 years, 6 months ago (2015-06-17 17:38:55 UTC) #63
Nico
lgtm https://codereview.chromium.org/1163943004/diff/380001/base/base.gypi File base/base.gypi (right): https://codereview.chromium.org/1163943004/diff/380001/base/base.gypi#newcode771 base/base.gypi:771: 'memory/shared_memory_posix.cc', On 2015/06/17 17:38:55, erikchen wrote: > On ...
5 years, 6 months ago (2015-06-17 17:42:51 UTC) #64
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1163943004/380001
5 years, 6 months ago (2015-06-17 17:51:27 UTC) #67
erikchen
On 2015/06/17 17:51:27, commit-bot: I haz the power wrote: > CQ is trying da patch. ...
5 years, 6 months ago (2015-06-17 17:52:07 UTC) #69
erikchen
piman: Looking for ppapi/proxy OWNER review. tsepez: Looking for ipc/ OWNER review. dalecurtis: Looking for ...
5 years, 6 months ago (2015-06-17 17:55:11 UTC) #71
DaleCurtis
media/ lgtm since this isn't used on mac yet, but +reveman, dcastagna
5 years, 6 months ago (2015-06-17 18:27:15 UTC) #72
Tom Sepez
Also be sure to do a build with: export GYP_DEFINES="enable_ipc_fuzzer=1" gclient runhooks ninja -C out/Debug ...
5 years, 6 months ago (2015-06-17 18:51:56 UTC) #73
reveman
+mcasas https://codereview.chromium.org/1163943004/diff/380001/content/browser/renderer_host/media/video_capture_buffer_pool.cc File content/browser/renderer_host/media/video_capture_buffer_pool.cc (right): https://codereview.chromium.org/1163943004/diff/380001/content/browser/renderer_host/media/video_capture_buffer_pool.cc#newcode110 content/browser/renderer_host/media/video_capture_buffer_pool.cc:110: return gmb_->GetHandle().type; Unrelated to this patch but the ...
5 years, 6 months ago (2015-06-17 19:24:10 UTC) #75
mcasas
https://codereview.chromium.org/1163943004/diff/380001/content/browser/renderer_host/media/video_capture_buffer_pool.cc File content/browser/renderer_host/media/video_capture_buffer_pool.cc (right): https://codereview.chromium.org/1163943004/diff/380001/content/browser/renderer_host/media/video_capture_buffer_pool.cc#newcode75 content/browser/renderer_host/media/video_capture_buffer_pool.cc:75: #if defined(OS_MACOSX) OS_MACOSX implies OS_POSIX, right? [1] [1] https://code.google.com/p/chromium/codesearch#chromium/src/build/build_config.h&sq=package:chromium&type=cs&l=76 ...
5 years, 6 months ago (2015-06-17 21:33:11 UTC) #76
erikchen
On 2015/06/17 21:33:11, mcasas wrote: > https://codereview.chromium.org/1163943004/diff/380001/content/browser/renderer_host/media/video_capture_buffer_pool.cc > File content/browser/renderer_host/media/video_capture_buffer_pool.cc (right): > > https://codereview.chromium.org/1163943004/diff/380001/content/browser/renderer_host/media/video_capture_buffer_pool.cc#newcode75 > ...
5 years, 6 months ago (2015-06-18 17:57:37 UTC) #79
erikchen
https://codereview.chromium.org/1163943004/diff/380001/base/memory/shared_memory_handle.h File base/memory/shared_memory_handle.h (right): https://codereview.chromium.org/1163943004/diff/380001/base/memory/shared_memory_handle.h#newcode45 base/memory/shared_memory_handle.h:45: // Constructs a SharedMemoryHandle backed by |file_descriptor|. On 2015/06/17 ...
5 years, 6 months ago (2015-06-18 17:58:33 UTC) #80
Tom Sepez
lgtm
5 years, 6 months ago (2015-06-18 18:34:05 UTC) #81
piman
LGTM+nit https://codereview.chromium.org/1163943004/diff/440001/base/memory/shared_memory_handle.h File base/memory/shared_memory_handle.h (right): https://codereview.chromium.org/1163943004/diff/440001/base/memory/shared_memory_handle.h#newcode56 base/memory/shared_memory_handle.h:56: SharedMemoryHandle(const base::FileDescriptor& file_descriptor); nit: explicit
5 years, 6 months ago (2015-06-19 01:52:45 UTC) #82
erikchen
https://codereview.chromium.org/1163943004/diff/440001/base/memory/shared_memory_handle.h File base/memory/shared_memory_handle.h (right): https://codereview.chromium.org/1163943004/diff/440001/base/memory/shared_memory_handle.h#newcode56 base/memory/shared_memory_handle.h:56: SharedMemoryHandle(const base::FileDescriptor& file_descriptor); On 2015/06/19 01:52:45, piman (Very slow ...
5 years, 6 months ago (2015-06-19 01:58:24 UTC) #83
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1163943004/480001
5 years, 6 months ago (2015-06-19 01:58:48 UTC) #86
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/79176) mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 6 months ago (2015-06-19 02:02:59 UTC) #88
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1163943004/580001
5 years, 6 months ago (2015-06-19 20:06:12 UTC) #93
commit-bot: I haz the power
Committed patchset #20 (id:580001)
5 years, 6 months ago (2015-06-19 22:16:33 UTC) #94
commit-bot: I haz the power
Patchset 20 (id:??) landed as https://crrev.com/cc9f9127f979acd6eb22103656057a655a0e76a6 Cr-Commit-Position: refs/heads/master@{#335360}
5 years, 6 months ago (2015-06-19 22:18:38 UTC) #95
scottmg
5 years, 6 months ago (2015-06-19 22:43:25 UTC) #96
Message was sent while issue was closed.
A revert of this CL (patchset #20 id:580001) has been created in
https://codereview.chromium.org/1200473003/ by scottmg@chromium.org.

The reason for reverting is: Possibly breaking Mac build:

FAILED: cd ../../third_party/libyuv; export
BUILT_PRODUCTS_DIR=/b/build/slave/GPU_Mac_Builder/build/src/out/Release; export
CONFIGURATION=Release; export PRODUCT_NAME=libyuv_nacl; export
SDKROOT=/Applications/Xcode5.1.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk;
export
SRCROOT=/b/build/slave/GPU_Mac_Builder/build/src/out/Release/../../third_party/libyuv;
export SOURCE_ROOT="${SRCROOT}"; export
TARGET_BUILD_DIR=/b/build/slave/GPU_Mac_Builder/build/src/out/Release; export
TEMP_DIR="${TMPDIR}";python ../../native_client/build/build_nexe.py --root ../..
--product-dir ../../out/Release/xyz --config-name Release -t
../../native_client/toolchain/ --arch pnacl --build newlib_plib --name
../../out/Release/gen/tc_pnacl_newlib/lib/libyuv_nacl.a --objdir
../../out/Release/obj/third_party/libyuv/libyuv_nacl.gen/pnacl_newlib-pnacl/libyuv_nacl
"--include-dirs=../../out/Release/gen/tc_pnacl_newlib/include ../..
\"../../out/Release/gen\" include" "--compile_flags=-O2 -g -Wall
-fdiagnostics-show-option -Werror  -Wno-unused-function -Wno-char-subscripts
-Wno-c++11-extensions -Wno-unnamed-type-template-args -Wno-extra-semi
-Wno-unused-private-field -Wno-char-subscripts -Wno-unused-function
\"-std=gnu++11\" " --gomadir /b/build/goma "--defines=\"__STDC_LIMIT_MACROS=1\"
\"__STDC_FORMAT_MACROS=1\" \"_GNU_SOURCE=1\" \"_DEFAULT_SOURCE=1\"
\"_BSD_SOURCE=1\" \"_POSIX_C_SOURCE=199506\" \"_XOPEN_SOURCE=600\"
\"DYNAMIC_ANNOTATIONS_ENABLED=1\" \"DYNAMIC_ANNOTATIONS_PREFIX=NACL_\"
\"NACL_BUILD_ARCH=x86\" V8_DEPRECATION_WARNINGS
\"__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE=0\" CHROMIUM_BUILD
\"CR_CLANG_REVISION=239765-1\" \"USE_LIBJPEG_TURBO=1\" ENABLE_ONE_CLICK_SIGNIN
ENABLE_PRE_SYNC_BACKUP \"ENABLE_REMOTING=1\" \"ENABLE_WEBRTC=1\"
\"ENABLE_MEDIA_ROUTER=1\" USE_PROPRIETARY_CODECS ENABLE_PEPPER_CDMS
ENABLE_CONFIGURATION_POLICY ENABLE_NOTIFICATIONS \"ENABLE_HIDPI=1\"
SYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE DONT_EMBED_BUILD_METADATA
\"DCHECK_ALWAYS_ON=1\" \"ENABLE_TASK_MANAGER=1\" \"ENABLE_EXTENSIONS=1\"
\"ENABLE_PLUGIN_INSTALLATION=1\" \"ENABLE_PLUGINS=1\"
\"ENABLE_SESSION_SERVICE=1\" \"ENABLE_THEMES=1\" \"ENABLE_AUTOFILL_DIALOG=1\"
\"ENABLE_BACKGROUND=1\" \"ENABLE_GOOGLE_NOW=1\" \"CLD_VERSION=2\"
\"ENABLE_PRINTING=1\" \"ENABLE_BASIC_PRINTING=1\" \"ENABLE_PRINT_PREVIEW=1\"
\"ENABLE_SPELLCHECK=1\" \"ENABLE_CAPTIVE_PORTAL_DETECTION=1\"
\"ENABLE_APP_LIST=1\" \"ENABLE_SETTINGS_APP=1\" \"ENABLE_SUPERVISED_USERS=1\"
\"ENABLE_SERVICE_DISCOVERY=1\" \"ENABLE_WIFI_BOOTSTRAPPING=1\"
V8_USE_EXTERNAL_STARTUP_DATA FULL_SAFE_BROWSING SAFE_BROWSING_CSD
SAFE_BROWSING_DB_LOCAL SAFE_BROWSING_SERVICE \"USE_LIBPCI=1\" \"USE_OPENSSL=1\""
"--link_flags=-B../../out/Release/gen/tc_pnacl_newlib/lib  "
"--source-list=../../out/gypfiles/third_party/libyuv/pnacl_newlib.libyuv_nacl.source_list.gypcmd"
source/row_any.cc:13:10: fatal error: 'memory.h' file not found
#include <memory.h>  // for memcpy()
         ^
1 error generated.
FAILED with 1: /b/build/goma/gomacc
../../native_client/toolchain/mac_x86/pnacl_newlib/bin/pnacl-clang++ -c
source/row_any.cc -o
../../out/Release/obj/third_party/libyuv/libyuv_nacl.gen/pnacl_newlib-pnacl/libyuv_nacl/row_any_67f422e1.o
-MD -MF
../../out/Release/obj/third_party/libyuv/libyuv_nacl.gen/pnacl_newlib-pnacl/libyuv_nacl/row_any_67f422e1.o.d
-O2 -g -Wall -fdiagnostics-show-option -Werror -Wno-unused-function
-Wno-char-subscripts -Wno-c++11-extensions -Wno-unnamed-type-template-args
-Wno-extra-semi -Wno-unused-private-field -Wno-char-subscripts
-Wno-unused-function -std=gnu++11 -D__STDC_LIMIT_MACROS=1
-D__STDC_FORMAT_MACROS=1 -D_GNU_SOURCE=1 -D_DEFAULT_SOURCE=1 -D_BSD_SOURCE=1
-D_POSIX_C_SOURCE=199506 -D_XOPEN_SOURCE=600 -DDYNAMIC_ANNOTATIONS_ENABLED=1
-DDYNAMIC_ANNOTATIONS_PREFIX=NACL_ -DV8_DEPRECATION_WARNINGS
-D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE=0 -DCHROMIUM_BUILD
-DCR_CLANG_REVISION=239765-1 -DUSE_LIBJPEG_TURBO=1 -DENABLE_ONE_CLICK_SIGNIN
-DENABLE_PRE_SYNC_BACKUP -DENABLE_REMOTING=1 -DENABLE_WEBRTC=1
-DENABLE_MEDIA_ROUTER=1 -DUSE_PROPRIETARY_CODECS -DENABLE_PEPPER_CDMS
-DENABLE_CONFIGURATION_POLICY -DENABLE_NOTIFICATIONS -DENABLE_HIDPI=1
-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE -DDONT_EMBED_BUILD_METADATA
-DDCHECK_ALWAYS_ON=1 -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=1
-DENABLE_PLUGIN_INSTALLATION=1 -DENABLE_PLUGINS=1 -DENABLE_SESSION_SERVICE=1
-DENABLE_THEMES=1 -DENABLE_AUTOFILL_DIALOG=1 -DENABLE_BACKGROUND=1
-DENABLE_GOOGLE_NOW=1 -DCLD_VERSION=2 -DENABLE_PRINTING=1
-DENABLE_BASIC_PRINTING=1 -DENABLE_PRINT_PREVIEW=1 -DENABLE_SPELLCHECK=1
-DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1
-DENABLE_SUPERVISED_USERS=1 -DENABLE_SERVICE_DISCOVERY=1
-DENABLE_WIFI_BOOTSTRAPPING=1 -DV8_USE_EXTERNAL_STARTUP_DATA
-DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL
-DSAFE_BROWSING_SERVICE -DUSE_LIBPCI=1 -DUSE_OPENSSL=1 -DNACL_WINDOWS=0
-DNACL_OSX=0 -DNACL_LINUX=0 -DNACL_ANDROID=0 -DNACL_BUILD_ARCH=pnacl
-I../../out/Release/gen/tc_pnacl_newlib/include -I../.. -I../../out/Release/gen
-Iinclude -DNDEBUG -std=gnu++0x -Wno-deprecated-register
Compile options: ['-O2', '-g', '-Wall', '-fdiagnostics-show-option', '-Werror',
'-Wno-unused-function', '-Wno-char-subscripts', '-Wno-c++11-extensions',
'-Wno-unnamed-type-template-args', '-Wno-extra-semi',
'-Wno-unused-private-field', '-Wno-char-subscripts', '-Wno-unused-function',
'-std=gnu++11', '-D__STDC_LIMIT_MACROS=1', '-D__STDC_FORMAT_MACROS=1',
'-D_GNU_SOURCE=1', '-D_DEFAULT_SOURCE=1', '-D_BSD_SOURCE=1',
'-D_POSIX_C_SOURCE=199506', '-D_XOPEN_SOURCE=600',
'-DDYNAMIC_ANNOTATIONS_ENABLED=1', '-DDYNAMIC_ANNOTATIONS_PREFIX=NACL_',
'-DV8_DEPRECATION_WARNINGS',
'-D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE=0', '-DCHROMIUM_BUILD',
'-DCR_CLANG_REVISION=239765-1', '-DUSE_LIBJPEG_TURBO=1',
'-DENABLE_ONE_CLICK_SIGNIN', '-DENABLE_PRE_SYNC_BACKUP', '-DENABLE_REMOTING=1',
'-DENABLE_WEBRTC=1', '-DENABLE_MEDIA_ROUTER=1', '-DUSE_PROPRIETARY_CODECS',
'-DENABLE_PEPPER_CDMS', '-DENABLE_CONFIGURATION_POLICY',
'-DENABLE_NOTIFICATIONS', '-DENABLE_HIDPI=1',
'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE', '-DDONT_EMBED_BUILD_METADATA',
'-DDCHECK_ALWAYS_ON=1', '-DENABLE_TASK_MANAGER=1', '-DENABLE_EXTENSIONS=1',
'-DENABLE_PLUGIN_INSTALLATION=1', '-DENABLE_PLUGINS=1',
'-DENABLE_SESSION_SERVICE=1', '-DENABLE_THEMES=1', '-DENABLE_AUTOFILL_DIALOG=1',
'-DENABLE_BACKGROUND=1', '-DENABLE_GOOGLE_NOW=1', '-DCLD_VERSION=2',
'-DENABLE_PRINTING=1', '-DENABLE_BASIC_PRINTING=1', '-DENABLE_PRINT_PREVIEW=1',
'-DENABLE_SPELLCHECK=1', '-DENABLE_CAPTIVE_PORTAL_DETECTION=1',
'-DENABLE_APP_LIST=1', '-DENABLE_SETTINGS_APP=1', '-DENABLE_SUPERVISED_USERS=1',
'-DENABLE_SERVICE_DISCOVERY=1', '-DENABLE_WIFI_BOOTSTRAPPING=1',
'-DV8_USE_EXTERNAL_STARTUP_DATA', '-DFULL_SAFE_BROWSING', '-DSAFE_BROWSING_CSD',
'-DSAFE_BROWSING_DB_LOCAL', '-DSAFE_BROWSING_SERVICE', '-DUSE_LIBPCI=1',
'-DUSE_OPENSSL=1', '-DNACL_WINDOWS=0', '-DNACL_OSX=0', '-DNACL_LINUX=0',
'-DNACL_ANDROID=0', '-DNACL_BUILD_ARCH=pnacl',
'-I../../out/Release/gen/tc_pnacl_newlib/include', '-I../..',
'-I../../out/Release/gen', '-Iinclude', '-DNDEBUG']
Linker options: ['-B../../out/Release/gen/tc_pnacl_newlib/lib']
Traceback (most recent call last):
  File "../../native_client/build/build_nexe.py", line 849, in CompileProcess
    output_queue.put((filename, build.Compile(filename)))
  File "../../native_client/build/build_nexe.py", line 579, in Compile
    raise Error('FAILED with %d: %s' % (err, ' '.join(cmd_line)))
Error: FAILED with 1: /b/build/goma/gomacc
../../native_client/toolchain/mac_x86/pnacl_newlib/bin/pnacl-clang++ -c
source/row_any.cc -o
../../out/Release/obj/third_party/libyuv/libyuv_nacl.gen/pnacl_newlib-pnacl/libyuv_nacl/row_any_67f422e1.o
-MD -MF
../../out/Release/obj/third_party/libyuv/libyuv_nacl.gen/pnacl_newlib-pnacl/libyuv_nacl/row_any_67f422e1.o.d
-O2 -g -Wall -fdiagnostics-show-option -Werror -Wno-unused-function
-Wno-char-subscripts -Wno-c++11-extensions -Wno-unnamed-type-template-args
-Wno-extra-semi -Wno-unused-private-field -Wno-char-subscripts
-Wno-unused-function -std=gnu++11 -D__STDC_LIMIT_MACROS=1
-D__STDC_FORMAT_MACROS=1 -D_GNU_SOURCE=1 -D_DEFAULT_SOURCE=1 -D_BSD_SOURCE=1
-D_POSIX_C_SOURCE=199506 -D_XOPEN_SOURCE=600 -DDYNAMIC_ANNOTATIONS_ENABLED=1
-DDYNAMIC_ANNOTATIONS_PREFIX=NACL_ -DV8_DEPRECATION_WARNINGS
-D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE=0 -DCHROMIUM_BUILD
-DCR_CLANG_REVISION=239765-1 -DUSE_LIBJPEG_TURBO=1 -DENABLE_ONE_CLICK_SIGNIN
-DENABLE_PRE_SYNC_BACKUP -DENABLE_REMOTING=1 -DENABLE_WEBRTC=1
-DENABLE_MEDIA_ROUTER=1 -DUSE_PROPRIETARY_CODECS -DENABLE_PEPPER_CDMS
-DENABLE_CONFIGURATION_POLICY -DENABLE_NOTIFICATIONS -DENABLE_HIDPI=1
-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE -DDONT_EMBED_BUILD_METADATA
-DDCHECK_ALWAYS_ON=1 -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=1
-DENABLE_PLUGIN_INSTALLATION=1 -DENABLE_PLUGINS=1 -DENABLE_SESSION_SERVICE=1
-DENABLE_THEMES=1 -DENABLE_AUTOFILL_DIALOG=1 -DENABLE_BACKGROUND=1
-DENABLE_GOOGLE_NOW=1 -DCLD_VERSION=2 -DENABLE_PRINTING=1
-DENABLE_BASIC_PRINTING=1 -DENABLE_PRINT_PREVIEW=1 -DENABLE_SPELLCHECK=1
-DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1
-DENABLE_SUPERVISED_USERS=1 -DENABLE_SERVICE_DISCOVERY=1
-DENABLE_WIFI_BOOTSTRAPPING=1 -DV8_USE_EXTERNAL_STARTUP_DATA
-DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL
-DSAFE_BROWSING_SERVICE -DUSE_LIBPCI=1 -DUSE_OPENSSL=1 -DNACL_WINDOWS=0
-DNACL_OSX=0 -DNACL_LINUX=0 -DNACL_ANDROID=0 -DNACL_BUILD_ARCH=pnacl
-I../../out/Release/gen/tc_pnacl_newlib/include -I../.. -I../../out/Release/gen
-Iinclude -DNDEBUG -std=gnu++0x -Wno-deprecated-register

ninja: build stopped: subcommand failed.
.

Powered by Google App Engine
This is Rietveld 408576698