venkat6 / o3d

Automatically exported from code.google.com/p/o3d
0 stars 0 forks source link

dereferencing pointer #116

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. ./scons MODE=opt-linux

What is the expected output? What do you see instead?

...
g++ -o obj/release/allocation.o -c -fvisibility=hidden -Wall -Werror -W
-Wno-unused-parameter -Wnon-virtual-dtor -pedantic -m32 -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 -m32 -O3 -fomit-frame-pointer -fdata-sections
-ffunction-sections -ansi -DV8_TARGET_ARCH_IA32 -DV8_NATIVE_REGEXP
-DENABLE_LOGGING_AND_PROFILING -Isrc src/allocation.cc                
g++ -o obj/release/api.o -c -fvisibility=hidden -Wall -Werror -W
-Wno-unused-parameter -Wnon-virtual-dtor -pedantic -m32 -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 -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 '<anonymous>' does break
strict-aliasing rules                                                     

src/handles-inl.h:50: error: dereferencing pointer '<anonymous>' does break
strict-aliasing rules                                                     

src/globals.h:564: note: initialized from here                            

cc1plus: error: dereferencing pointer 'dest' does break strict-aliasing
rules     
cc1plus: error: dereferencing pointer 'dest' does break strict-aliasing
rules     
cc1plus: error: dereferencing pointer 'dest' does break strict-aliasing
rules     
src/api.cc:3144: note: initialized from here                              

scons: *** [obj/release/api.o] Error 1                                    

scons: building terminated because of errors.                             

scons: *** [third_party/v8/obj/release/mksnapshot] Error 2                

scons: building terminated because of errors.

What version of the product are you using? On what operating system?
O3D rev. 2624
Gentoo Linux
gcc (Gentoo 4.4.1 p1.0) 4.4.1

What hardware are you using:  graphics card type?  motherboard type?

Please provide any additional information below.

o3d/third_party/v8/SConstruct:108
add -fno-struct-aliasing resolved the problem

tomek@localhost ~/o3d/o3d/third_party/v8 $ svn diff
Index: SConstruct
===================================================================
--- SConstruct  (revision 2624)
+++ SConstruct  (working copy)
@@ -105,7 +105,7 @@
   'gcc': {
     'all': {
       'CCFLAGS':      ['$DIALECTFLAGS', '$WARNINGFLAGS'],
-      'CXXFLAGS':     ['$CCFLAGS', '-fno-rtti', '-fno-exceptions'],
+      'CXXFLAGS':     ['$CCFLAGS', '-fno-rtti', '-fno-exceptions',
'-fno-strict-aliasing'],
     },
     'mode:debug': {
       'CCFLAGS':      ['-g', '-O0'],

Original issue reported on code.google.com by flinki.g...@gmail.com on 15 Aug 2009 at 10:55

GoogleCodeExporter commented 8 years ago

Original comment by vange...@google.com on 16 Sep 2009 at 5:29

GoogleCodeExporter commented 8 years ago
Issue 106 has been merged into this issue.

Original comment by vange...@google.com on 16 Sep 2009 at 5:37

GoogleCodeExporter commented 8 years ago
i had the same issue >_<

Original comment by chosenpe...@gmail.com on 16 Nov 2009 at 10:09