build v8 on ubuntu

编译遇到报错

cc1plus: warnings being treated as errors
src/handles-inl.h: In static member function 'static void
v8::V8::RemoveMessageListeners(void (*)(v8::Handle<v8::Message>,
v8::Handle<v8::Value>))':
src/handles-inl.h:50: error: dereferencing pointer '<anonymous>' does break
strict-aliasing rules
 
 
解决办法:
export GCC_VERSION=44
其实就是骗scons说我用的是gcc4.4不是4.3,scons就告诉gcc(通过-W参数)不要把warning当error了。这么设置之后,用到的编译器实际没有改,还是4.3,
只是改了-W参数。
 
 
 
 

你可能感兴趣的:(build v8 on ubuntu)