Status: New Owner: ---- New issue 413 by looptooner: GCC 4.4 fails to compile current version, over strict aliasing http://code.google.com/p/v8/issues/detail?id=413
I just downloaded the current trunk (r2592), and tried scons, resulting in a warning about strict aliasing that prevents compiling api.cc, as follows. Forcing -fno-strict-aliasing fixes the compile failure, though presumably not the right way. g++ -o obj/release/api.o -c -Wall -Werror -W -Wno-unused-parameter -pedantic -m32 -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -fno-rtti -fno-exceptions -Wall -Werror -W -Wno-unused-parameter -pedantic -m32 -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -DV8_TARGET_ARCH_IA32 -DV8_NATIVE_REGEXP -DENABLE_LOGGING_AND_PROFILING -Isrc src/api.cc 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 'SR.2225' does break strict-aliasing rules src/api.h:58: note: initialized from here src/handles-inl.h:50: error: dereferencing pointer 'SR.2225' does break strict-aliasing rules src/api.h:58: note: initialized from here src/handles-inl.h:50: error: dereferencing pointer 'SR.2225' does break strict-aliasing rules src/api.h:58: note: initialized from here src/handles-inl.h:50: error: dereferencing pointer '<anonymous>' does break strict-aliasing rules src/handles-inl.h:50: note: initialized from here src/handles-inl.h:50: error: dereferencing pointer 'SR.2225' does break strict-aliasing rules src/api.h:58: note: initialized from here cc1plus: error: dereferencing pointer '<anonymous>' does break strict-aliasing rules cc1plus: error: dereferencing pointer '<anonymous>' does break strict-aliasing rules cc1plus: error: dereferencing pointer '<anonymous>' does break strict-aliasing rules src/handles.h:81: note: initialized from here scons: *** [obj/release/api.o] Error 1 scons: building terminated because of errors. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
