ClosestStorm / v8cgi

Automatically exported from code.google.com/p/v8cgi
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Compilation Issue with gcc 4.4.3 #57

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download and build 'v8'

----------------- gcc ----------------
bash$ gcc -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla
--enable-bootstrap --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-gnu-unique-object
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada
--enable-java-awt=gtk --disable-dssi --enable-plugin
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
--enable-libgcj-multifile --enable-java-maintainer-mode
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib
--with-ppl --with-cloog --with-tune=generic --with-arch_32=i686
--build=x86_64-redhat-linux
Thread model: posix
gcc version 4.4.3 20100127 (Red Hat 4.4.3-4) (GCC) 

----------------- latest code ----------------

bash$ pwd
/tmp/v8cgi-0.8.0-src/v8

----------------- build output ----------------

bash$ scons arch=x64 library=shared
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
gcc -o obj/release/dtoa-config.os -c -Werror -Wno-uninitialized -m64 -O3
-fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -fPIC
-DV8_TARGET_ARCH_X64 -DV8_SHARED -DENABLE_DEBUGGER_SUPPORT
-DV8_NATIVE_REGEXP -DENABLE_LOGGING_AND_PROFILING -Isrc src/dtoa-config.c
g++ -o obj/release/accessors.os -c -Wall -Werror -W -Wno-unused-parameter
-Wnon-virtual-dtor -pedantic -m64 -O3 -fomit-frame-pointer -fdata-sections
-ffunction-sections -ansi -fno-rtti -fno-exceptions -fvisibility=hidden
-Wall -Werror -W -Wno-unused-parameter -Wnon-virtual-dtor -pedantic -m64
-O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -fPIC
-DV8_TARGET_ARCH_X64 -DV8_SHARED -DENABLE_DEBUGGER_SUPPORT
-DV8_NATIVE_REGEXP -DENABLE_LOGGING_AND_PROFILING -Isrc src/accessors.cc
g++ -o obj/release/allocation.os -c -Wall -Werror -W -Wno-unused-parameter
-Wnon-virtual-dtor -pedantic -m64 -O3 -fomit-frame-pointer -fdata-sections
-ffunction-sections -ansi -fno-rtti -fno-exceptions -fvisibility=hidden
-Wall -Werror -W -Wno-unused-parameter -Wnon-virtual-dtor -pedantic -m64
-O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -fPIC
-DV8_TARGET_ARCH_X64 -DV8_SHARED -DENABLE_DEBUGGER_SUPPORT
-DV8_NATIVE_REGEXP -DENABLE_LOGGING_AND_PROFILING -Isrc src/allocation.cc
g++ -o obj/release/api.os -c -Wall -Werror -W -Wno-unused-parameter
-Wnon-virtual-dtor -pedantic -m64 -O3 -fomit-frame-pointer -fdata-sections
-ffunction-sections -ansi -fno-rtti -fno-exceptions -fvisibility=hidden
-Wall -Werror -W -Wno-unused-parameter -Wnon-virtual-dtor -pedantic -m64
-O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -fPIC
-DV8_TARGET_ARCH_X64 -DV8_SHARED -DENABLE_DEBUGGER_SUPPORT
-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.2422' does break
strict-aliasing rules
src/api.h:58: note: initialized from here
src/handles-inl.h:50: error: dereferencing pointer 'SR.2422' does break
strict-aliasing rules
src/api.h:58: note: initialized from here
src/handles-inl.h:50: error: dereferencing pointer 'SR.2422' 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.2422' 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.os] Error 1
scons: building terminated because of errors.

Original issue reported on code.google.com by VNareshK...@gmail.com on 13 Feb 2010 at 12:29

GoogleCodeExporter commented 9 years ago
Do you encounter the same with latest v8 from v8's trunk?

Original comment by ondrej.zara on 13 Feb 2010 at 3:35

GoogleCodeExporter commented 9 years ago
Checked out revision 3852 and build it. Seems same error.

I found similar issue. But the workarounds in this ticket are not helpful

http://code.google.com/p/v8/issues/detail?id=463&colspec=ID%20Type%20Status%20Pr
iority%20Owner%20Summary%20HW%20OS%20Area%20Stars

Original comment by VNareshK...@gmail.com on 14 Feb 2010 at 3:21

GoogleCodeExporter commented 9 years ago
This seems to be fixed with recent revisions of V8.

Original comment by ondrej.zara on 9 Dec 2010 at 8:04