不幸的问题还是出现了:Chromium代码上整理patch(working目录/master分支),部分文件做了git checkout恢复,结果GYP再编译就出错了

[email protected]:~/Projects/Chromium/src$ ninja -C out/Release android_webview_apk

ninja: Entering directory `out/Release‘

[3/24] CXX obj/android_webview/browser/android_webview_common.shared_renderer_state.o

FAILED: /home/redtea/Projects/Chromium/src/third_party/android_tools/ndk//toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ -MMD -MF obj/android_webview/browser/android_webview_common.shared_renderer_state.o.d -DV8_DEPRECATION_WARNINGS
-D_FILE_OFFSET_BITS=64 -DNO_TCMALLOC -DDISABLE_NACL -DCHROMIUM_BUILD -DUSE_LIBJPEG_TURBO=1 -DENABLE_PROFILING=1 -DENABLE_WEBRTC=1 -DUSE_PROPRIETARY_CODECS -DENABLE_BROWSER_CDMS -DENABLE_CONFIGURATION_POLICY -DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY -DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE
-DENABLE_EGLIMAGE=1 -DENABLE_AUTOFILL_DIALOG=1 -DCLD_VERSION=1 -DENABLE_PRINTING=1 -DENABLE_MANAGED_USERS=1 -DVIDEO_HOLE=1 -DENABLE_LOAD_COMPLETION_HACKS=1 -DMOJO_USE_SYSTEM_IMPL -DLIBPEERCONNECTION_LIB=1 -DAPPCACHE_USE_SIMPLE_CACHE -DMEDIA_DISABLE_LIBVPX
-DSK_ENABLE_INST_COUNT=0 -DSK_SUPPORT_GPU=1 ‘-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"‘ -DSK_ENABLE_LEGACY_API_ALIASING=1 -DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1 -DGR_GL_IGNORE_ES3_MSAA=0 -DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT -DSK_SUPPORT_LEGACY_TEXTRENDERMODE
-DSK_BUILD_FOR_ANDROID -DSK_USE_POSIX_THREADS -DSK_DEFERRED_CANVAS_USES_FACTORIES=1 -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DU_STATIC_IMPLEMENTATION -DCHROME_PNG_WRITE_SUPPORT -DPNG_USER_CONFIG -DCHROME_PNG_READ_PACK_SUPPORT -DMESA_EGL_NO_X11_HEADERS
-DUSE_OPENSSL=1 -DUSE_OPENSSL_CERTS=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DANDROID -D__GNU_SOURCE=1 -DUSE_STLPORT=1 -D_STLP_USE_PTR_SPECIALIZATIONS=1 ‘-DCHROME_BUILD_ID=""‘ -DHAVE_SYS_UIO_H -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0
-D_FORTIFY_SOURCE=2 -Igen -I../.. -I../../skia/config -Igen/ui/resources/ -I../../third_party/khronos -I../../gpu -I../../third_party/WebKit/Source -Igen/angle -I../../third_party/WebKit -I../../third_party/skia/src/core -I../../third_party/skia/include/core
-I../../third_party/skia/include/effects -I../../third_party/skia/include/pdf -I../../third_party/skia/include/gpu -I../../third_party/skia/include/lazy -I../../third_party/skia/include/pathops -I../../third_party/skia/include/pipe -I../../third_party/skia/include/ports
-I../../third_party/skia/include/utils -I../../skia/ext -I../../third_party/WebKit -I../../third_party/icu/source/common -I../../third_party/npapi -I../../third_party/npapi/bindings -I../../v8/include -I../../third_party/libpng -I../../third_party/zlib -I../../third_party/libwebp
-I../../third_party/ots/include -I../../third_party/qcms/src -I../../third_party/iccjpeg -I../../third_party/libjpeg_turbo -Igen/ui/gl -I../../third_party/mesa/src/include -fstack-protector --param=ssp-buffer-size=4 -Werror -fno-strict-aliasing -Wall -Wno-unused-parameter
-Wno-missing-field-initializers -fvisibility=hidden -pipe -fPIC -Wno-unused-local-typedefs -march=armv7-a -mtune=generic-armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -mthumb -fno-tree-sra -fno-caller-saves -Wno-psabi -mthumb-interwork -marm -mapcs-frame -fno-optimize-sibling-calls
-ffunction-sections -funwind-tables -g -fstack-protector -fno-short-enums -finline-limit=64 -Wa,--noexecstack -fno-omit-frame-pointer --sysroot=/home/redtea/Projects/Chromium/src/third_party/android_tools/ndk//platforms/android-14/arch-arm -isystem/home/redtea/Projects/Chromium/src/third_party/android_tools/ndk//sources/cxx-stl/stlport/stlport
-Os -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g -funwind-tables -fno-omit-frame-pointer -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -Wsign-compare -Wno-abi -std=gnu++11 -Wno-narrowing -Wno-literal-suffix
 -c ../../android_webview/browser/shared_renderer_state.cc -o obj/android_webview/browser/android_webview_common.shared_renderer_state.o

../../android_webview/browser/shared_renderer_state.cc: In member function ‘void android_webview::SharedRendererState::UpdateParentDrawConstraintsOnUIThread()‘:

../../android_webview/browser/shared_renderer_state.cc:153:15: error: variable ‘prevent_recursive_call‘ set but not used [-Werror=unused-but-set-variable]

static bool prevent_recursive_call = false; //FIXME: should be atomic<bool> here;

^

In file included from ../../base/memory/weak_ptr.h:68:0,

from ../../base/bind_helpers.h:148,

from ../../base/bind_internal.h:13,

from ../../base/bind.h:13,

from ../../base/cancelable_callback.h:46,

from ../../android_webview/browser/shared_renderer_state.h:9,

from ../../android_webview/browser/shared_renderer_state.cc:5:

../../android_webview/browser/shared_renderer_state.cc: At global scope:

../../base/logging.h:355:3: error: expected unqualified-id before ‘!‘ token

!(condition) ? (void) 0 : ::logging::LogMessageVoidify() & (stream)

^

../../base/logging.h:622:3: note: in expansion of macro ‘LAZY_STREAM‘

LAZY_STREAM(LOG_STREAM(DCHECK), DCHECK_IS_ON && !(condition))   \

^

../../android_webview/browser/shared_renderer_state.cc:166:3: note: in expansion of macro ‘DCHECK‘

DCHECK(ui_loop_->BelongsToCurrentThread());

^

../../android_webview/browser/shared_renderer_state.cc:167:3: error: ‘client_on_ui_‘ does not name a type

client_on_ui_->UpdateParentDrawConstraints();

^

../../android_webview/browser/shared_renderer_state.cc:170:3: error: expected unqualified-id before ‘{‘ token

{

^

../../android_webview/browser/shared_renderer_state.cc:175:6: error: ‘SharedRendererState‘ has not been declared

bool SharedRendererState::HasDrawGLInput() const {

^

../../android_webview/browser/shared_renderer_state.cc:175:44: error: non-member function ‘bool HasDrawGLInput()‘ cannot have cv-qualifier

bool SharedRendererState::HasDrawGLInput() const {

^

../../android_webview/browser/shared_renderer_state.cc: In function ‘bool HasDrawGLInput()‘:

../../android_webview/browser/shared_renderer_state.cc:176:23: error: ‘lock_‘ was not declared in this scope

base::AutoLock lock(lock_);

^

../../android_webview/browser/shared_renderer_state.cc:177:10: error: ‘draw_gl_input_‘ was not declared in this scope

return draw_gl_input_.get();

^

../../android_webview/browser/shared_renderer_state.cc: At global scope:

../../android_webview/browser/shared_renderer_state.cc:180:6: error: ‘SharedRendererState‘ has not been declared

void SharedRendererState::SetDrawGLInput(scoped_ptr<DrawGLInput> input) {

^

../../android_webview/browser/shared_renderer_state.cc:180:53: error: ‘DrawGLInput‘ was not declared in this scope

void SharedRendererState::SetDrawGLInput(scoped_ptr<DrawGLInput> input) {

^

../../android_webview/browser/shared_renderer_state.cc:180:53: note: suggested alternative:

In file included from ../../android_webview/browser/shared_renderer_state.cc:5:0:

../../android_webview/browser/shared_renderer_state.h:36:8: note:   ‘android_webview::DrawGLInput‘

struct DrawGLInput {

^

../../android_webview/browser/shared_renderer_state.cc:180:64: error: template argument 1 is invalid

void SharedRendererState::SetDrawGLInput(scoped_ptr<DrawGLInput> input) {

^

../../android_webview/browser/shared_renderer_state.cc:180:64: error: template argument 2 is invalid

../../android_webview/browser/shared_renderer_state.cc: In function ‘void SetDrawGLInput(int)‘:

../../android_webview/browser/shared_renderer_state.cc:181:23: error: ‘lock_‘ was not declared in this scope

base::AutoLock lock(lock_);

^

In file included from ../../base/memory/weak_ptr.h:68:0,

from ../../base/bind_helpers.h:148,

from ../../base/bind_internal.h:13,

from ../../base/bind.h:13,

from ../../base/cancelable_callback.h:46,

from ../../android_webview/browser/shared_renderer_state.h:9,

from ../../android_webview/browser/shared_renderer_state.cc:5:

../../android_webview/browser/shared_renderer_state.cc:182:11: error: ‘draw_gl_input_‘ was not declared in this scope

DCHECK(!draw_gl_input_.get());

^

../../base/logging.h:355:5: note: in definition of macro ‘LAZY_STREAM‘

!(condition) ? (void) 0 : ::logging::LogMessageVoidify() & (stream)

^

../../android_webview/browser/shared_renderer_state.cc:182:3: note: in expansion of macro ‘DCHECK‘

DCHECK(!draw_gl_input_.get());

^

../../android_webview/browser/shared_renderer_state.cc:183:26: error: request for member ‘Pass‘ in ‘input‘, which is of non-class type ‘int‘

draw_gl_input_ = input.Pass();

^

../../android_webview/browser/shared_renderer_state.cc: At global scope:

../../android_webview/browser/shared_renderer_state.cc:186:12: error: ‘DrawGLInput‘ was not declared in this scope

scoped_ptr<DrawGLInput> SharedRendererState::PassDrawGLInput() {

^

../../android_webview/browser/shared_renderer_state.cc:186:12: note: suggested alternative:

In file included from ../../android_webview/browser/shared_renderer_state.cc:5:0:

../../android_webview/browser/shared_renderer_state.h:36:8: note:   ‘android_webview::DrawGLInput‘

struct DrawGLInput {

^

../../android_webview/browser/shared_renderer_state.cc:186:23: error: template argument 1 is invalid

scoped_ptr<DrawGLInput> SharedRendererState::PassDrawGLInput() {

^

../../android_webview/browser/shared_renderer_state.cc:186:23: error: template argument 2 is invalid

../../android_webview/browser/shared_renderer_state.cc:186:25: error: ‘SharedRendererState‘ has not been declared

scoped_ptr<DrawGLInput> SharedRendererState::PassDrawGLInput() {

^

../../android_webview/browser/shared_renderer_state.cc: In function ‘int PassDrawGLInput()‘:

../../android_webview/browser/shared_renderer_state.cc:187:23: error: ‘lock_‘ was not declared in this scope

base::AutoLock lock(lock_);

^

../../android_webview/browser/shared_renderer_state.cc:188:10: error: ‘draw_gl_input_‘ was not declared in this scope

return draw_gl_input_.Pass();

^

../../android_webview/browser/shared_renderer_state.cc: At global scope:

../../android_webview/browser/shared_renderer_state.cc:191:6: error: ‘SharedRendererState‘ has not been declared

bool SharedRendererState::UpdateDrawConstraints(

^

../../android_webview/browser/shared_renderer_state.cc:192:11: error: ‘ParentCompositorDrawConstraints‘ does not name a type

const ParentCompositorDrawConstraints& parent_draw_constraints) {

^

../../android_webview/browser/shared_renderer_state.cc: In function ‘bool UpdateDrawConstraints(const int&)‘:

../../android_webview/browser/shared_renderer_state.cc:193:23: error: ‘lock_‘ was not declared in this scope

base::AutoLock lock(lock_);

^

../../android_webview/browser/shared_renderer_state.cc:194:7: error: ‘needs_force_invalidate_on_next_draw_gl_‘ was not declared in this scope

if (needs_force_invalidate_on_next_draw_gl_ ||

^

../../android_webview/browser/shared_renderer_state.cc:195:8: error: ‘parent_draw_constraints_‘ was not declared in this scope

!parent_draw_constraints_.Equals(parent_draw_constraints)) {

^

../../android_webview/browser/shared_renderer_state.cc: At global scope:

../../android_webview/browser/shared_renderer_state.cc:203:6: error: ‘SharedRendererState‘ has not been declared

void SharedRendererState::PostExternalDrawConstraintsToChildCompositor(

^

../../android_webview/browser/shared_renderer_state.cc:204:11: error: ‘ParentCompositorDrawConstraints‘ does not name a type

const ParentCompositorDrawConstraints& parent_draw_constraints) {

^

../../android_webview/browser/shared_renderer_state.cc: In function ‘void PostExternalDrawConstraintsToChildCompositor(const int&)‘:

../../android_webview/browser/shared_renderer_state.cc:207:5: error: ‘ui_loop_‘ was not declared in this scope

ui_loop_->PostTask(

^

../../android_webview/browser/shared_renderer_state.cc:209:21: error: ‘SharedRendererState‘ has not been declared

base::Bind(&SharedRendererState::UpdateParentDrawConstraintsOnUIThread,

^

../../android_webview/browser/shared_renderer_state.cc:210:20: error: ‘ui_thread_weak_ptr_‘ was not declared in this scope

ui_thread_weak_ptr_));

^

../../android_webview/browser/shared_renderer_state.cc: At global scope:

../../android_webview/browser/shared_renderer_state.cc:214:7: error: ‘ParentCompositorDrawConstraints‘ does not name a type

const ParentCompositorDrawConstraints

^

../../android_webview/browser/shared_renderer_state.cc:220:6: error: ‘SharedRendererState‘ has not been declared

void SharedRendererState::SetForceInvalidateOnNextDrawGL(

^

../../android_webview/browser/shared_renderer_state.cc: In function ‘void SetForceInvalidateOnNextDrawGL(bool)‘:

../../android_webview/browser/shared_renderer_state.cc:222:23: error: ‘lock_‘ was not declared in this scope

base::AutoLock lock(lock_);

^

../../android_webview/browser/shared_renderer_state.cc:223:3: error: ‘needs_force_invalidate_on_next_draw_gl_‘ was not declared in this scope

needs_force_invalidate_on_next_draw_gl_ =

^

../../android_webview/browser/shared_renderer_state.cc: At global scope:

../../android_webview/browser/shared_renderer_state.cc:227:6: error: ‘SharedRendererState‘ has not been declared

bool SharedRendererState::NeedsForceInvalidateOnNextDrawGL() const {

^

../../android_webview/browser/shared_renderer_state.cc:227:62: error: non-member function ‘bool NeedsForceInvalidateOnNextDrawGL()‘ cannot have cv-qualifier

bool SharedRendererState::NeedsForceInvalidateOnNextDrawGL() const {

^

../../android_webview/browser/shared_renderer_state.cc: In function ‘bool NeedsForceInvalidateOnNextDrawGL()‘:

../../android_webview/browser/shared_renderer_state.cc:228:23: error: ‘lock_‘ was not declared in this scope

base::AutoLock lock(lock_);

^

../../android_webview/browser/shared_renderer_state.cc:229:10: error: ‘needs_force_invalidate_on_next_draw_gl_‘ was not declared in this scope

return needs_force_invalidate_on_next_draw_gl_;

^

../../android_webview/browser/shared_renderer_state.cc: At global scope:

../../android_webview/browser/shared_renderer_state.cc:232:6: error: ‘SharedRendererState‘ has not been declared

void SharedRendererState::SetInsideHardwareRelease(bool inside) {

^

../../android_webview/browser/shared_renderer_state.cc: In function ‘void SetInsideHardwareRelease(bool)‘:

../../android_webview/browser/shared_renderer_state.cc:233:23: error: ‘lock_‘ was not declared in this scope

base::AutoLock lock(lock_);

^

../../android_webview/browser/shared_renderer_state.cc:234:3: error: ‘inside_hardware_release_‘ was not declared in this scope

inside_hardware_release_ = inside;

^

../../android_webview/browser/shared_renderer_state.cc: At global scope:

../../android_webview/browser/shared_renderer_state.cc:237:6: error: ‘SharedRendererState‘ has not been declared

bool SharedRendererState::IsInsideHardwareRelease() const {

^

../../android_webview/browser/shared_renderer_state.cc:237:53: error: non-member function ‘bool IsInsideHardwareRelease()‘ cannot have cv-qualifier

bool SharedRendererState::IsInsideHardwareRelease() const {

^

../../android_webview/browser/shared_renderer_state.cc: In function ‘bool IsInsideHardwareRelease()‘:

../../android_webview/browser/shared_renderer_state.cc:238:23: error: ‘lock_‘ was not declared in this scope

base::AutoLock lock(lock_);

^

../../android_webview/browser/shared_renderer_state.cc:239:10: error: ‘inside_hardware_release_‘ was not declared in this scope

return inside_hardware_release_;

^

../../android_webview/browser/shared_renderer_state.cc: At global scope:

../../android_webview/browser/shared_renderer_state.cc:242:6: error: ‘SharedRendererState‘ has not been declared

void SharedRendererState::InsertReturnedResources(

^

../../android_webview/browser/shared_renderer_state.cc: In function ‘void InsertReturnedResources(const ReturnedResourceArray&)‘:

../../android_webview/browser/shared_renderer_state.cc:244:23: error: ‘lock_‘ was not declared in this scope

base::AutoLock lock(lock_);

^

../../android_webview/browser/shared_renderer_state.cc:245:3: error: ‘returned_resources_‘ was not declared in this scope

returned_resources_.insert(

^

../../android_webview/browser/shared_renderer_state.cc: At global scope:

../../android_webview/browser/shared_renderer_state.cc:249:6: error: ‘SharedRendererState‘ has not been declared

void SharedRendererState::SwapReturnedResources(

^

../../android_webview/browser/shared_renderer_state.cc: In function ‘void SwapReturnedResources(cc::ReturnedResourceArray*)‘:

../../android_webview/browser/shared_renderer_state.cc:252:23: error: ‘lock_‘ was not declared in this scope

base::AutoLock lock(lock_);

^

../../android_webview/browser/shared_renderer_state.cc:253:19: error: ‘returned_resources_‘ was not declared in this scope

resources->swap(returned_resources_);

^

../../android_webview/browser/shared_renderer_state.cc: At global scope:

../../android_webview/browser/shared_renderer_state.cc:256:6: error: ‘SharedRendererState‘ has not been declared

bool SharedRendererState::ReturnedResourcesEmpty() const {

^

../../android_webview/browser/shared_renderer_state.cc:256:52: error: non-member function ‘bool ReturnedResourcesEmpty()‘ cannot have cv-qualifier

bool SharedRendererState::ReturnedResourcesEmpty() const {

^

../../android_webview/browser/shared_renderer_state.cc: In function ‘bool ReturnedResourcesEmpty()‘:

../../android_webview/browser/shared_renderer_state.cc:257:23: error: ‘lock_‘ was not declared in this scope

base::AutoLock lock(lock_);

^

../../android_webview/browser/shared_renderer_state.cc:258:10: error: ‘returned_resources_‘ was not declared in this scope

return returned_resources_.empty();

^

../../android_webview/browser/shared_renderer_state.cc: At global scope:

../../android_webview/browser/shared_renderer_state.cc:261:1: error: ‘InsideHardwareReleaseReset‘ does not name a type

InsideHardwareReleaseReset::InsideHardwareReleaseReset(

^

../../android_webview/browser/shared_renderer_state.cc:268:1: error: ‘InsideHardwareReleaseReset‘ does not name a type

InsideHardwareReleaseReset::~InsideHardwareReleaseReset() {

^

../../android_webview/browser/shared_renderer_state.cc:272:1: error: expected declaration before ‘}‘ token

}  // namespace android_webview

^

../../android_webview/browser/shared_renderer_state.cc: In function ‘bool HasDrawGLInput()‘:

../../android_webview/browser/shared_renderer_state.cc:178:1: error: control reaches end of non-void function [-Werror=return-type]

}

^

../../android_webview/browser/shared_renderer_state.cc: In function ‘int PassDrawGLInput()‘:

../../android_webview/browser/shared_renderer_state.cc:189:1: error: control reaches end of non-void function [-Werror=return-type]

}

^

../../android_webview/browser/shared_renderer_state.cc: In function ‘bool NeedsForceInvalidateOnNextDrawGL()‘:

../../android_webview/browser/shared_renderer_state.cc:230:1: error: control reaches end of non-void function [-Werror=return-type]

}

^

../../android_webview/browser/shared_renderer_state.cc: In function ‘bool IsInsideHardwareRelease()‘:

../../android_webview/browser/shared_renderer_state.cc:240:1: error: control reaches end of non-void function [-Werror=return-type]

}

^

../../android_webview/browser/shared_renderer_state.cc: In function ‘bool ReturnedResourcesEmpty()‘:

../../android_webview/browser/shared_renderer_state.cc:259:1: error: control reaches end of non-void function [-Werror=return-type]

}

^

cc1plus: all warnings being treated as errors

[3/24] CXX obj/android_webview/browser/android_webview_common.deferred_gpu_command_service.o

FAILED: /home/redtea/Projects/Chromium/src/third_party/android_tools/ndk//toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ -MMD -MF obj/android_webview/browser/android_webview_common.deferred_gpu_command_service.o.d -DV8_DEPRECATION_WARNINGS
-D_FILE_OFFSET_BITS=64 -DNO_TCMALLOC -DDISABLE_NACL -DCHROMIUM_BUILD -DUSE_LIBJPEG_TURBO=1 -DENABLE_PROFILING=1 -DENABLE_WEBRTC=1 -DUSE_PROPRIETARY_CODECS -DENABLE_BROWSER_CDMS -DENABLE_CONFIGURATION_POLICY -DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY -DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE
-DENABLE_EGLIMAGE=1 -DENABLE_AUTOFILL_DIALOG=1 -DCLD_VERSION=1 -DENABLE_PRINTING=1 -DENABLE_MANAGED_USERS=1 -DVIDEO_HOLE=1 -DENABLE_LOAD_COMPLETION_HACKS=1 -DMOJO_USE_SYSTEM_IMPL -DLIBPEERCONNECTION_LIB=1 -DAPPCACHE_USE_SIMPLE_CACHE -DMEDIA_DISABLE_LIBVPX
-DSK_ENABLE_INST_COUNT=0 -DSK_SUPPORT_GPU=1 ‘-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"‘ -DSK_ENABLE_LEGACY_API_ALIASING=1 -DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1 -DGR_GL_IGNORE_ES3_MSAA=0 -DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT -DSK_SUPPORT_LEGACY_TEXTRENDERMODE
-DSK_BUILD_FOR_ANDROID -DSK_USE_POSIX_THREADS -DSK_DEFERRED_CANVAS_USES_FACTORIES=1 -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DU_STATIC_IMPLEMENTATION -DCHROME_PNG_WRITE_SUPPORT -DPNG_USER_CONFIG -DCHROME_PNG_READ_PACK_SUPPORT -DMESA_EGL_NO_X11_HEADERS
-DUSE_OPENSSL=1 -DUSE_OPENSSL_CERTS=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DANDROID -D__GNU_SOURCE=1 -DUSE_STLPORT=1 -D_STLP_USE_PTR_SPECIALIZATIONS=1 ‘-DCHROME_BUILD_ID=""‘ -DHAVE_SYS_UIO_H -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0
-D_FORTIFY_SOURCE=2 -Igen -I../.. -I../../skia/config -Igen/ui/resources/ -I../../third_party/khronos -I../../gpu -I../../third_party/WebKit/Source -Igen/angle -I../../third_party/WebKit -I../../third_party/skia/src/core -I../../third_party/skia/include/core
-I../../third_party/skia/include/effects -I../../third_party/skia/include/pdf -I../../third_party/skia/include/gpu -I../../third_party/skia/include/lazy -I../../third_party/skia/include/pathops -I../../third_party/skia/include/pipe -I../../third_party/skia/include/ports
-I../../third_party/skia/include/utils -I../../skia/ext -I../../third_party/WebKit -I../../third_party/icu/source/common -I../../third_party/npapi -I../../third_party/npapi/bindings -I../../v8/include -I../../third_party/libpng -I../../third_party/zlib -I../../third_party/libwebp
-I../../third_party/ots/include -I../../third_party/qcms/src -I../../third_party/iccjpeg -I../../third_party/libjpeg_turbo -Igen/ui/gl -I../../third_party/mesa/src/include -fstack-protector --param=ssp-buffer-size=4 -Werror -fno-strict-aliasing -Wall -Wno-unused-parameter
-Wno-missing-field-initializers -fvisibility=hidden -pipe -fPIC -Wno-unused-local-typedefs -march=armv7-a -mtune=generic-armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -mthumb -fno-tree-sra -fno-caller-saves -Wno-psabi -mthumb-interwork -marm -mapcs-frame -fno-optimize-sibling-calls
-ffunction-sections -funwind-tables -g -fstack-protector -fno-short-enums -finline-limit=64 -Wa,--noexecstack -fno-omit-frame-pointer --sysroot=/home/redtea/Projects/Chromium/src/third_party/android_tools/ndk//platforms/android-14/arch-arm -isystem/home/redtea/Projects/Chromium/src/third_party/android_tools/ndk//sources/cxx-stl/stlport/stlport
-Os -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g -funwind-tables -fno-omit-frame-pointer -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -Wsign-compare -Wno-abi -std=gnu++11 -Wno-narrowing -Wno-literal-suffix
 -c ../../android_webview/browser/deferred_gpu_command_service.cc -o obj/android_webview/browser/android_webview_common.deferred_gpu_command_service.o

In file included from ../../android_webview/browser/deferred_gpu_command_service.cc:9:0:

../../base/debug/trace_event.h:900:5: error: ‘trace_event_unique_category_group_enabled134‘ does not name a type

trace_event_unique_##a##b

^

../../base/debug/trace_event.h:912:5: note: in definition of macro ‘INTERNAL_TRACE_EVENT_GET_CATEGORY_INFO_CUSTOM_VARIABLES‘

category_group_enabled = \

^

../../base/debug/trace_event.h:902:5: note: in expansion of macro ‘INTERNAL_TRACE_EVENT_UID3‘

INTERNAL_TRACE_EVENT_UID3(a,b)

^

../../base/debug/trace_event.h:904:5: note: in expansion of macro ‘INTERNAL_TRACE_EVENT_UID2‘

INTERNAL_TRACE_EVENT_UID2(name_prefix, __LINE__)

^

../../base/debug/trace_event.h:928:9: note: in expansion of macro ‘INTERNAL_TRACE_EVENT_UID‘

INTERNAL_TRACE_EVENT_UID(category_group_enabled));

^

../../base/debug/trace_event.h:946:5: note: in expansion of macro ‘INTERNAL_TRACE_EVENT_GET_CATEGORY_INFO‘

INTERNAL_TRACE_EVENT_GET_CATEGORY_INFO(category_group); \

^

../../base/debug/trace_event.h:230:5: note: in expansion of macro ‘INTERNAL_TRACE_EVENT_ADD_SCOPED‘

INTERNAL_TRACE_EVENT_ADD_SCOPED(category_group, name, arg1_name, arg1_val)

^

../../android_webview/browser/deferred_gpu_command_service.cc:131:3: note: in expansion of macro ‘TRACE_EVENT1‘

TRACE_EVENT1("android_webview",

^

../../base/debug/trace_event.h:915:5: error: expected unqualified-id before ‘if‘

if (UNLIKELY(!category_group_enabled)) { \

^

../../base/debug/trace_event.h:926:5: note: in expansion of macro ‘INTERNAL_TRACE_EVENT_GET_CATEGORY_INFO_CUSTOM_VARIABLES‘

INTERNAL_TRACE_EVENT_GET_CATEGORY_INFO_CUSTOM_VARIABLES(category_group, \

^

../../base/debug/trace_event.h:946:5: note: in expansion of macro ‘INTERNAL_TRACE_EVENT_GET_CATEGORY_INFO‘

INTERNAL_TRACE_EVENT_GET_CATEGORY_INFO(category_group); \

^

../../base/debug/trace_event.h:230:5: note: in expansion of macro ‘INTERNAL_TRACE_EVENT_ADD_SCOPED‘

INTERNAL_TRACE_EVENT_ADD_SCOPED(category_group, name, arg1_name, arg1_val)

^

../../android_webview/browser/deferred_gpu_command_service.cc:131:3: note: in expansion of macro ‘TRACE_EVENT1‘

TRACE_EVENT1("android_webview",

^

../../base/debug/trace_event.h:948:5: error: expected unqualified-id before ‘if‘

if (INTERNAL_TRACE_EVENT_CATEGORY_GROUP_ENABLED_FOR_RECORDING_MODE()) { \

^

../../base/debug/trace_event.h:230:5: note: in expansion of macro ‘INTERNAL_TRACE_EVENT_ADD_SCOPED‘

INTERNAL_TRACE_EVENT_ADD_SCOPED(category_group, name, arg1_name, arg1_val)

^

../../android_webview/browser/deferred_gpu_command_service.cc:131:3: note: in expansion of macro ‘TRACE_EVENT1‘

TRACE_EVENT1("android_webview",

^

In file included from ../../base/lazy_instance.h:44:0,

from ../../android_webview/browser/deferred_gpu_command_service.h:11,

from ../../android_webview/browser/deferred_gpu_command_service.cc:5:

../../base/logging.h:355:3: error: expected unqualified-id before ‘!‘ token

!(condition) ? (void) 0 : ::logging::LogMessageVoidify() & (stream)

^

../../base/logging.h:622:3: note: in expansion of macro ‘LAZY_STREAM‘

LAZY_STREAM(LOG_STREAM(DCHECK), DCHECK_IS_ON && !(condition))   \

^

../../android_webview/browser/deferred_gpu_command_service.cc:135:3: note: in expansion of macro ‘DCHECK‘

DCHECK(ScopedAllowGL::IsAllowed());

^

../../android_webview/browser/deferred_gpu_command_service.cc:140:37: error: ‘IdleQueueSize‘ was not declared in this scope

size_t queue_size = IdleQueueSize();

^

../../android_webview/browser/deferred_gpu_command_service.cc:141:3: error: expected unqualified-id before ‘while‘

while (queue_size--) {

^

../../android_webview/browser/deferred_gpu_command_service.cc:211:1: error: expected ‘}‘ at end of input

}  // namespace android_webview

^

In file included from ../../android_webview/browser/deferred_gpu_command_service.cc:9:0:

../../base/debug/trace_event.h:900:5: error: ‘android_webview::trace_event_unique_atomic134‘ defined but not used [-Werror=unused-variable]

trace_event_unique_##a##b

^

../../base/debug/trace_event.h:902:5: note: in expansion of macro ‘INTERNAL_TRACE_EVENT_UID3‘

INTERNAL_TRACE_EVENT_UID3(a,b)

^

../../base/debug/trace_event.h:904:5: note: in expansion of macro ‘INTERNAL_TRACE_EVENT_UID2‘

INTERNAL_TRACE_EVENT_UID2(name_prefix, __LINE__)

^

../../base/debug/trace_event.h:924:40: note: in expansion of macro ‘INTERNAL_TRACE_EVENT_UID‘

static TRACE_EVENT_API_ATOMIC_WORD INTERNAL_TRACE_EVENT_UID(atomic) = 0; \

^

../../base/debug/trace_event.h:946:5: note: in expansion of macro ‘INTERNAL_TRACE_EVENT_GET_CATEGORY_INFO‘

INTERNAL_TRACE_EVENT_GET_CATEGORY_INFO(category_group); \

^

../../base/debug/trace_event.h:230:5: note: in expansion of macro ‘INTERNAL_TRACE_EVENT_ADD_SCOPED‘

INTERNAL_TRACE_EVENT_ADD_SCOPED(category_group, name, arg1_name, arg1_val)

^

../../android_webview/browser/deferred_gpu_command_service.cc:131:3: note: in expansion of macro ‘TRACE_EVENT1‘

TRACE_EVENT1("android_webview",

^

cc1plus: all warnings being treated as errors

[3/24] ACTION Compiling android_webview_java java sources

warning: [options] bootstrap class path not set in conjunction with -source 1.5

1 warning

ninja: build stopped: subcommand failed.

时间: 2024-08-02 18:21:21

不幸的问题还是出现了:Chromium代码上整理patch(working目录/master分支),部分文件做了git checkout恢复,结果GYP再编译就出错了的相关文章

代码回滚:git reset、git checkout和git revert区别和联系

git reset.git checkout和git revert是你的Git工具箱中最有用的一些命令.它们都用来撤销代码仓库中的某些更改,而前两个命令不仅可以作用于提交,还可以作用于特定文件. 因为它们非常相似,所以我们经常会搞混,不知道什么场景下该用哪个命令.在这篇文章中,我们会比较git reset.git checkout和git revert最常见的用法.希望你在看完后能游刃有余地使用这些命令来管理你的仓库. Git仓库有三个主要组成——工作目录,缓存区和提交历史.这张图有助于理解每个

一步一步实现android studio代码上传到github。

本文只注重代码上传能成功就好,不解释什么是git什么事github,git有什么优势. 1,先创建一个android应用, 第二步:创建github账户 和 安装git.网上的文章多如牛毛.唯一要说的就是记住安装目录. 第三步:android studio中配置git和github账户. 有了上面两个图就说明离成功不远了. 第四步:android studio中点击VCS--Import into version control--share project on github,接下来会出现 内

Chrome for Android在Chromium代码库中的提交patch

訪问这个地址: https://codereview.chromium.org/1141283003 主要分为3类:png资源文件.java代码.C++代码,曾经以为这部分不开源的代码主要是C++,事实上不是这种.

git使用教程1-本地代码上传到github

前言 不会使用github都不好意思说自己是码农,github作为一个开源的代码仓库管理平台,我们可以把自己的代码放到github上,分享给小伙伴,自己也能随时随地同步更新代码. 问题来了:为什么越来越多的小伙伴喜欢开源?答:因为我们可以免费下载到大神的源码啊! 一,注册Github账号 1.先注册一个账号,注册地址:https://github.com/ 2.登录后,开始你的旅程 3.创建一个repository name,输入框随便取一个名字(不要用中文!!!) 4.点Create repo

如何用git将项目代码上传到github

注册账户以及创建仓库 要想使用github第一步当然是注册github账号了.之后就可以创建仓库了(免费用户只能建公共仓库),Create a New Repository,填好名称后Create,之后会出现一些仓库的配置信息,这也是一个git的简单教程.步骤如下: 打开https://github.com 直接在首页上注册 点按钮注册成功之后,在页面上方用户菜单上选择 "+"->New repository 创建一个新的仓库 为仓库取一个名字,点击创建仓库按钮 你将成功创建一个

初学git及用git将代码上传到新浪云的坑坑坑坑

一.坑之初始化(不初始化没法添加远程仓库) 1.你要是不进行初始化,git会报错:fatal: Not a git repository (or any of the parent directories): .git 如图: 2.要在代码文件夹的根目录下进行初始化------>$ git init 3.出现master时及成功或到文件夹的根目录下查看是否有隐藏的.git文件夹()如何查看隐藏的文件夹我就不多赘述了,大家都会) 此时初始化已完成! 二.上传代码(你可能会出现404错误)详情请访问

IOS开发-OC学习-常用功能代码片段整理

IOS开发-OC学习-常用功能代码片段整理 IOS开发中会频繁用到一些代码段,用来实现一些固定的功能.比如在文本框中输入完后要让键盘收回,这个需要用一个简单的让文本框失去第一响应者的身份来完成.或者是在做与URL有关的功能时,需要在Info.plist中添加一段代码进而实现让网址完成从Http到Https的转换,以及其他的一些功能. 在从一个新手到逐渐学会各种功能.代码.控件.方法如何使用的过程中,也在逐渐积累一些知识,但是一次总不会把这些东西都深刻记住并完全理解.所以在这儿记录下这些东西,用来

webDAV服务的开启以及客户端的上传、下载、删除、新建文件夾、列表的代码(C#)

windows server 2003开启webDAV服务 1. 启动“IIS管理器”选择“WEB服务扩展”,选择“WEBDAV”的允许按钮启动WEBDAV功能 2.建立一个虚拟目录,对应到一个本地目录. 3.启动系统“服务”中的“WebClient”服务 参考网址 WebDAV文档rfc2518    http://www.ietf.org/rfc/rfc2518.txt webdav常用方法和概念总结   http://blog.csdn.net/mahongming/archive/200

在Java代码上设置TextView字体大小

部分源码: /** * Set the default text size to a given unit and value. See {@link * TypedValue} for the possible dimension units. * * @param unit The desired dimension unit. * @param size The desired size in the given units. * * @attr ref android.R.styleab