Hi,

I also got this error because of gcc 4.4. If this is your case, try to edit
your SConstruct file, and change

  48 if os.environ.get('GCC_VERSION') == '44':
  49     GCC_EXTRA_CCFLAGS = ['-fno-tree-vrp']
  50     GCC_DTOA_EXTRA_CCFLAGS = ['-fno-strict-aliasing']
  51 else:

to

  48 if os.environ.get('GCC_VERSION') == '44':
  49     GCC_EXTRA_CCFLAGS = ['-fno-tree-vrp', '-fno-strict-aliasing']
  50     GCC_DTOA_EXTRA_CCFLAGS = ['-fno-strict-aliasing']
  51 else:

Also check your environment variable GCC_VERSION. export GCC_VERSION=44 if
does not exist or is wrong.

I hope this works for you! :)

Alexandre


On Tue, Mar 9, 2010 at 1:25 PM, Kiswono Prayogo <[email protected]> wrote:

> i'm ok with both ubuntu 32-bit and 64-bit..
>
> On Tue, Mar 9, 2010 at 6:37 PM, Bryan White <[email protected]> wrote:
> > I have built it before.  This morning I was updating to the current
> > version of v8 and got errors (see below).
> >
> > It failed on Ubuntu 9.10 (32 bit)
> > It compiles on CentOS5. (64 bit)
> >
> > svn checkout http://v8.googlecode.com/svn/trunk/ v8
> > cd v8
> > scons mode=release library=static snapshot=on
> > scons: Reading SConscript files ...
> > scons: done reading SConscript files.
> > scons: Building targets ...
> > gcc -o obj/release/dtoa-config.o -c -Werror -Wno-uninitialized -m32
> > -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -ansi
> > -DV8_TARGET_ARCH_IA32 -DENABLE_DEBUGGER_SUPPORT -DV8_NATIVE_REGEXP
> > -DENABLE_LOGGING_AND_PROFILING -Isrc src/dtoa-config.c
> > g++ -o obj/release/accessors.o -c -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 -DENABLE_DEBUGGER_SUPPORT -DV8_NATIVE_REGEXP
> > -DENABLE_LOGGING_AND_PROFILING -Isrc src/accessors.cc
> > g++ -o obj/release/allocation.o -c -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 -DENABLE_DEBUGGER_SUPPORT -DV8_NATIVE_REGEXP
> > -DENABLE_LOGGING_AND_PROFILING -Isrc src/allocation.cc
> > g++ -o obj/release/api.o -c -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
> > -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 '<anonymous>' does
> > break strict-aliasing rules
> > src/handles-inl.h:50: error: dereferencing pointer '<anonymous>' does
> > break strict-aliasing rules
> > src/globals.h:602: 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:3397: note: initialized from here
> > scons: *** [obj/release/api.o] Error 1
> > scons: building terminated because of errors.
> >
> >
> > --
> > Bryan White
> >
> > --
> > v8-users mailing list
> > [email protected]
> > http://groups.google.com/group/v8-users
>
>
>
> --
> Regards,
> Kiswono P
> GB
>
> --
> v8-users mailing list
> [email protected]
> http://groups.google.com/group/v8-users
>

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to