Build failure: token is not a valid binary operator in a preprocessor expression.

1,737 views
Skip to first unread message

Dale Curtis

unread,
May 6, 2014, 6:19:06 PM5/6/14
to blink-dev
Bots seem fine, but a clean ToT build is failing with thousands of these:

In file included from ../../third_party/WebKit/Source/platform/network/HTTPParsers.cpp:34:
In file included from ../../third_party/WebKit/Source/platform/network/HTTPParsers.h:36:
In file included from ../../third_party/WebKit/Source/wtf/Vector.h:24:
../../third_party/WebKit/Source/wtf/Alignment.h:30:13: error: token is not a valid binary operator in a preprocessor subexpression
#if COMPILER(GCC)
    ~~~~~~~~^
../../third_party/WebKit/Source/wtf/Alignment.h:33:15: error: token is not a valid binary operator in a preprocessor subexpression
#elif COMPILER(MSVC)
      ~~~~~~~~^
../../third_party/WebKit/Source/wtf/Alignment.h:37:6: error: WTF_ALIGN macros need alignment control.
    #error WTF_ALIGN macros need alignment control.
     ^
../../third_party/WebKit/Source/wtf/Alignment.h:40:13: error: token is not a valid binary operator in a preprocessor subexpression
#if COMPILER(GCC)
    ~~~~~~~~^

Anyone know what's up? I don't see any recent changes there or with clang which should have triggered this. My GYP_DEFINES:

dalecurtis@xorax /d/code/chrome/src $ echo $GYP_DEFINES
component=shared_library clang=1
dalecurtis@xorax /d/code/chrome/src $ cat ~/.gyp/include.gypi 
{
  'variables': {
    'ffmpeg_branding': 'ChromeOS',
    'proprietary_codecs': 1,
    'disable_nacl': 1,
    'disable_pnacl': 1,
    'dcheck_always_on': 1,
  }
}

- dale

Scott Graham

unread,
May 6, 2014, 6:26:32 PM5/6/14
to Dale Curtis, blink-dev
It doesn't look like Vector.h or Alignment.h includes Compiler.h. Is it possible your include path is getting you a different config.h in HTTPParsers.cpp, so you don't indirectly include wtf/Compiler.h?

Dale Curtis

unread,
May 6, 2014, 6:47:18 PM5/6/14
to Scott Graham, blink-dev
Thanks for the tip. Running clang with -v showed the include paths, searching through those revealed it was pulling config.h from another third party component I'd run ./configure for :|

- dale

EmanueL Czirai

unread,
Sep 22, 2014, 4:29:45 AM9/22/14
to blin...@chromium.org, sco...@chromium.org
Hi. What was the fix?:) I have no idea how to make it NOT pull config.h from another component.
I'm currently getting the "same" error:

[7/7859] clang++ -MMD -MF obj/cc/base/cc.tiling_data.o.d -DV8_DEPRECATION_WARNINGS -D_FILE_OFFSET_BITS=64 -DCHROMIUM_BUILD -DCR_CLANG_REVISION=216630 -DCOMPONENT_BUILD -DTOOLKIT_VIEWS=1 -DUI_COMPOSITOR_IMAGE_TRANSPORT -DUSE_AURA=1 -DUSE_ASH=1 -DUSE_PANGO=1 -DUSE_CAIRO=1 -DUSE_GLIB=1 -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_LIBJPEG_TURBO=1 -DUSE_X11=1 -DUSE_CLIPBOARD_AURAX11=1 -DENABLE_ONE_CLICK_SIGNIN -DENABLE_PRE_SYNC_BACKUP -DUSE_XI2_MT=2 -DENABLE_REMOTING=1 -DENABLE_WEBRTC=1 -DUSE_PROPRIETARY_CODECS -DENABLE_PEPPER_CDMS -DENABLE_CONFIGURATION_POLICY -DENABLE_NOTIFICATIONS -DUSE_UDEV -DENABLE_EGLIMAGE=1 -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=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 -DCLD2_DATA_SOURCE=static -DENABLE_FULL_PRINTING=1 -DENABLE_PRINTING=1 -DENABLE_SPELLCHECK=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_MANAGED_USERS=1 -DENABLE_MDNS=1 -DENABLE_SERVICE_DISCOVERY=1 -DENABLE_LOAD_COMPLETION_HACKS=1 -DCC_IMPLEMENTATION=1 -DGL_GLEXT_PROTOTYPES -DSKIA_DLL -DGR_GL_IGNORE_ES3_MSAA=0 -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 -DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT -DSK_SUPPORT_LEGACY_PUBLIC_IMAGEINFO_FIELDS -DSK_IGNORE_PROPER_FRACTIONAL_SCALING -DSK_SUPPORT_LEGACY_PICTURE_CLONE -DSK_IGNORE_ETC1_SUPPORT -DSK_IGNORE_GPU_DITHER -DSK_SUPPORT_LEGACY_IMAGECACHE_NAME -DSK_LEGACY_PICTURE_SIZE_API -DSK_LEGACY_PICTURE_DRAW_API -DSK_USE_POSIX_THREADS -DSK_DEFERRED_CANVAS_USES_FACTORIES=1 -DU_USING_ICU_NAMESPACE=0 -DUSE_NSS=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -Igen/shim_headers/libpng/target -Igen/shim_headers/harfbuzz-ng/target -Igen/shim_headers/zlib/target -Igen/shim_headers/icuuc/target -Igen/shim_headers/icui18n/target -Igen/shim_headers/re2/target -Igen/shim_headers/libevent/target -Igen -I../.. -I../../third_party/khronos -I../../gpu -I../../skia/config -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 -fstack-protector --param=ssp-buffer-size=4  -pthread -fno-strict-aliasing -Wall -Wno-unused-parameter -Wno-missing-field-initializers -fvisibility=hidden -pipe -fPIC -Wno-reserved-user-defined-literal -fcolor-diagnostics -Wheader-hygiene -Wno-char-subscripts -Wno-unneeded-internal-declaration -Wno-covered-switch-default -Wstring-conversion -Wno-c++11-narrowing -Wno-deprecated-register -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -m64 -march=x86-64 -O2 -fno-ident -fdata-sections -ffunction-sections -funwind-tables -march=native -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wno-trigraphs -D_FORTIFY_SOURCE=2 -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -Wsign-compare -std=gnu++11  -c ../../cc/base/tiling_data.cc -o obj/cc/base/cc.tiling_data.o
FAILED: clang++ -MMD -MF obj/third_party/WebKit/Source/platform/blink_platform.ContextMenuItem.o.d -DV8_DEPRECATION_WARNINGS -D_FILE_OFFSET_BITS=64 -DCHROMIUM_BUILD -DCR_CLANG_REVISION=216630 -DCOMPONENT_BUILD -DTOOLKIT_VIEWS=1 -DUI_COMPOSITOR_IMAGE_TRANSPORT -DUSE_AURA=1 -DUSE_ASH=1 -DUSE_PANGO=1 -DUSE_CAIRO=1 -DUSE_GLIB=1 -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_LIBJPEG_TURBO=1 -DUSE_X11=1 -DUSE_CLIPBOARD_AURAX11=1 -DENABLE_ONE_CLICK_SIGNIN -DENABLE_PRE_SYNC_BACKUP -DUSE_XI2_MT=2 -DENABLE_REMOTING=1 -DENABLE_WEBRTC=1 -DUSE_PROPRIETARY_CODECS -DENABLE_PEPPER_CDMS -DENABLE_CONFIGURATION_POLICY -DENABLE_NOTIFICATIONS -DUSE_UDEV -DENABLE_EGLIMAGE=1 -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=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 -DCLD2_DATA_SOURCE=static -DENABLE_FULL_PRINTING=1 -DENABLE_PRINTING=1 -DENABLE_SPELLCHECK=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_MANAGED_USERS=1 -DENABLE_MDNS=1 -DENABLE_SERVICE_DISCOVERY=1 -DENABLE_LOAD_COMPLETION_HACKS=1 -DBLINK_PLATFORM_IMPLEMENTATION=1 -DINSIDE_BLINK -DGL_GLEXT_PROTOTYPES -DENABLE_SVG_FONTS=1 -DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1 -DENABLE_INPUT_MULTIPLE_FIELDS_UI=1 -DENABLE_WEB_AUDIO=1 -DWTF_USE_WEBAUDIO_FFMPEG=1 -DENABLE_OPENTYPE_VERTICAL=1 -DWTF_USE_DEFAULT_RENDER_THEME=1 -DSKIA_DLL -DGR_GL_IGNORE_ES3_MSAA=0 -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 -DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT -DSK_SUPPORT_LEGACY_PUBLIC_IMAGEINFO_FIELDS -DSK_IGNORE_PROPER_FRACTIONAL_SCALING -DSK_SUPPORT_LEGACY_PICTURE_CLONE -DSK_IGNORE_ETC1_SUPPORT -DSK_IGNORE_GPU_DITHER -DSK_SUPPORT_LEGACY_IMAGECACHE_NAME -DSK_LEGACY_PICTURE_SIZE_API -DSK_LEGACY_PICTURE_DRAW_API -DSK_USE_POSIX_THREADS -DSK_DEFERRED_CANVAS_USES_FACTORIES=1 -DU_USING_ICU_NAMESPACE=0 -DENABLE_WEBP -DV8_SHARED -DUSING_V8_SHARED -DUSE_SYSTEM_LIBJPEG -D__STDC_CONSTANT_MACROS -DUSE_NSS=1 -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -Igen/shim_headers/libpng/target -Igen/shim_headers/harfbuzz-ng/target -Igen/shim_headers/re2/target -Igen/shim_headers/libevent/target -Igen/shim_headers/zlib/target -Igen/shim_headers/icuuc/target -Igen/shim_headers/icui18n/target -Igen -I../../third_party/angle/include -Igen/blink -I../../third_party/ffmpeg -I../../third_party/WebKit/Source -I../.. -I../../skia/config -I../../third_party/khronos -I../../gpu -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/ots/include -I../../third_party/qcms/src -I../../v8/include -I../../third_party/iccjpeg -Igen/ffmpeg -I../../third_party/ffmpeg/chromium/config/Chrome/linux/x64 -I../../third_party/ffmpeg -fstack-protector --param=ssp-buffer-size=4  -pthread -fno-strict-aliasing -Wall -Wno-unused-parameter -Wno-missing-field-initializers -fvisibility=hidden -pipe -fPIC -Wno-reserved-user-defined-literal -fcolor-diagnostics -Wheader-hygiene -Wno-char-subscripts -Wno-unneeded-internal-declaration -Wno-covered-switch-default -Wstring-conversion -Wno-c++11-narrowing -Wno-deprecated-register -Wglobal-constructors -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -m64 -march=x86-64 -O2 -fno-ident -fdata-sections -ffunction-sections -funwind-tables -march=native -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wno-trigraphs -D_FORTIFY_SOURCE=2 -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -Wsign-compare -std=gnu++11  -c ../../third_party/WebKit/Source/platform/ContextMenuItem.cpp -o obj/third_party/WebKit/Source/platform/blink_platform.ContextMenuItem.o
In file included from ../../third_party/WebKit/Source/platform/ContextMenuItem.cpp:27:
In file included from ../../third_party/WebKit/Source/platform/ContextMenuItem.h:31:
In file included from ../../third_party/WebKit/Source/wtf/OwnPtr.h:28:
In file included from ../../third_party/WebKit/Source/wtf/OwnPtrCommon.h:32:
../../third_party/WebKit/Source/wtf/Assertions.h:176:5: error: token is not a valid binary operator in a preprocessor subexpression
#if BACKTRACE_DISABLED
    ^~~~~~~~~~~~~~~~~~
../../third_party/WebKit/Source/wtf/Assertions.h:58:35: note: expanded from macro 'BACKTRACE_DISABLED'
#define BACKTRACE_DISABLED !ENABLE(ASSERT)
                           ~~~~~~~^
../../third_party/WebKit/Source/wtf/Assertions.h:193:7: error: token is not a valid binary operator in a preprocessor subexpression
#if OS(WIN)
    ~~^
../../third_party/WebKit/Source/wtf/Assertions.h:198:11: error: token is not a valid binary operator in a preprocessor subexpression
#if ENABLE(ASSERT)
    ~~~~~~^
../../third_party/WebKit/Source/wtf/Assertions.h:259:41: error: token is not a valid binary operator in a preprocessor subexpression
#if defined(ADDRESS_SANITIZER) || ENABLE(ASSERT)
                                  ~~~~~~^
../../third_party/WebKit/Source/wtf/Assertions.h:267:5: error: token is not a valid binary operator in a preprocessor subexpression
#if ASSERT_MSG_DISABLED
    ^~~~~~~~~~~~~~~~~~~
../../third_party/WebKit/Source/wtf/Assertions.h:62:36: note: expanded from macro 'ASSERT_MSG_DISABLED'
#define ASSERT_MSG_DISABLED !ENABLE(ASSERT)
                            ~~~~~~~^
../../third_party/WebKit/Source/wtf/Assertions.h:280:5: error: token is not a valid binary operator in a preprocessor subexpression
#if ASSERT_MSG_DISABLED
    ^~~~~~~~~~~~~~~~~~~
../../third_party/WebKit/Source/wtf/Assertions.h:62:36: note: expanded from macro 'ASSERT_MSG_DISABLED'
#define ASSERT_MSG_DISABLED !ENABLE(ASSERT)
                            ~~~~~~~^
../../third_party/WebKit/Source/wtf/Assertions.h:293:5: error: token is not a valid binary operator in a preprocessor subexpression
#if ASSERT_ARG_DISABLED
    ^~~~~~~~~~~~~~~~~~~
../../third_party/WebKit/Source/wtf/Assertions.h:66:36: note: expanded from macro 'ASSERT_ARG_DISABLED'
#define ASSERT_ARG_DISABLED !ENABLE(ASSERT)
                            ~~~~~~~^
../../third_party/WebKit/Source/wtf/Assertions.h:322:5: error: token is not a valid binary operator in a preprocessor subexpression
#if FATAL_DISABLED
    ^~~~~~~~~~~~~~
../../third_party/WebKit/Source/wtf/Assertions.h:70:31: note: expanded from macro 'FATAL_DISABLED'
#define FATAL_DISABLED !ENABLE(ASSERT)
                       ~~~~~~~^
../../third_party/WebKit/Source/wtf/Assertions.h:333:5: error: token is not a valid binary operator in a preprocessor subexpression
#if ERROR_DISABLED
    ^~~~~~~~~~~~~~
../../third_party/WebKit/Source/wtf/Assertions.h:74:31: note: expanded from macro 'ERROR_DISABLED'
#define ERROR_DISABLED !ENABLE(ASSERT)
                       ~~~~~~~^
../../third_party/WebKit/Source/wtf/Assertions.h:341:5: error: token is not a valid binary operator in a preprocessor subexpression
#if LOG_DISABLED
    ^~~~~~~~~~~~
../../third_party/WebKit/Source/wtf/Assertions.h:78:29: note: expanded from macro 'LOG_DISABLED'
#define LOG_DISABLED !ENABLE(ASSERT)
                     ~~~~~~~^
../../third_party/WebKit/Source/wtf/Assertions.h:373:11: error: token is not a valid binary operator in a preprocessor subexpression
#if ENABLE(ASSERT)
    ~~~~~~^
In file included from ../../third_party/WebKit/Source/platform/ContextMenuItem.cpp:27:
In file included from ../../third_party/WebKit/Source/platform/ContextMenuItem.h:31:
In file included from ../../third_party/WebKit/Source/wtf/OwnPtr.h:28:
In file included from ../../third_party/WebKit/Source/wtf/OwnPtrCommon.h:33:
../../third_party/WebKit/Source/wtf/TypeTraits.h:135:24: error: unknown type name 'size_t'; did you mean 'std::size_t'?
    template <class T, size_t N> struct IsArray<T[N]> {
                       ^~~~~~
                       std::size_t
/usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/4.9.1/../../../../include/c++/4.9.1/x86_64-unknown-linux-gnu/bits/c++config.h:188:26: note: 'std::size_t' declared here
  typedef __SIZE_TYPE__         size_t;
                                ^
In file included from ../../third_party/WebKit/Source/platform/ContextMenuItem.cpp:27:
In file included from ../../third_party/WebKit/Source/platform/ContextMenuItem.h:31:
In file included from ../../third_party/WebKit/Source/wtf/OwnPtr.h:28:
In file included from ../../third_party/WebKit/Source/wtf/OwnPtrCommon.h:33:
../../third_party/WebKit/Source/wtf/TypeTraits.h:174:48: error: unknown type name 'size_t'; did you mean 'std::size_t'?
    template <typename T, template<typename V, size_t W> class U> class IsSubclassOfTemplateTypenameSize {
                                               ^~~~~~
                                               std::size_t
/usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/4.9.1/../../../../include/c++/4.9.1/x86_64-unknown-linux-gnu/bits/c++config.h:188:26: note: 'std::size_t' declared here
  typedef __SIZE_TYPE__         size_t;
                                ^
In file included from ../../third_party/WebKit/Source/platform/ContextMenuItem.cpp:27:
In file included from ../../third_party/WebKit/Source/platform/ContextMenuItem.h:31:
In file included from ../../third_party/WebKit/Source/wtf/OwnPtr.h:28:
In file included from ../../third_party/WebKit/Source/wtf/OwnPtrCommon.h:33:
../../third_party/WebKit/Source/wtf/TypeTraits.h:180:30: error: unknown type name 'size_t'; did you mean 'std::size_t'?
        template<typename X, size_t Y> static YesType subclassCheck(U<X, Y>*);
                             ^~~~~~
                             std::size_t
/usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/4.9.1/../../../../include/c++/4.9.1/x86_64-unknown-linux-gnu/bits/c++config.h:188:26: note: 'std::size_t' declared here
  typedef __SIZE_TYPE__         size_t;
                                ^
In file included from ../../third_party/WebKit/Source/platform/ContextMenuItem.cpp:27:
In file included from ../../third_party/WebKit/Source/platform/ContextMenuItem.h:31:
In file included from ../../third_party/WebKit/Source/wtf/OwnPtr.h:28:
In file included from ../../third_party/WebKit/Source/wtf/OwnPtrCommon.h:33:
../../third_party/WebKit/Source/wtf/TypeTraits.h:187:48: error: unknown type name 'size_t'; did you mean 'std::size_t'?
    template <typename T, template<typename V, size_t W, typename X> class U> class IsSubclassOfTemplateTypenameSizeTypename {
                                               ^~~~~~
                                               std::size_t
/usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/4.9.1/../../../../include/c++/4.9.1/x86_64-unknown-linux-gnu/bits/c++config.h:188:26: note: 'std::size_t' declared here
  typedef __SIZE_TYPE__         size_t;
                                ^
In file included from ../../third_party/WebKit/Source/platform/ContextMenuItem.cpp:27:
In file included from ../../third_party/WebKit/Source/platform/ContextMenuItem.h:31:
In file included from ../../third_party/WebKit/Source/wtf/OwnPtr.h:28:
In file included from ../../third_party/WebKit/Source/wtf/OwnPtrCommon.h:33:
../../third_party/WebKit/Source/wtf/TypeTraits.h:193:30: error: unknown type name 'size_t'; did you mean 'std::size_t'?
        template<typename Y, size_t Z, typename A> static YesType subclassCheck(U<Y, Z, A>*);
                             ^~~~~~
                             std::size_t
/usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/4.9.1/../../../../include/c++/4.9.1/x86_64-unknown-linux-gnu/bits/c++config.h:188:26: note: 'std::size_t' declared here
  typedef __SIZE_TYPE__         size_t;
                                ^
In file included from ../../third_party/WebKit/Source/platform/ContextMenuItem.cpp:27:
In file included from ../../third_party/WebKit/Source/platform/ContextMenuItem.h:31:
In file included from ../../third_party/WebKit/Source/wtf/OwnPtr.h:28:
In file included from ../../third_party/WebKit/Source/wtf/OwnPtrCommon.h:33:
../../third_party/WebKit/Source/wtf/TypeTraits.h:278:27: error: unknown type name 'size_t'; did you mean 'std::size_t'?
    template <typename T, size_t N> struct RemoveExtent<T[N]> {
                          ^~~~~~
                          std::size_t
/usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/4.9.1/../../../../include/c++/4.9.1/x86_64-unknown-linux-gnu/bits/c++config.h:188:26: note: 'std::size_t' declared here
  typedef __SIZE_TYPE__         size_t;
                                ^
In file included from ../../third_party/WebKit/Source/platform/ContextMenuItem.cpp:27:
In file included from ../../third_party/WebKit/Source/platform/ContextMenuItem.h:31:
In file included from ../../third_party/WebKit/Source/wtf/OwnPtr.h:28:
In file included from ../../third_party/WebKit/Source/wtf/OwnPtrCommon.h:33:
../../third_party/WebKit/Source/wtf/TypeTraits.h:320:14: error: unknown type name 'size_t'; did you mean 'std::size_t'?
    template<size_t> struct HasMethod;
             ^~~~~~
             std::size_t
/usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/4.9.1/../../../../include/c++/4.9.1/x86_64-unknown-linux-gnu/bits/c++config.h:188:26: note: 'std::size_t' declared here
  typedef __SIZE_TYPE__         size_t;
                                ^
In file included from ../../third_party/WebKit/Source/platform/ContextMenuItem.cpp:27:
In file included from ../../third_party/WebKit/Source/platform/ContextMenuItem.h:32:
In file included from ../../third_party/WebKit/Source/wtf/text/WTFString.h:30:
../../third_party/WebKit/Source/wtf/text/ASCIIFastPath.h:31:7: error: token is not a valid binary operator in a preprocessor subexpression
#if OS(MACOSX) && (CPU(X86) || CPU(X86_64))
    ~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
ninja: build stopped: subcommand failed.

Nico Weber

unread,
Sep 22, 2014, 11:24:02 AM9/22/14
to EmanueL Czirai, blink-dev, Scott Graham
From your other thread, I'm guessing that the fix for you will be `rm third_party/ffmpeg/config.h`.

EmanueL Czirai

unread,
Sep 22, 2014, 1:06:29 PM9/22/14
to Nico Weber, blink-dev, Scott Graham
Wow, you're good! That did it: just deleting that config.h file, compilation continues past the error(s) - still compiling currently.

I actually remember doing a ` ./configure ` then `make` in that ffmpeg folder at some point(in the hopes it would generate that  ffmpeg_stubs.h  file from the other thread, but it didn't of course), and likely that is why that config.h got generated, and although I deleted what I've seen as new with git status in ffmpeg folder, some files were in .gitignore  such as:   /config.*   so I didn't realize to they existed to clean them (well actually, I didn't think it would affect anything even if they did exist); but I should probably remove the entire ffmpeg folder and `gclient sync` to bring it back again to be sure... I'll do this if I get any more errors after this.

Thank you a lot! Much appreciated.

Reply all
Reply to author
Forward
0 new messages