failed to build mojo for ubuntu 14.04: fatal error: 'gen/sky/core/CSSPropertyNames.h' file not found

59 views
Skip to first unread message

ALeft AWant

unread,
May 14, 2015, 8:33:53 PM5/14/15
to mojo...@chromium.org
I followed the guide of https://github.com/domokit/mojo
When build with "mojo/tools/mojob.py build" or "mojo/tools/mojob.py build --release" or "ninja -C out/Debug -j 10", they all report:
../../sky/engine/core/css/CSSStyleDeclaration.h:24:10: fatal error: 'gen/sky/core/CSSPropertyNames.h' file not found
../../sky/engine/core/events/EventTarget.h:35:10: fatal error: 'gen/sky/core/EventInterfaces.h' file not found

James Robinson

unread,
May 14, 2015, 8:36:11 PM5/14/15
to ALeft AWant, mojo...@chromium.org
Looks like we've got a bug in our build dependencies somewhere.  Can you past the full error message (including the #include chain)?  That'll help us figure out what is failing to declare its dependency correctly.

If you tell ninja to build the target "make_core_generated_css_property_names" (i.e. run "ninja -C out/Debug make_core_generated_css_property_names" for debug) you should be able to resume the build.

- James

Lex Berezhny

unread,
May 14, 2015, 11:32:53 PM5/14/15
to mojo...@chromium.org
I got the same error...

lex@ubuntu:~/projects/mojo/src$ mojo/tools/mojob.py gn
Running gn 'gen' '--check' 'out/Debug' '--args=is_clang=true use_goma=false target_cpu="x64" dcheck_always_on=false go_build_tool="/home/lex/projects/mojo/src/third_party/go/tool/linux_amd64/bin/go" is_asan=false use_aura=false is_debug=true use_glib=false mojo_use_go=true use_system_harfbuzz=false' ...
Done. Wrote 1573 targets from 324 files in 2748ms
lex@ubuntu:~/projects/mojo/src$ mojo/tools/mojob.py build
Building in out/Debug ...
ninja: Entering directory `out/Debug'
[5923/8694] CXX obj/out/Debug/gen/sky/bindings/generated_bindings.DartDocumentFragment.o
FAILED: ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/out/Debug/gen/sky/bindings/generated_bindings.DartDocumentFragment.o.d -DV8_DEPRECATION_WARNINGS -DCLD_VERSION=2 -DENABLE_MDNS=1 -DENABLE_NOTIFICATIONS -DENABLE_PEPPER_CDMS -DENABLE_PLUGINS=1 -DENABLE_PRINTING=1 -DENABLE_BASIC_PRINTING=1 -DENABLE_PRINT_PREVIEW=1 -DENABLE_SPELLCHECK=1 -DDONT_EMBED_BUILD_METADATA -DUSE_UDEV -DTOOLKIT_VIEWS=1 -DUSE_ASH=1 -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DENABLE_WEBRTC=1 -DENABLE_EXTENSIONS=1 -DENABLE_CONFIGURATION_POLICY -DENABLE_TASK_MANAGER=1 -DENABLE_THEMES=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_SUPERVISED_USERS=1 -DENABLE_SERVICE_DISCOVERY=1 -DENABLE_AUTOFILL_DIALOG=1 -DENABLE_REMOTING=1 -DENABLE_GOOGLE_NOW=1 -DENABLE_ONE_CLICK_SIGNIN -DENABLE_HIDPI=1 -DENABLE_BACKGROUND=1 -DENABLE_PRE_SYNC_BACKUP -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DSAFE_BROWSING_SERVICE -DCHROMIUM_BUILD -DCR_CLANG_REVISION=233105-2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -D_GLIBCXX_DEBUG=1 -DSK_LEGACY_DRAWPICTURECALLBACK -DSK_SUPPORT_LEGACY_OPTIONLESS_GET_PIXELS -DSK_SUPPORT_GPU=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -DENABLE_OPENTYPE_VERTICAL=1 -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUCONFIG_NO_NON_HTML5_CONVERSION=1 -DU_CHARSET_IS_UTF8=1 -DU_STATIC_IMPLEMENTATION -DCHROME_PNG_WRITE_SUPPORT -DPNG_USER_CONFIG -I../../sky/engine -I. -I../.. -Igen -I../../third_party/khronos -I../../gpu -I../.. -Igen -I../../mojo/services -Igen/mojo/services -I../../skia/config -I../../skia/ext -I../../third_party/skia/include/c -I../../third_party/skia/include/config -I../../third_party/skia/include/core -I../../third_party/skia/include/effects -I../../third_party/skia/include/images -I../../third_party/skia/include/lazy -I../../third_party/skia/include/pathops -I../../third_party/skia/include/pdf -I../../third_party/skia/include/pipe -I../../third_party/skia/include/ports -I../../third_party/skia/include/utils -I../../third_party/skia/include/gpu -I../../third_party/skia/src/gpu -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -I../../third_party/angle/include -I../../third_party/iccjpeg -I../../third_party/libpng -I../../third_party/zlib -I../../third_party/ots/include -I../../third_party/qcms/src -fno-strict-aliasing -fstack-protector --param=ssp-buffer-size=4 -m64 -march=x86-64 -funwind-tables -fPIC -pipe -pthread -B../../third_party/binutils/Linux_x64/Release/bin -fcolor-diagnostics -Wall -Wsign-compare -Wendif-labels -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-char-subscripts -Wno-covered-switch-default -Wno-deprecated-register -Wno-unneeded-internal-declaration -Wno-reserved-user-defined-literal -Wno-inconsistent-missing-override -fvisibility=hidden -Xclang -load -Xclang ../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so -Xclang -add-plugin -Xclang find-bad-constructs -Wheader-hygiene -Wstring-conversion -O0 -g2 -gsplit-dwarf -fno-threadsafe-statics -fvisibility-inlines-hidden -Wno-undefined-bool-conversion -Wno-tautological-undefined-compare -std=gnu++11 -fno-rtti -fno-exceptions -c gen/sky/bindings/DartDocumentFragment.cpp -o obj/out/Debug/gen/sky/bindings/generated_bindings.DartDocumentFragment.o
In file included from gen/sky/bindings/DartDocumentFragment.cpp:8:
In file included from gen/sky/bindings/DartDocumentFragment.h:10:
In file included from ../../sky/engine/core/dom/DocumentFragment.h:27:
In file included from ../../sky/engine/core/dom/ContainerNode.h:28:
In file included from ../../sky/engine/core/dom/Node.h:33:
../../sky/engine/core/events/EventTarget.h:35:10: fatal error: 'gen/sky/core/EventInterfaces.h' file not found
#include "gen/sky/core/EventInterfaces.h"
         ^
1 error generated.
[5923/8694] CXX obj/out/Debug/gen/sky/bindings/generated_bindings.DartAnimationEffect.o
FAILED: ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/out/Debug/gen/sky/bindings/generated_bindings.DartAnimationEffect.o.d -DV8_DEPRECATION_WARNINGS -DCLD_VERSION=2 -DENABLE_MDNS=1 -DENABLE_NOTIFICATIONS -DENABLE_PEPPER_CDMS -DENABLE_PLUGINS=1 -DENABLE_PRINTING=1 -DENABLE_BASIC_PRINTING=1 -DENABLE_PRINT_PREVIEW=1 -DENABLE_SPELLCHECK=1 -DDONT_EMBED_BUILD_METADATA -DUSE_UDEV -DTOOLKIT_VIEWS=1 -DUSE_ASH=1 -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DENABLE_WEBRTC=1 -DENABLE_EXTENSIONS=1 -DENABLE_CONFIGURATION_POLICY -DENABLE_TASK_MANAGER=1 -DENABLE_THEMES=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_SUPERVISED_USERS=1 -DENABLE_SERVICE_DISCOVERY=1 -DENABLE_AUTOFILL_DIALOG=1 -DENABLE_REMOTING=1 -DENABLE_GOOGLE_NOW=1 -DENABLE_ONE_CLICK_SIGNIN -DENABLE_HIDPI=1 -DENABLE_BACKGROUND=1 -DENABLE_PRE_SYNC_BACKUP -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DSAFE_BROWSING_SERVICE -DCHROMIUM_BUILD -DCR_CLANG_REVISION=233105-2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -D_GLIBCXX_DEBUG=1 -DSK_LEGACY_DRAWPICTURECALLBACK -DSK_SUPPORT_LEGACY_OPTIONLESS_GET_PIXELS -DSK_SUPPORT_GPU=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -DENABLE_OPENTYPE_VERTICAL=1 -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUCONFIG_NO_NON_HTML5_CONVERSION=1 -DU_CHARSET_IS_UTF8=1 -DU_STATIC_IMPLEMENTATION -DCHROME_PNG_WRITE_SUPPORT -DPNG_USER_CONFIG -I../../sky/engine -I. -I../.. -Igen -I../../third_party/khronos -I../../gpu -I../.. -Igen -I../../mojo/services -Igen/mojo/services -I../../skia/config -I../../skia/ext -I../../third_party/skia/include/c -I../../third_party/skia/include/config -I../../third_party/skia/include/core -I../../third_party/skia/include/effects -I../../third_party/skia/include/images -I../../third_party/skia/include/lazy -I../../third_party/skia/include/pathops -I../../third_party/skia/include/pdf -I../../third_party/skia/include/pipe -I../../third_party/skia/include/ports -I../../third_party/skia/include/utils -I../../third_party/skia/include/gpu -I../../third_party/skia/src/gpu -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -I../../third_party/angle/include -I../../third_party/iccjpeg -I../../third_party/libpng -I../../third_party/zlib -I../../third_party/ots/include -I../../third_party/qcms/src -fno-strict-aliasing -fstack-protector --param=ssp-buffer-size=4 -m64 -march=x86-64 -funwind-tables -fPIC -pipe -pthread -B../../third_party/binutils/Linux_x64/Release/bin -fcolor-diagnostics -Wall -Wsign-compare -Wendif-labels -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-char-subscripts -Wno-covered-switch-default -Wno-deprecated-register -Wno-unneeded-internal-declaration -Wno-reserved-user-defined-literal -Wno-inconsistent-missing-override -fvisibility=hidden -Xclang -load -Xclang ../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so -Xclang -add-plugin -Xclang find-bad-constructs -Wheader-hygiene -Wstring-conversion -O0 -g2 -gsplit-dwarf -fno-threadsafe-statics -fvisibility-inlines-hidden -Wno-undefined-bool-conversion -Wno-tautological-undefined-compare -std=gnu++11 -fno-rtti -fno-exceptions -c gen/sky/bindings/DartAnimationEffect.cpp -o obj/out/Debug/gen/sky/bindings/generated_bindings.DartAnimationEffect.o
In file included from gen/sky/bindings/DartAnimationEffect.cpp:8:
In file included from gen/sky/bindings/DartAnimationEffect.h:10:
../../sky/engine/core/animation/AnimationEffect.h:34:10: fatal error: 'gen/sky/core/CSSPropertyNames.h' file not found
#include "gen/sky/core/CSSPropertyNames.h"
         ^
1 error generated.
[5923/8694] CXX obj/out/Debug/gen/sky/bindings/generated_bindings.DartDocument.o
FAILED: ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/out/Debug/gen/sky/bindings/generated_bindings.DartDocument.o.d -DV8_DEPRECATION_WARNINGS -DCLD_VERSION=2 -DENABLE_MDNS=1 -DENABLE_NOTIFICATIONS -DENABLE_PEPPER_CDMS -DENABLE_PLUGINS=1 -DENABLE_PRINTING=1 -DENABLE_BASIC_PRINTING=1 -DENABLE_PRINT_PREVIEW=1 -DENABLE_SPELLCHECK=1 -DDONT_EMBED_BUILD_METADATA -DUSE_UDEV -DTOOLKIT_VIEWS=1 -DUSE_ASH=1 -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DENABLE_WEBRTC=1 -DENABLE_EXTENSIONS=1 -DENABLE_CONFIGURATION_POLICY -DENABLE_TASK_MANAGER=1 -DENABLE_THEMES=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_SUPERVISED_USERS=1 -DENABLE_SERVICE_DISCOVERY=1 -DENABLE_AUTOFILL_DIALOG=1 -DENABLE_REMOTING=1 -DENABLE_GOOGLE_NOW=1 -DENABLE_ONE_CLICK_SIGNIN -DENABLE_HIDPI=1 -DENABLE_BACKGROUND=1 -DENABLE_PRE_SYNC_BACKUP -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DSAFE_BROWSING_SERVICE -DCHROMIUM_BUILD -DCR_CLANG_REVISION=233105-2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -D_GLIBCXX_DEBUG=1 -DSK_LEGACY_DRAWPICTURECALLBACK -DSK_SUPPORT_LEGACY_OPTIONLESS_GET_PIXELS -DSK_SUPPORT_GPU=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -DENABLE_OPENTYPE_VERTICAL=1 -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUCONFIG_NO_NON_HTML5_CONVERSION=1 -DU_CHARSET_IS_UTF8=1 -DU_STATIC_IMPLEMENTATION -DCHROME_PNG_WRITE_SUPPORT -DPNG_USER_CONFIG -I../../sky/engine -I. -I../.. -Igen -I../../third_party/khronos -I../../gpu -I../.. -Igen -I../../mojo/services -Igen/mojo/services -I../../skia/config -I../../skia/ext -I../../third_party/skia/include/c -I../../third_party/skia/include/config -I../../third_party/skia/include/core -I../../third_party/skia/include/effects -I../../third_party/skia/include/images -I../../third_party/skia/include/lazy -I../../third_party/skia/include/pathops -I../../third_party/skia/include/pdf -I../../third_party/skia/include/pipe -I../../third_party/skia/include/ports -I../../third_party/skia/include/utils -I../../third_party/skia/include/gpu -I../../third_party/skia/src/gpu -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -I../../third_party/angle/include -I../../third_party/iccjpeg -I../../third_party/libpng -I../../third_party/zlib -I../../third_party/ots/include -I../../third_party/qcms/src -fno-strict-aliasing -fstack-protector --param=ssp-buffer-size=4 -m64 -march=x86-64 -funwind-tables -fPIC -pipe -pthread -B../../third_party/binutils/Linux_x64/Release/bin -fcolor-diagnostics -Wall -Wsign-compare -Wendif-labels -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-char-subscripts -Wno-covered-switch-default -Wno-deprecated-register -Wno-unneeded-internal-declaration -Wno-reserved-user-defined-literal -Wno-inconsistent-missing-override -fvisibility=hidden -Xclang -load -Xclang ../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so -Xclang -add-plugin -Xclang find-bad-constructs -Wheader-hygiene -Wstring-conversion -O0 -g2 -gsplit-dwarf -fno-threadsafe-statics -fvisibility-inlines-hidden -Wno-undefined-bool-conversion -Wno-tautological-undefined-compare -std=gnu++11 -fno-rtti -fno-exceptions -c gen/sky/bindings/DartDocument.cpp -o obj/out/Debug/gen/sky/bindings/generated_bindings.DartDocument.o
In file included from gen/sky/bindings/DartDocument.cpp:8:
In file included from gen/sky/bindings/DartDocument.h:10:
In file included from ../../sky/engine/core/dom/Document.h:34:
In file included from ../../sky/engine/core/animation/PendingAnimations.h:34:
In file included from ../../sky/engine/core/animation/AnimationPlayer.h:36:
../../sky/engine/core/events/EventTarget.h:35:10: fatal error: 'gen/sky/core/EventInterfaces.h' file not found
#include "gen/sky/core/EventInterfaces.h"
         ^
1 error generated.
[5923/8694] CXX obj/out/Debug/gen/sky/bindings/generated_bindings.DartDOMError.o
FAILED: ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/out/Debug/gen/sky/bindings/generated_bindings.DartDOMError.o.d -DV8_DEPRECATION_WARNINGS -DCLD_VERSION=2 -DENABLE_MDNS=1 -DENABLE_NOTIFICATIONS -DENABLE_PEPPER_CDMS -DENABLE_PLUGINS=1 -DENABLE_PRINTING=1 -DENABLE_BASIC_PRINTING=1 -DENABLE_PRINT_PREVIEW=1 -DENABLE_SPELLCHECK=1 -DDONT_EMBED_BUILD_METADATA -DUSE_UDEV -DTOOLKIT_VIEWS=1 -DUSE_ASH=1 -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DENABLE_WEBRTC=1 -DENABLE_EXTENSIONS=1 -DENABLE_CONFIGURATION_POLICY -DENABLE_TASK_MANAGER=1 -DENABLE_THEMES=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_SUPERVISED_USERS=1 -DENABLE_SERVICE_DISCOVERY=1 -DENABLE_AUTOFILL_DIALOG=1 -DENABLE_REMOTING=1 -DENABLE_GOOGLE_NOW=1 -DENABLE_ONE_CLICK_SIGNIN -DENABLE_HIDPI=1 -DENABLE_BACKGROUND=1 -DENABLE_PRE_SYNC_BACKUP -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DSAFE_BROWSING_SERVICE -DCHROMIUM_BUILD -DCR_CLANG_REVISION=233105-2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -D_GLIBCXX_DEBUG=1 -DSK_LEGACY_DRAWPICTURECALLBACK -DSK_SUPPORT_LEGACY_OPTIONLESS_GET_PIXELS -DSK_SUPPORT_GPU=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -DENABLE_OPENTYPE_VERTICAL=1 -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUCONFIG_NO_NON_HTML5_CONVERSION=1 -DU_CHARSET_IS_UTF8=1 -DU_STATIC_IMPLEMENTATION -DCHROME_PNG_WRITE_SUPPORT -DPNG_USER_CONFIG -I../../sky/engine -I. -I../.. -Igen -I../../third_party/khronos -I../../gpu -I../.. -Igen -I../../mojo/services -Igen/mojo/services -I../../skia/config -I../../skia/ext -I../../third_party/skia/include/c -I../../third_party/skia/include/config -I../../third_party/skia/include/core -I../../third_party/skia/include/effects -I../../third_party/skia/include/images -I../../third_party/skia/include/lazy -I../../third_party/skia/include/pathops -I../../third_party/skia/include/pdf -I../../third_party/skia/include/pipe -I../../third_party/skia/include/ports -I../../third_party/skia/include/utils -I../../third_party/skia/include/gpu -I../../third_party/skia/src/gpu -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -I../../third_party/angle/include -I../../third_party/iccjpeg -I../../third_party/libpng -I../../third_party/zlib -I../../third_party/ots/include -I../../third_party/qcms/src -fno-strict-aliasing -fstack-protector --param=ssp-buffer-size=4 -m64 -march=x86-64 -funwind-tables -fPIC -pipe -pthread -B../../third_party/binutils/Linux_x64/Release/bin -fcolor-diagnostics -Wall -Wsign-compare -Wendif-labels -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-char-subscripts -Wno-covered-switch-default -Wno-deprecated-register -Wno-unneeded-internal-declaration -Wno-reserved-user-defined-literal -Wno-inconsistent-missing-override -fvisibility=hidden -Xclang -load -Xclang ../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so -Xclang -add-plugin -Xclang find-bad-constructs -Wheader-hygiene -Wstring-conversion -O0 -g2 -gsplit-dwarf -fno-threadsafe-statics -fvisibility-inlines-hidden -Wno-undefined-bool-conversion -Wno-tautological-undefined-compare -std=gnu++11 -fno-rtti -fno-exceptions -c gen/sky/bindings/DartDOMError.cpp -o obj/out/Debug/gen/sky/bindings/generated_bindings.DartDOMError.o
In file included from gen/sky/bindings/DartDOMError.cpp:10:
In file included from ../../sky/engine/core/frame/LocalDOMWindow.h:30:
../../sky/engine/core/events/EventTarget.h:35:10: fatal error: 'gen/sky/core/EventInterfaces.h' file not found
#include "gen/sky/core/EventInterfaces.h"
         ^
1 error generated.
ninja: build stopped: subcommand failed.

Lex Berezhny

unread,
May 15, 2015, 12:21:26 PM5/15/15
to mojo...@chromium.org
I'm not sure how I fixed the issue (or if I even fixed the original issue) but doing git checkout dart_summit and then back to master allowed me to compile the code and the cube demo works now...

Another thing that may have fixed it is running install-build-deps.sh instead of install-build-deps-android.sh (which is what I did the first time when I got compiler errors).

Then I tried compiling the sky/apk demo and had new errors:

lex@ubuntu:~/projects/mojo/src/sky/apk$ ninja -C out/Debug
ninja: Entering directory `out/Debug'
[2001/8645] CXX obj/ui/events/platform/x11/platform.x11_event_source_libevent.o
FAILED: ../../../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/ui/events/platform/x11/platform.x11_event_source_libevent.o.d -DEVENTS_IMPLEMENTATION -DV8_DEPRECATION_WARNINGS -DCLD_VERSION=2 -DENABLE_MDNS=1 -DENABLE_NOTIFICATIONS -DENABLE_PEPPER_CDMS -DENABLE_PLUGINS=1 -DENABLE_PRINTING=1 -DENABLE_BASIC_PRINTING=1 -DENABLE_PRINT_PREVIEW=1 -DENABLE_SPELLCHECK=1 -DDONT_EMBED_BUILD_METADATA -DUSE_UDEV -DTOOLKIT_VIEWS=1 -DUI_COMPOSITOR_IMAGE_TRANSPORT -DUSE_ASH=1 -DUSE_AURA=1 -DUSE_PANGO=1 -DUSE_CAIRO=1 -DUSE_CLIPBOARD_AURAX11=1 -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DENABLE_WEBRTC=1 -DENABLE_EXTENSIONS=1 -DENABLE_CONFIGURATION_POLICY -DENABLE_TASK_MANAGER=1 -DENABLE_THEMES=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_SUPERVISED_USERS=1 -DENABLE_SERVICE_DISCOVERY=1 -DENABLE_AUTOFILL_DIALOG=1 -DENABLE_REMOTING=1 -DENABLE_GOOGLE_NOW=1 -DENABLE_ONE_CLICK_SIGNIN -DENABLE_HIDPI=1 -DENABLE_BACKGROUND=1 -DENABLE_PRE_SYNC_BACKUP -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DSAFE_BROWSING_SERVICE -DCHROMIUM_BUILD -DCR_CLANG_REVISION=233105-2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -D_GLIBCXX_DEBUG=1 -DSK_LEGACY_DRAWPICTURECALLBACK -DSK_SUPPORT_LEGACY_OPTIONLESS_GET_PIXELS -DSK_SUPPORT_GPU=1 -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUCONFIG_NO_NON_HTML5_CONVERSION=1 -DU_CHARSET_IS_UTF8=1 -DU_STATIC_IMPLEMENTATION -I../../../.. -Igen -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I../../../../skia/config -I../../../../skia/ext -I../../../../third_party/skia/include/c -I../../../../third_party/skia/include/config -I../../../../third_party/skia/include/core -I../../../../third_party/skia/include/effects -I../../../../third_party/skia/include/images -I../../../../third_party/skia/include/lazy -I../../../../third_party/skia/include/pathops -I../../../../third_party/skia/include/pdf -I../../../../third_party/skia/include/pipe -I../../../../third_party/skia/include/ports -I../../../../third_party/skia/include/utils -I../../../../third_party/skia/include/gpu -I../../../../third_party/skia/src/gpu -I../../../../third_party/icu/source/common -I../../../../third_party/icu/source/i18n -fno-strict-aliasing -fstack-protector --param=ssp-buffer-size=4 -m64 -march=x86-64 -funwind-tables -fPIC -pipe -pthread -B../../../../third_party/binutils/Linux_x64/Release/bin -fcolor-diagnostics -Wall -Wsign-compare -Wendif-labels -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-char-subscripts -Wno-covered-switch-default -Wno-deprecated-register -Wno-unneeded-internal-declaration -Wno-reserved-user-defined-literal -Wno-inconsistent-missing-override -fvisibility=hidden -Xclang -load -Xclang ../../../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so -Xclang -add-plugin -Xclang find-bad-constructs -Wheader-hygiene -Wstring-conversion -O0 -g2 -gsplit-dwarf -fno-threadsafe-statics -fvisibility-inlines-hidden -Wno-undefined-bool-conversion -Wno-tautological-undefined-compare -std=gnu++11 -fno-rtti -fno-exceptions -c ../../../../ui/events/platform/x11/x11_event_source_libevent.cc -o obj/ui/events/platform/x11/platform.x11_event_source_libevent.o
../../../../ui/events/platform/x11/x11_event_source_libevent.cc:36:40: error: no member named 'WatchFileDescriptor' in 'base::MessageLoopForUI'
    base::MessageLoopForUI::current()->WatchFileDescriptor(fd, true,
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ^
1 error generated.
[2001/8645] CXX obj/sky/apk/out/Debug/gen/v8/v8_nosnapshot.libraries.o

Eric Seidel

unread,
May 15, 2015, 12:26:06 PM5/15/15
to Lex Berezhny, mojo...@chromium.org
The second error may be a lack of gclient sync? Sky is definitely
known to compile on the dart_summit branch, and I would expect it to
compile on master.

Eric Seidel

unread,
May 15, 2015, 1:06:43 PM5/15/15
to Lex Berezhny, mojo...@chromium.org
I wonder if something went wrong in last night's roll. I will attempt
to repro shortly.

On Fri, May 15, 2015 at 9:36 AM, Lex Berezhny <l...@damoti.com> wrote:
> On the dart_summit branch it isn't even able to generate build configuration
> (the relevant lines in BUILD.gn are actually different between master and
> dart_summit branch)...
>
> lex@ubuntu:~/projects/mojo/src$ ninja -C out/Debug
> ninja: Entering directory `out/Debug'
> [1/1] Regenerating ninja files
> FAILED: /home/lex/projects/mojo/src/buildtools/linux64/gn
> --root=/home/lex/projects/mojo/src -q --check gen //out/Debug/
> ERROR at dynamically parsed input that
> //build/config/compiler/BUILD.gn:166:18 loaded :1:7: Trailing garbage
> 233105-1
> ^-
> ninja: error: rebuilding 'build.ninja': subcommand failed
>
>
> And here is the diff between master and dart_summit.... (the + one is
> dart_summit)
>
>
> - defines +=
> - [ "CR_CLANG_REVISION=" +
> exec_script("//tools/clang/scripts/update.py",
> - [ "--print-revision" ],
> - "trim string") ]
> + defines += [ "CR_CLANG_REVISION=" +
> +
> exec_script("//tools/clang/scripts/posix-print-revision.py",
> + [],
> + "value") ]

Eric Seidel

unread,
May 15, 2015, 3:24:39 PM5/15/15
to Lex Berezhny, mojo...@chromium.org
I don't have a straight-ubuntu box, only a Google provided (and
slightly modified) ubuntu. master seems to build just fine for me.

ALeft AWant

unread,
May 18, 2015, 8:38:54 PM5/18/15
to mojo...@chromium.org, want...@gmail.com
Thanks james. I works after key in the following :
ninja -C out/Debug make_core_generated_css_property_names
ninja -C out/Debug make_core_generated_event_name
ninja -C out/Debug make_core_generated_event_target_factory
ninja -C out/Debug make_core_generated_event_target_names
ninja -C out/Debug make_core_generated_event_type_names
ninja -C out/Debug make_core_generated_fetch_initiator_type_names
ninja -C out/Debug make_core_generated_media_type_names
ninja -C out/Debug make_core_generated_css_value_keywords
ninja -C out/Debug make_core_generated_event_factory
ninja -C out/Debug make_core_generated_html_element_factory





在 2015年5月15日星期五 UTC+8上午8:36:11,James Robinson写道:

Günter Zöchbauer

unread,
Jun 11, 2015, 2:46:00 AM6/11/15
to mojo...@chromium.org
I just run into this error as well. I tried the workaround. The first 8 commands work but the last two fail.

ninja -C out/Debug make_core_generated_event_factory

produces:

root@9658f19f684e:/mojo/src# ninja -C out/Debug make_core_generated_event_factory
ninja: Entering directory `out/Debug'
[20/23] CXX obj/out/Debug/gen/sky/core/make_core_generated_html_element_factory.HTMLElementFactory.o
FAILED: ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/out/Debug/gen/sky/core/make_core_generated_html_element_factory.HTMLElementFactory.o.d -DV8_DEPRECATION_WARNINGS -DCLD_VERSION=2 -DENABLE_MDNS=1 -DENABLE_NOTIFICATIONS -DENABLE_PEPPER_CDMS -DENABLE_PLUGINS=1 -DENABLE_PRINTING=1 -DENABLE_BASIC_PRINTING=1 -DENABLE_PRINT_PREVIEW=1 -DENABLE_SPELLCHECK=1 -DDONT_EMBED_BUILD_METADATA -DUSE_UDEV -DTOOLKIT_VIEWS=1 -DUSE_ASH=1 -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DENABLE_WEBRTC=1 -DENABLE_EXTENSIONS=1 -DENABLE_CONFIGURATION_POLICY -DENABLE_TASK_MANAGER=1 -DENABLE_THEMES=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_SUPERVISED_USERS=1 -DENABLE_SERVICE_DISCOVERY=1 -DENABLE_AUTOFILL_DIALOG=1 -DENABLE_REMOTING=1 -DENABLE_GOOGLE_NOW=1 -DENABLE_ONE_CLICK_SIGNIN -DENABLE_HIDPI=1 -DENABLE_BACKGROUND=1 -DENABLE_PRE_SYNC_BACKUP -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DSAFE_BROWSING_SERVICE -DCHROMIUM_BUILD -DCR_CLANG_REVISION=233105-2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -D_GLIBCXX_DEBUG=1 -DBLINK_IMPLEMENTATION=1 -DINSIDE_BLINK -DSK_LEGACY_DRAWPICTURECALLBACK -DSK_SUPPORT_LEGACY_OPTIONLESS_GET_PIXELS -DSK_SUPPORT_GPU=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -DENABLE_OPENTYPE_VERTICAL=1 -DENABLE_DART_STRICT=1 -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUCONFIG_NO_NON_HTML5_CONVERSION=1 -DU_CHARSET_IS_UTF8=1 -DU_STATIC_IMPLEMENTATION -DCHROME_PNG_WRITE_SUPPORT -DPNG_USER_CONFIG -I../.. -Igen -I../../sky/engine -I. -Igen/sky -I../../third_party/khronos -I../../gpu -I../.. -Igen -I../../mojo/services -Igen/mojo/services -I../../skia/config -I../../skia/ext -I../../third_party/skia/include/c -I../../third_party/skia/include/config -I../../third_party/skia/include/core -I../../third_party/skia/include/effects -I../../third_party/skia/include/images -I../../third_party/skia/include/lazy -I../../third_party/skia/include/pathops -I../../third_party/skia/include/pdf -I../../third_party/skia/include/pipe -I../../third_party/skia/include/ports -I../../third_party/skia/include/utils -I../../third_party/skia/include/gpu -I../../third_party/skia/src/gpu -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -I../../third_party/angle/include -I../../third_party/iccjpeg -I../../third_party/libpng -I../../third_party/zlib -I../../third_party/ots/include -I../../third_party/qcms/src -fno-strict-aliasing -fstack-protector --param=ssp-buffer-size=4 -m64 -march=x86-64 -funwind-tables -fPIC -pipe -pthread -B../../third_party/binutils/Linux_x64/Release/bin -fcolor-diagnostics -Wall -Wsign-compare -Wendif-labels -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-char-subscripts -Wno-covered-switch-default -Wno-deprecated-register -Wno-unneeded-internal-declaration -Wno-reserved-user-defined-literal -Wno-inconsistent-missing-override -fvisibility=hidden -Xclang -load -Xclang ../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so -Xclang -add-plugin -Xclang find-bad-constructs -Wheader-hygiene -Wstring-conversion -O0 -g2 -gsplit-dwarf -Wexit-time-destructors -fno-threadsafe-statics -fvisibility-inlines-hidden -Wno-undefined-bool-conversion -Wno-tautological-undefined-compare -std=gnu++11 -fno-rtti -fno-exceptions -Wno-c++0x-compat -c gen/sky/core/HTMLElementFactory.cpp -o obj/out/Debug/gen/sky/core/make_core_generated_html_element_factory.HTMLElementFactory.o
In file included from gen/sky/core/HTMLElementFactory.cpp:9:
In file included from ../../sky/engine/core/html/HTMLAnchorElement.h:30:
../../sky/engine/core/html/HTMLElement.h:69:10: fatal error: 'gen/sky/core/HTMLElementTypeHelpers.h' file not found
#include "gen/sky/core/HTMLElementTypeHelpers.h"


and

ninja -C out/Debug make_core_generated_html_element_factory

root@9658f19f684e:/mojo/src# ninja -C out/Debug make_core_generated_html_element_factory
ninja: Entering directory `out/Debug'
[1/2] CXX obj/out/Debug/gen/sky/core/make_core_generated_html_element_factory.HTMLElementFactory.o
FAILED: ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/out/Debug/gen/sky/core/make_core_generated_html_element_factory.HTMLElementFactory.o.d -DV8_DEPRECATION_WARNINGS -DCLD_VERSION=2 -DENABLE_MDNS=1 -DENABLE_NOTIFICATIONS -DENABLE_PEPPER_CDMS -DENABLE_PLUGINS=1 -DENABLE_PRINTING=1 -DENABLE_BASIC_PRINTING=1 -DENABLE_PRINT_PREVIEW=1 -DENABLE_SPELLCHECK=1 -DDONT_EMBED_BUILD_METADATA -DUSE_UDEV -DTOOLKIT_VIEWS=1 -DUSE_ASH=1 -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DENABLE_WEBRTC=1 -DENABLE_EXTENSIONS=1 -DENABLE_CONFIGURATION_POLICY -DENABLE_TASK_MANAGER=1 -DENABLE_THEMES=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_SUPERVISED_USERS=1 -DENABLE_SERVICE_DISCOVERY=1 -DENABLE_AUTOFILL_DIALOG=1 -DENABLE_REMOTING=1 -DENABLE_GOOGLE_NOW=1 -DENABLE_ONE_CLICK_SIGNIN -DENABLE_HIDPI=1 -DENABLE_BACKGROUND=1 -DENABLE_PRE_SYNC_BACKUP -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DSAFE_BROWSING_SERVICE -DCHROMIUM_BUILD -DCR_CLANG_REVISION=233105-2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -D_GLIBCXX_DEBUG=1 -DBLINK_IMPLEMENTATION=1 -DINSIDE_BLINK -DSK_LEGACY_DRAWPICTURECALLBACK -DSK_SUPPORT_LEGACY_OPTIONLESS_GET_PIXELS -DSK_SUPPORT_GPU=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -DENABLE_OPENTYPE_VERTICAL=1 -DENABLE_DART_STRICT=1 -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUCONFIG_NO_NON_HTML5_CONVERSION=1 -DU_CHARSET_IS_UTF8=1 -DU_STATIC_IMPLEMENTATION -DCHROME_PNG_WRITE_SUPPORT -DPNG_USER_CONFIG -I../.. -Igen -I../../sky/engine -I. -Igen/sky -I../../third_party/khronos -I../../gpu -I../.. -Igen -I../../mojo/services -Igen/mojo/services -I../../skia/config -I../../skia/ext -I../../third_party/skia/include/c -I../../third_party/skia/include/config -I../../third_party/skia/include/core -I../../third_party/skia/include/effects -I../../third_party/skia/include/images -I../../third_party/skia/include/lazy -I../../third_party/skia/include/pathops -I../../third_party/skia/include/pdf -I../../third_party/skia/include/pipe -I../../third_party/skia/include/ports -I../../third_party/skia/include/utils -I../../third_party/skia/include/gpu -I../../third_party/skia/src/gpu -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -I../../third_party/angle/include -I../../third_party/iccjpeg -I../../third_party/libpng -I../../third_party/zlib -I../../third_party/ots/include -I../../third_party/qcms/src -fno-strict-aliasing -fstack-protector --param=ssp-buffer-size=4 -m64 -march=x86-64 -funwind-tables -fPIC -pipe -pthread -B../../third_party/binutils/Linux_x64/Release/bin -fcolor-diagnostics -Wall -Wsign-compare -Wendif-labels -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-char-subscripts -Wno-covered-switch-default -Wno-deprecated-register -Wno-unneeded-internal-declaration -Wno-reserved-user-defined-literal -Wno-inconsistent-missing-override -fvisibility=hidden -Xclang -load -Xclang ../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so -Xclang -add-plugin -Xclang find-bad-constructs -Wheader-hygiene -Wstring-conversion -O0 -g2 -gsplit-dwarf -Wexit-time-destructors -fno-threadsafe-statics -fvisibility-inlines-hidden -Wno-undefined-bool-conversion -Wno-tautological-undefined-compare -std=gnu++11 -fno-rtti -fno-exceptions -Wno-c++0x-compat -c gen/sky/core/HTMLElementFactory.cpp -o obj/out/Debug/gen/sky/core/make_core_generated_html_element_factory.HTMLElementFactory.o
In file included from gen/sky/core/HTMLElementFactory.cpp:9:
In file included from ../../sky/engine/core/html/HTMLAnchorElement.h:30:
../../sky/engine/core/html/HTMLElement.h:69:10: fatal error: 'gen/sky/core/HTMLElementTypeHelpers.h' file not found
#include "gen/sky/core/HTMLElementTypeHelpers.h"
         ^
1 error generated.
ninja: build stopped: subcommand failed.

Any ideas?

Günter Zöchbauer

unread,
Jun 11, 2015, 5:36:44 AM6/11/15
to mojo...@chromium.org
Never mind. 
I started fresh over and now it's working.

If anybody is interested I created a Dockerfile containing the exact steps

Günter Zöchbauer

unread,
Jun 12, 2015, 5:16:46 AM6/12/15
to mojo...@chromium.org
Weird, it worked yesterday but today I get the same error again when I try to create the Docker image.

Eric Seidel

unread,
Jun 12, 2015, 11:02:20 AM6/12/15
to Günter Zöchbauer, mojo...@chromium.org, Chinmay Garde
We have a dependency error in our sky/engine/build.gn file. Chinmay and I looked at it briefly yesterday, but without a reliable reproduction its hard to track down. 

Adam Barth

unread,
Jun 13, 2015, 12:49:35 PM6/13/15
to Eric Seidel, Günter Zöchbauer, mojo...@chromium.org, Chinmay Garde
I was able to reproduce this issue locally.  Hopefully https://github.com/domokit/mojo/commit/5ad488cb92a4b987889aeb21cab6aab86dd6c097 fixes the issue.  Is there an issue on file in our issue tracker [1] that I should update?

Thanks!
Adam



Reply all
Reply to author
Forward
0 new messages