Build Issue

3 views
Skip to first unread message

Benjamin Dobler

unread,
Aug 7, 2013, 5:45:36 PM8/7/13
to node-...@googlegroups.com
Hey, 

i get some errors when i try to build node-webkit. I have to say that i`m really a noob at these things so it`s probably something stupid.
If anyone has the time to point me in the right direction that would be much appreciated.

So i try to build on OSX and when i run $ ninja -C out/Release nw -j4 i get the following result with lot`s of errors and warnings. It ends with:
1 warning and 18 errors generated.
ninja: build stopped: subcommand failed.

Thanks for any help!


ninja: Entering directory `out/Release'
[4/7091] CXX obj/third_party/tcmalloc/chromium/src/base/allocator.spinlock_internal.o
FAILED: ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/third_party/tcmalloc/chromium/src/base/allocator.spinlock_internal.o.d -DANGLE_DX11 -DCHROMIUM_BUILD -DUSE_LIBJPEG_TURBO=1 -DENABLE_ONE_CLICK_SIGNIN -DENABLE_REMOTING=1 -DENABLE_WEBRTC=1 -DUSE_PROPRIETARY_CODECS -DENABLE_PEPPER_CDMS -DENABLE_CONFIGURATION_POLICY -DENABLE_INPUT_SPEECH -DENABLE_NOTIFICATIONS -DENABLE_HIDPI=1 -DENABLE_GPU=1 -DENABLE_EGLIMAGE=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_AUTOMATION=1 -DENABLE_GOOGLE_NOW=1 -DENABLE_LANGUAGE_DETECTION=1 -DENABLE_PRINTING=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_MANAGED_USERS=1 -DNO_HEAP_CHECK -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../../base/allocator -I../../third_party/tcmalloc/chromium/src/base -I../../third_party/tcmalloc/chromium/src -I../.. -isysroot /Applications/Xcode5-DP.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -O3 -gdwarf-2 -fvisibility=hidden -Wnewline-eof -mmacosx-version-min=10.6 -arch i386 -Wendif-labels -Wno-unused-parameter -Wno-missing-field-initializers -Wheader-hygiene -Wno-c++11-narrowing -Wno-reserved-user-defined-literal -Wno-char-subscripts -Wno-unused-function -Wno-covered-switch-default -Wstring-conversion -fno-rtti -fno-exceptions -fvisibility-inlines-hidden -fno-threadsafe-statics -Xclang -load -Xclang /Users/dobler/Documents/tools/node-webkit/src/tools/clang/scripts/../../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.dylib -Xclang -add-plugin -Xclang find-bad-constructs -fcolor-diagnostics -fno-strict-aliasing -std=gnu++11  -c ../../third_party/tcmalloc/chromium/src/base/spinlock_internal.cc -o obj/third_party/tcmalloc/chromium/src/base/allocator.spinlock_internal.o
In file included from ../../third_party/tcmalloc/chromium/src/base/spinlock_internal.cc:43:
In file included from ../../third_party/tcmalloc/chromium/src/base/spinlock_internal.h:39:
../../third_party/tcmalloc/chromium/src/base/basictypes.h:68:9: error: unknown type name 'uint8_t'
typedef uint8_t            uint8;
        ^
../../third_party/tcmalloc/chromium/src/base/basictypes.h:69:9: error: unknown type name 'uint16_t'
typedef uint16_t           uint16;
        ^
../../third_party/tcmalloc/chromium/src/base/basictypes.h:70:9: error: unknown type name 'uint32_t'
typedef uint32_t           uint32;
        ^
../../third_party/tcmalloc/chromium/src/base/basictypes.h:71:9: error: unknown type name 'uint64_t'
typedef uint64_t           uint64;
        ^
../../third_party/tcmalloc/chromium/src/base/basictypes.h:75:52: warning: shift count >= width of type [-Wshift-count-overflow]
const uint64 kuint64max = ( (((uint64) kuint32max) << 32) | kuint32max );
                                                   ^  ~~
In file included from ../../third_party/tcmalloc/chromium/src/base/spinlock_internal.cc:53:
../../third_party/tcmalloc/chromium/src/base/spinlock_posix-inl.h:48:5: error: use of undeclared identifier 'sched_yield'
    sched_yield();
    ^
1 warning and 5 errors generated.
[4/7091] CXX obj/third_party/tcmalloc/chromium/src/base/allocator.logging.o
FAILED: ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/third_party/tcmalloc/chromium/src/base/allocator.logging.o.d -DANGLE_DX11 -DCHROMIUM_BUILD -DUSE_LIBJPEG_TURBO=1 -DENABLE_ONE_CLICK_SIGNIN -DENABLE_REMOTING=1 -DENABLE_WEBRTC=1 -DUSE_PROPRIETARY_CODECS -DENABLE_PEPPER_CDMS -DENABLE_CONFIGURATION_POLICY -DENABLE_INPUT_SPEECH -DENABLE_NOTIFICATIONS -DENABLE_HIDPI=1 -DENABLE_GPU=1 -DENABLE_EGLIMAGE=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_AUTOMATION=1 -DENABLE_GOOGLE_NOW=1 -DENABLE_LANGUAGE_DETECTION=1 -DENABLE_PRINTING=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_MANAGED_USERS=1 -DNO_HEAP_CHECK -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../../base/allocator -I../../third_party/tcmalloc/chromium/src/base -I../../third_party/tcmalloc/chromium/src -I../.. -isysroot /Applications/Xcode5-DP.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -O3 -gdwarf-2 -fvisibility=hidden -Wnewline-eof -mmacosx-version-min=10.6 -arch i386 -Wendif-labels -Wno-unused-parameter -Wno-missing-field-initializers -Wheader-hygiene -Wno-c++11-narrowing -Wno-reserved-user-defined-literal -Wno-char-subscripts -Wno-unused-function -Wno-covered-switch-default -Wstring-conversion -fno-rtti -fno-exceptions -fvisibility-inlines-hidden -fno-threadsafe-statics -Xclang -load -Xclang /Users/dobler/Documents/tools/node-webkit/src/tools/clang/scripts/../../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.dylib -Xclang -add-plugin -Xclang find-bad-constructs -fcolor-diagnostics -fno-strict-aliasing -std=gnu++11  -c ../../third_party/tcmalloc/chromium/src/base/logging.cc -o obj/third_party/tcmalloc/chromium/src/base/allocator.logging.o
In file included from ../../third_party/tcmalloc/chromium/src/base/logging.cc:34:
../../third_party/tcmalloc/chromium/src/base/logging.h:80:1: error: unknown type name 'PERFTOOLS_DLL_DECL'
DECLARE_int32(verbose);
^
../../third_party/tcmalloc/chromium/src/base/commandlineflags.h:82:3: note: expanded from macro 'DECLARE_int32'
  DECLARE_VARIABLE(int32, name)
  ^
../../third_party/tcmalloc/chromium/src/base/commandlineflags.h:63:10: note: expanded from macro 'DECLARE_VARIABLE'
  extern PERFTOOLS_DLL_DECL type FLAGS_##name;                                \
         ^
In file included from ../../third_party/tcmalloc/chromium/src/base/logging.cc:34:
../../third_party/tcmalloc/chromium/src/base/logging.h:80:1: error: expected ';' after top level declarator
../../third_party/tcmalloc/chromium/src/base/commandlineflags.h:82:3: note: expanded from macro 'DECLARE_int32'
  DECLARE_VARIABLE(int32, name)
  ^
../../third_party/tcmalloc/chromium/src/base/commandlineflags.h:63:34: note: expanded from macro 'DECLARE_VARIABLE'
  extern PERFTOOLS_DLL_DECL type FLAGS_##name;                                \
                                 ^
<scratch space>:161:1: note: expanded from here
FLAGS_verbose
^
In file included from ../../third_party/tcmalloc/chromium/src/base/logging.cc:34:
../../third_party/tcmalloc/chromium/src/base/logging.h:80:1: error: no member named 'FLAGS_verbose' in namespace 'FLAG__namespace_do_not_use_directly_use_DECLARE_int32_instead'
DECLARE_int32(verbose);
^~~~~~~~~~~~~~~~~~~~~~
../../third_party/tcmalloc/chromium/src/base/commandlineflags.h:82:3: note: expanded from macro 'DECLARE_int32'
  DECLARE_VARIABLE(int32, name)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../third_party/tcmalloc/chromium/src/base/commandlineflags.h:65:75: note: expanded from macro 'DECLARE_VARIABLE'
  using FLAG__namespace_do_not_use_directly_use_DECLARE_##type##_instead::FLAGS_##name
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
<scratch space>:161:1: note: expanded from here
FLAGS_verbose
^
In file included from ../../third_party/tcmalloc/chromium/src/base/logging.cc:34:
../../third_party/tcmalloc/chromium/src/base/logging.h:257:55: error: use of undeclared identifier 'FLAGS_verbose'
inline void RAW_LOG(int lvl, const char* pat, ...)  { LOG_PRINTF(lvl, pat); }
                                                      ^
../../third_party/tcmalloc/chromium/src/base/logging.h:248:7: note: expanded from macro 'LOG_PRINTF'
  if (VLOG_IS_ON(severity)) {                   \
      ^
../../third_party/tcmalloc/chromium/src/base/logging.h:244:31: note: expanded from macro 'VLOG_IS_ON'
#define VLOG_IS_ON(severity) (FLAGS_verbose >= severity)
                              ^
../../third_party/tcmalloc/chromium/src/base/logging.h:258:55: error: use of undeclared identifier 'FLAGS_verbose'
inline void RAW_VLOG(int lvl, const char* pat, ...) { LOG_PRINTF(lvl, pat); }
                                                      ^
../../third_party/tcmalloc/chromium/src/base/logging.h:248:7: note: expanded from macro 'LOG_PRINTF'
  if (VLOG_IS_ON(severity)) {                   \
      ^
../../third_party/tcmalloc/chromium/src/base/logging.h:244:31: note: expanded from macro 'VLOG_IS_ON'
#define VLOG_IS_ON(severity) (FLAGS_verbose >= severity)
                              ^
../../third_party/tcmalloc/chromium/src/base/logging.h:259:55: error: use of undeclared identifier 'FLAGS_verbose'
inline void LOG(int lvl, const char* pat, ...)      { LOG_PRINTF(lvl, pat); }
                                                      ^
../../third_party/tcmalloc/chromium/src/base/logging.h:248:7: note: expanded from macro 'LOG_PRINTF'
  if (VLOG_IS_ON(severity)) {                   \
      ^
../../third_party/tcmalloc/chromium/src/base/logging.h:244:31: note: expanded from macro 'VLOG_IS_ON'
#define VLOG_IS_ON(severity) (FLAGS_verbose >= severity)
                              ^
../../third_party/tcmalloc/chromium/src/base/logging.h:260:55: error: use of undeclared identifier 'FLAGS_verbose'
inline void VLOG(int lvl, const char* pat, ...)     { LOG_PRINTF(lvl, pat); }
                                                      ^
../../third_party/tcmalloc/chromium/src/base/logging.h:248:7: note: expanded from macro 'LOG_PRINTF'
  if (VLOG_IS_ON(severity)) {                   \
      ^
../../third_party/tcmalloc/chromium/src/base/logging.h:244:31: note: expanded from macro 'VLOG_IS_ON'
#define VLOG_IS_ON(severity) (FLAGS_verbose >= severity)
                              ^
../../third_party/tcmalloc/chromium/src/base/logging.h:262:14: error: use of undeclared identifier 'FLAGS_verbose'
  if (cond)  LOG_PRINTF(lvl, pat);
             ^
../../third_party/tcmalloc/chromium/src/base/logging.h:248:7: note: expanded from macro 'LOG_PRINTF'
  if (VLOG_IS_ON(severity)) {                   \
      ^
../../third_party/tcmalloc/chromium/src/base/logging.h:244:31: note: expanded from macro 'VLOG_IS_ON'
#define VLOG_IS_ON(severity) (FLAGS_verbose >= severity)
                              ^
../../third_party/tcmalloc/chromium/src/base/logging.cc:37:1: error: unknown type name 'PERFTOOLS_DLL_DECL'
DEFINE_int32(verbose, EnvToInt("PERFTOOLS_VERBOSE", 0),
^
../../third_party/tcmalloc/chromium/src/base/commandlineflags.h:84:3: note: expanded from macro 'DEFINE_int32'
  DEFINE_VARIABLE(int32, name, value, meaning)
  ^
../../third_party/tcmalloc/chromium/src/base/commandlineflags.h:69:3: note: expanded from macro 'DEFINE_VARIABLE'
  PERFTOOLS_DLL_DECL type FLAGS_##name(value);                                \
  ^
../../third_party/tcmalloc/chromium/src/base/logging.cc:37:1: error: expected ';' after top level declarator
../../third_party/tcmalloc/chromium/src/base/commandlineflags.h:84:3: note: expanded from macro 'DEFINE_int32'
  DEFINE_VARIABLE(int32, name, value, meaning)
  ^
../../third_party/tcmalloc/chromium/src/base/commandlineflags.h:69:27: note: expanded from macro 'DEFINE_VARIABLE'
  PERFTOOLS_DLL_DECL type FLAGS_##name(value);                                \
                          ^
<scratch space>:3:1: note: expanded from here
FLAGS_verbose
^
../../third_party/tcmalloc/chromium/src/base/logging.cc:37:1: error: no member named 'FLAGS_verbose' in namespace 'FLAG__namespace_do_not_use_directly_use_DECLARE_int32_instead'
DEFINE_int32(verbose, EnvToInt("PERFTOOLS_VERBOSE", 0),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../third_party/tcmalloc/chromium/src/base/commandlineflags.h:84:3: note: expanded from macro 'DEFINE_int32'
  DEFINE_VARIABLE(int32, name, value, meaning)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../third_party/tcmalloc/chromium/src/base/commandlineflags.h:72:75: note: expanded from macro 'DEFINE_VARIABLE'
  using FLAG__namespace_do_not_use_directly_use_DECLARE_##type##_instead::FLAGS_##name
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
<scratch space>:3:1: note: expanded from here
FLAGS_verbose
^
../../third_party/tcmalloc/chromium/src/base/logging.cc:90:25: error: use of undeclared identifier 'O_WRONLY'
  return open(filename, O_WRONLY|O_CREAT|O_TRUNC, 0664);
                        ^
../../third_party/tcmalloc/chromium/src/base/logging.cc:90:34: error: use of undeclared identifier 'O_CREAT'
  return open(filename, O_WRONLY|O_CREAT|O_TRUNC, 0664);
                                 ^
../../third_party/tcmalloc/chromium/src/base/logging.cc:90:42: error: use of undeclared identifier 'O_TRUNC'
  return open(filename, O_WRONLY|O_CREAT|O_TRUNC, 0664);
                                         ^
14 errors generated.
[4/7091] CXX obj/third_party/tcmalloc/chromium/src/base/allocator.spinlock.o
FAILED: ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/third_party/tcmalloc/chromium/src/base/allocator.spinlock.o.d -DANGLE_DX11 -DCHROMIUM_BUILD -DUSE_LIBJPEG_TURBO=1 -DENABLE_ONE_CLICK_SIGNIN -DENABLE_REMOTING=1 -DENABLE_WEBRTC=1 -DUSE_PROPRIETARY_CODECS -DENABLE_PEPPER_CDMS -DENABLE_CONFIGURATION_POLICY -DENABLE_INPUT_SPEECH -DENABLE_NOTIFICATIONS -DENABLE_HIDPI=1 -DENABLE_GPU=1 -DENABLE_EGLIMAGE=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_AUTOMATION=1 -DENABLE_GOOGLE_NOW=1 -DENABLE_LANGUAGE_DETECTION=1 -DENABLE_PRINTING=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_MANAGED_USERS=1 -DNO_HEAP_CHECK -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../../base/allocator -I../../third_party/tcmalloc/chromium/src/base -I../../third_party/tcmalloc/chromium/src -I../.. -isysroot /Applications/Xcode5-DP.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -O3 -gdwarf-2 -fvisibility=hidden -Wnewline-eof -mmacosx-version-min=10.6 -arch i386 -Wendif-labels -Wno-unused-parameter -Wno-missing-field-initializers -Wheader-hygiene -Wno-c++11-narrowing -Wno-reserved-user-defined-literal -Wno-char-subscripts -Wno-unused-function -Wno-covered-switch-default -Wstring-conversion -fno-rtti -fno-exceptions -fvisibility-inlines-hidden -fno-threadsafe-statics -Xclang -load -Xclang /Users/dobler/Documents/tools/node-webkit/src/tools/clang/scripts/../../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.dylib -Xclang -add-plugin -Xclang find-bad-constructs -fcolor-diagnostics -fno-strict-aliasing -std=gnu++11  -c ../../third_party/tcmalloc/chromium/src/base/spinlock.cc -o obj/third_party/tcmalloc/chromium/src/base/allocator.spinlock.o
In file included from ../../third_party/tcmalloc/chromium/src/base/spinlock.cc:35:
In file included from ../../third_party/tcmalloc/chromium/src/base/spinlock.h:47:
In file included from ../../third_party/tcmalloc/chromium/src/base/atomicops.h:93:
../../third_party/tcmalloc/chromium/src/base/atomicops-internals-macosx.h:38:9: error: unknown type name 'int32_t'
typedef int32_t Atomic32;
        ^
In file included from ../../third_party/tcmalloc/chromium/src/base/spinlock.cc:39:
In file included from ../../third_party/tcmalloc/chromium/src/base/sysinfo.h:49:
../../third_party/tcmalloc/chromium/src/base/logging.h:80:1: error: unknown type name 'PERFTOOLS_DLL_DECL'
DECLARE_int32(verbose);
^
../../third_party/tcmalloc/chromium/src/base/commandlineflags.h:82:3: note: expanded from macro 'DECLARE_int32'
  DECLARE_VARIABLE(int32, name)
  ^
../../third_party/tcmalloc/chromium/src/base/commandlineflags.h:63:10: note: expanded from macro 'DECLARE_VARIABLE'
  extern PERFTOOLS_DLL_DECL type FLAGS_##name;                                \
         ^
In file included from ../../third_party/tcmalloc/chromium/src/base/spinlock.cc:39:
In file included from ../../third_party/tcmalloc/chromium/src/base/sysinfo.h:49:
../../third_party/tcmalloc/chromium/src/base/logging.h:80:1: error: expected ';' after top level declarator
../../third_party/tcmalloc/chromium/src/base/commandlineflags.h:82:3: note: expanded from macro 'DECLARE_int32'
  DECLARE_VARIABLE(int32, name)
  ^
../../third_party/tcmalloc/chromium/src/base/commandlineflags.h:63:34: note: expanded from macro 'DECLARE_VARIABLE'
  extern PERFTOOLS_DLL_DECL type FLAGS_##name;                                \
                                 ^
<scratch space>:15:1: note: expanded from here
FLAGS_verbose
^
In file included from ../../third_party/tcmalloc/chromium/src/base/spinlock.cc:39:
In file included from ../../third_party/tcmalloc/chromium/src/base/sysinfo.h:49:
../../third_party/tcmalloc/chromium/src/base/logging.h:80:1: error: no member named 'FLAGS_verbose' in namespace 'FLAG__namespace_do_not_use_directly_use_DECLARE_int32_instead'
DECLARE_int32(verbose);
^~~~~~~~~~~~~~~~~~~~~~
../../third_party/tcmalloc/chromium/src/base/commandlineflags.h:82:3: note: expanded from macro 'DECLARE_int32'
  DECLARE_VARIABLE(int32, name)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../third_party/tcmalloc/chromium/src/base/commandlineflags.h:65:75: note: expanded from macro 'DECLARE_VARIABLE'
  using FLAG__namespace_do_not_use_directly_use_DECLARE_##type##_instead::FLAGS_##name
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
<scratch space>:15:1: note: expanded from here
FLAGS_verbose
^
In file included from ../../third_party/tcmalloc/chromium/src/base/spinlock.cc:39:
In file included from ../../third_party/tcmalloc/chromium/src/base/sysinfo.h:49:
../../third_party/tcmalloc/chromium/src/base/logging.h:257:55: error: use of undeclared identifier 'FLAGS_verbose'
inline void RAW_LOG(int lvl, const char* pat, ...)  { LOG_PRINTF(lvl, pat); }
                                                      ^
../../third_party/tcmalloc/chromium/src/base/logging.h:248:7: note: expanded from macro 'LOG_PRINTF'
  if (VLOG_IS_ON(severity)) {                   \
      ^
../../third_party/tcmalloc/chromium/src/base/logging.h:244:31: note: expanded from macro 'VLOG_IS_ON'
#define VLOG_IS_ON(severity) (FLAGS_verbose >= severity)
                              ^
../../third_party/tcmalloc/chromium/src/base/logging.h:258:55: error: use of undeclared identifier 'FLAGS_verbose'
inline void RAW_VLOG(int lvl, const char* pat, ...) { LOG_PRINTF(lvl, pat); }
                                                      ^
../../third_party/tcmalloc/chromium/src/base/logging.h:248:7: note: expanded from macro 'LOG_PRINTF'
  if (VLOG_IS_ON(severity)) {                   \
      ^
../../third_party/tcmalloc/chromium/src/base/logging.h:244:31: note: expanded from macro 'VLOG_IS_ON'
#define VLOG_IS_ON(severity) (FLAGS_verbose >= severity)
                              ^
../../third_party/tcmalloc/chromium/src/base/logging.h:259:55: error: use of undeclared identifier 'FLAGS_verbose'
inline void LOG(int lvl, const char* pat, ...)      { LOG_PRINTF(lvl, pat); }
                                                      ^
../../third_party/tcmalloc/chromium/src/base/logging.h:248:7: note: expanded from macro 'LOG_PRINTF'
  if (VLOG_IS_ON(severity)) {                   \
      ^
../../third_party/tcmalloc/chromium/src/base/logging.h:244:31: note: expanded from macro 'VLOG_IS_ON'
#define VLOG_IS_ON(severity) (FLAGS_verbose >= severity)
                              ^
../../third_party/tcmalloc/chromium/src/base/logging.h:260:55: error: use of undeclared identifier 'FLAGS_verbose'
inline void VLOG(int lvl, const char* pat, ...)     { LOG_PRINTF(lvl, pat); }
                                                      ^
../../third_party/tcmalloc/chromium/src/base/logging.h:248:7: note: expanded from macro 'LOG_PRINTF'
  if (VLOG_IS_ON(severity)) {                   \
      ^
../../third_party/tcmalloc/chromium/src/base/logging.h:244:31: note: expanded from macro 'VLOG_IS_ON'
#define VLOG_IS_ON(severity) (FLAGS_verbose >= severity)
                              ^
../../third_party/tcmalloc/chromium/src/base/logging.h:262:14: error: use of undeclared identifier 'FLAGS_verbose'
  if (cond)  LOG_PRINTF(lvl, pat);
             ^
../../third_party/tcmalloc/chromium/src/base/logging.h:248:7: note: expanded from macro 'LOG_PRINTF'
  if (VLOG_IS_ON(severity)) {                   \
      ^
../../third_party/tcmalloc/chromium/src/base/logging.h:244:31: note: expanded from macro 'VLOG_IS_ON'
#define VLOG_IS_ON(severity) (FLAGS_verbose >= severity)
                              ^
9 errors generated.
[4/7091] CXX obj/third_party/tcmalloc/chromium/src/base/allocator.low_level_alloc.o
FAILED: ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/third_party/tcmalloc/chromium/src/base/allocator.low_level_alloc.o.d -DANGLE_DX11 -DCHROMIUM_BUILD -DUSE_LIBJPEG_TURBO=1 -DENABLE_ONE_CLICK_SIGNIN -DENABLE_REMOTING=1 -DENABLE_WEBRTC=1 -DUSE_PROPRIETARY_CODECS -DENABLE_PEPPER_CDMS -DENABLE_CONFIGURATION_POLICY -DENABLE_INPUT_SPEECH -DENABLE_NOTIFICATIONS -DENABLE_HIDPI=1 -DENABLE_GPU=1 -DENABLE_EGLIMAGE=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_AUTOMATION=1 -DENABLE_GOOGLE_NOW=1 -DENABLE_LANGUAGE_DETECTION=1 -DENABLE_PRINTING=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_MANAGED_USERS=1 -DNO_HEAP_CHECK -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../../base/allocator -I../../third_party/tcmalloc/chromium/src/base -I../../third_party/tcmalloc/chromium/src -I../.. -isysroot /Applications/Xcode5-DP.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -O3 -gdwarf-2 -fvisibility=hidden -Wnewline-eof -mmacosx-version-min=10.6 -arch i386 -Wendif-labels -Wno-unused-parameter -Wno-missing-field-initializers -Wheader-hygiene -Wno-c++11-narrowing -Wno-reserved-user-defined-literal -Wno-char-subscripts -Wno-unused-function -Wno-covered-switch-default -Wstring-conversion -fno-rtti -fno-exceptions -fvisibility-inlines-hidden -fno-threadsafe-statics -Xclang -load -Xclang /Users/dobler/Documents/tools/node-webkit/src/tools/clang/scripts/../../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.dylib -Xclang -add-plugin -Xclang find-bad-constructs -fcolor-diagnostics -fno-strict-aliasing -std=gnu++11  -c ../../third_party/tcmalloc/chromium/src/base/low_level_alloc.cc -o obj/third_party/tcmalloc/chromium/src/base/allocator.low_level_alloc.o
In file included from ../../third_party/tcmalloc/chromium/src/base/low_level_alloc.cc:36:
In file included from ../../third_party/tcmalloc/chromium/src/base/low_level_alloc.h:41:
../../third_party/tcmalloc/chromium/src/base/basictypes.h:68:9: error: unknown type name 'uint8_t'
typedef uint8_t            uint8;
        ^
../../third_party/tcmalloc/chromium/src/base/basictypes.h:69:9: error: unknown type name 'uint16_t'
typedef uint16_t           uint16;
        ^
../../third_party/tcmalloc/chromium/src/base/basictypes.h:70:9: error: unknown type name 'uint32_t'
typedef uint32_t           uint32;
        ^
../../third_party/tcmalloc/chromium/src/base/basictypes.h:71:9: error: unknown type name 'uint64_t'
typedef uint64_t           uint64;
        ^
../../third_party/tcmalloc/chromium/src/base/basictypes.h:75:52: warning: shift count >= width of type [-Wshift-count-overflow]
const uint64 kuint64max = ( (((uint64) kuint32max) << 32) | kuint32max );
                                                   ^  ~~
In file included from ../../third_party/tcmalloc/chromium/src/base/low_level_alloc.cc:39:
../../third_party/tcmalloc/chromium/src/base/logging.h:80:1: error: unknown type name 'PERFTOOLS_DLL_DECL'
DECLARE_int32(verbose);
^
../../third_party/tcmalloc/chromium/src/base/commandlineflags.h:82:3: note: expanded from macro 'DECLARE_int32'
  DECLARE_VARIABLE(int32, name)
  ^
../../third_party/tcmalloc/chromium/src/base/commandlineflags.h:63:10: note: expanded from macro 'DECLARE_VARIABLE'
  extern PERFTOOLS_DLL_DECL type FLAGS_##name;                                \
         ^
In file included from ../../third_party/tcmalloc/chromium/src/base/low_level_alloc.cc:39:
../../third_party/tcmalloc/chromium/src/base/logging.h:80:1: error: expected ';' after top level declarator
../../third_party/tcmalloc/chromium/src/base/commandlineflags.h:82:3: note: expanded from macro 'DECLARE_int32'
  DECLARE_VARIABLE(int32, name)
  ^
../../third_party/tcmalloc/chromium/src/base/commandlineflags.h:63:34: note: expanded from macro 'DECLARE_VARIABLE'
  extern PERFTOOLS_DLL_DECL type FLAGS_##name;                                \
                                 ^
<scratch space>:15:1: note: expanded from here
FLAGS_verbose
^
In file included from ../../third_party/tcmalloc/chromium/src/base/low_level_alloc.cc:39:
../../third_party/tcmalloc/chromium/src/base/logging.h:80:1: error: no member named 'FLAGS_verbose' in namespace 'FLAG__namespace_do_not_use_directly_use_DECLARE_int32_instead'
DECLARE_int32(verbose);
^~~~~~~~~~~~~~~~~~~~~~
../../third_party/tcmalloc/chromium/src/base/commandlineflags.h:82:3: note: expanded from macro 'DECLARE_int32'
  DECLARE_VARIABLE(int32, name)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../third_party/tcmalloc/chromium/src/base/commandlineflags.h:65:75: note: expanded from macro 'DECLARE_VARIABLE'
  using FLAG__namespace_do_not_use_directly_use_DECLARE_##type##_instead::FLAGS_##name
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
<scratch space>:15:1: note: expanded from here
FLAGS_verbose
^
In file included from ../../third_party/tcmalloc/chromium/src/base/low_level_alloc.cc:39:
../../third_party/tcmalloc/chromium/src/base/logging.h:257:55: error: use of undeclared identifier 'FLAGS_verbose'
inline void RAW_LOG(int lvl, const char* pat, ...)  { LOG_PRINTF(lvl, pat); }
                                                      ^
../../third_party/tcmalloc/chromium/src/base/logging.h:248:7: note: expanded from macro 'LOG_PRINTF'
  if (VLOG_IS_ON(severity)) {                   \
      ^
../../third_party/tcmalloc/chromium/src/base/logging.h:244:31: note: expanded from macro 'VLOG_IS_ON'
#define VLOG_IS_ON(severity) (FLAGS_verbose >= severity)
                              ^
../../third_party/tcmalloc/chromium/src/base/logging.h:258:55: error: use of undeclared identifier 'FLAGS_verbose'
inline void RAW_VLOG(int lvl, const char* pat, ...) { LOG_PRINTF(lvl, pat); }
                                                      ^
../../third_party/tcmalloc/chromium/src/base/logging.h:248:7: note: expanded from macro 'LOG_PRINTF'
  if (VLOG_IS_ON(severity)) {                   \
      ^
../../third_party/tcmalloc/chromium/src/base/logging.h:244:31: note: expanded from macro 'VLOG_IS_ON'
#define VLOG_IS_ON(severity) (FLAGS_verbose >= severity)
                              ^
../../third_party/tcmalloc/chromium/src/base/logging.h:259:55: error: use of undeclared identifier 'FLAGS_verbose'
inline void LOG(int lvl, const char* pat, ...)      { LOG_PRINTF(lvl, pat); }
                                                      ^
../../third_party/tcmalloc/chromium/src/base/logging.h:248:7: note: expanded from macro 'LOG_PRINTF'
  if (VLOG_IS_ON(severity)) {                   \
      ^
../../third_party/tcmalloc/chromium/src/base/logging.h:244:31: note: expanded from macro 'VLOG_IS_ON'
#define VLOG_IS_ON(severity) (FLAGS_verbose >= severity)
                              ^
../../third_party/tcmalloc/chromium/src/base/logging.h:260:55: error: use of undeclared identifier 'FLAGS_verbose'
inline void VLOG(int lvl, const char* pat, ...)     { LOG_PRINTF(lvl, pat); }
                                                      ^
../../third_party/tcmalloc/chromium/src/base/logging.h:248:7: note: expanded from macro 'LOG_PRINTF'
  if (VLOG_IS_ON(severity)) {                   \
      ^
../../third_party/tcmalloc/chromium/src/base/logging.h:244:31: note: expanded from macro 'VLOG_IS_ON'
#define VLOG_IS_ON(severity) (FLAGS_verbose >= severity)
                              ^
../../third_party/tcmalloc/chromium/src/base/logging.h:262:14: error: use of undeclared identifier 'FLAGS_verbose'
  if (cond)  LOG_PRINTF(lvl, pat);
             ^
../../third_party/tcmalloc/chromium/src/base/logging.h:248:7: note: expanded from macro 'LOG_PRINTF'
  if (VLOG_IS_ON(severity)) {                   \
      ^
../../third_party/tcmalloc/chromium/src/base/logging.h:244:31: note: expanded from macro 'VLOG_IS_ON'
#define VLOG_IS_ON(severity) (FLAGS_verbose >= severity)
                              ^
../../third_party/tcmalloc/chromium/src/base/low_level_alloc.cc:336:25: error: use of undeclared identifier 'munmap'
        munmap_result = munmap(region, size);
                        ^
../../third_party/tcmalloc/chromium/src/base/low_level_alloc.cc:463:13: error: use of undeclared identifier 'PROT_WRITE'
            PROT_WRITE|PROT_READ, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0);
            ^
../../third_party/tcmalloc/chromium/src/base/low_level_alloc.cc:463:24: error: use of undeclared identifier 'PROT_READ'
            PROT_WRITE|PROT_READ, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0);
                       ^
../../third_party/tcmalloc/chromium/src/base/low_level_alloc.cc:466:13: error: use of undeclared identifier 'PROT_WRITE'
            PROT_WRITE|PROT_READ, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0);
            ^
../../third_party/tcmalloc/chromium/src/base/low_level_alloc.cc:466:24: error: use of undeclared identifier 'PROT_READ'
            PROT_WRITE|PROT_READ, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0);
                       ^
../../third_party/tcmalloc/chromium/src/base/low_level_alloc.cc:468:30: error: use of undeclared identifier 'MAP_FAILED'
      RAW_CHECK(new_pages != MAP_FAILED, "mmap error");
                             ^
../../third_party/tcmalloc/chromium/src/base/logging.h:100:11: note: expanded from macro 'RAW_CHECK'
    if (!(condition)) {                                                        \
          ^
1 warning and 18 errors generated.
ninja: build stopped: subcommand failed.
mb2:src dobler$ 

Kaiyang Lv

unread,
Aug 7, 2013, 8:51:34 PM8/7/13
to node-...@googlegroups.com
Hi, It's true here right now.

 If you just want to build right now. You can disable `tcmalloc` in `commom.gypi` (`linux_use_tcmalloc`) and then modify some headers etc.  You can check here(https://github.com/kingFighter/chromium/commit/1b0aa4c2f976427423f592d35db60b567e9f5b84)

Benjamin Dobler

unread,
Aug 8, 2013, 5:25:30 AM8/8/13
to node-...@googlegroups.com

Thank you so much! That did it!
Reply all
Reply to author
Forward
0 new messages