Status: New
Owner: ----
New issue 773 by yingted: Cannot build d8 on linux by default
http://code.google.com/p/v8/issues/detail?id=773
Building d8 gives an error:
~ $ svn checkout http://v8.googlecode.com/svn/trunk/ v8
[...]
Checked out revision 5040.
~ $ cd v8
v8 $ scons
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_VMSTATE_TRACKING
-DENABLE_LOGGING_AND_PROFILING -DENABLE_DEBUGGER_SUPPORT -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_VMSTATE_TRACKING
-DENABLE_LOGGING_AND_PROFILING -DENABLE_DEBUGGER_SUPPORT -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_VMSTATE_TRACKING
-DENABLE_LOGGING_AND_PROFILING -DENABLE_DEBUGGER_SUPPORT -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_VMSTATE_TRACKING
-DENABLE_LOGGING_AND_PROFILING -DENABLE_DEBUGGER_SUPPORT -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.2913' does break
strict-aliasing rules
src/api.h:58: note: initialized from here
src/handles-inl.h:50: error: dereferencing pointer 'SR.2913' does break
strict-aliasing rules
src/api.h:58: note: initialized from here
src/handles-inl.h:50: error: dereferencing pointer 'SR.2913' 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.2913' 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
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.
v8 $ patch SConstruct
< 'WARNINGFLAGS': ['-Wall', '-Wno-unused', '-Werror=return-type',
< '-Wstrict-aliasing=2'],
---
'WARNINGFLAGS': [],
302,306c301
< 'WARNINGFLAGS': ['-Wall',
< '-Werror',
< '-W',
< '-Wno-unused-parameter',
< '-Wnon-virtual-dtor']
---
'WARNINGFLAGS': []
(^D^D)
patching file SConstruct
v8 $ scons
[...]
scons: done building targets.
v8 $ scons d8
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o obj/release/d8-debug.o -c -m32 -O3 -fomit-frame-pointer
-fdata-sections -ffunction-sections -ansi -fno-rtti -fno-exceptions
-fvisibility=hidden -m32 -O3 -fomit-frame-pointer -fdata-sections
-ffunction-sections -ansi -DV8_TARGET_ARCH_IA32 -DENABLE_VMSTATE_TRACKING
-DENABLE_LOGGING_AND_PROFILING -DENABLE_DEBUGGER_SUPPORT -Isrc
src/d8-debug.cc
g++ -o obj/release/d8-posix.o -c -m32 -O3 -fomit-frame-pointer
-fdata-sections -ffunction-sections -ansi -fno-rtti -fno-exceptions
-fvisibility=hidden -m32 -O3 -fomit-frame-pointer -fdata-sections
-ffunction-sections -ansi -DV8_TARGET_ARCH_IA32 -DENABLE_VMSTATE_TRACKING
-DENABLE_LOGGING_AND_PROFILING -DENABLE_DEBUGGER_SUPPORT -Isrc
src/d8-posix.cc
g++ -o obj/release/d8.o -c -m32 -O3 -fomit-frame-pointer -fdata-sections
-ffunction-sections -ansi -fno-rtti -fno-exceptions -fvisibility=hidden
-m32 -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -ansi
-DV8_TARGET_ARCH_IA32 -DENABLE_VMSTATE_TRACKING
-DENABLE_LOGGING_AND_PROFILING -DENABLE_DEBUGGER_SUPPORT -Isrc src/d8.cc
JS2C(["obj/release/d8-js.cc"], ["src/d8.js"])
scons: *** [obj/release/d8-js.cc] TypeError : argument to reversed() must
be a sequence
Traceback (most recent call last):
File "/usr/lib/scons/SCons/Action.py", line 961, in execute
result = self.execfunction(target=target, source=rsources, env=env)
File "/home/ted/v8/tools/js2c.py", line 297, in JS2C
lines = ExpandMacros(lines, macros)
File "/home/ted/v8/tools/js2c.py", line 115, in ExpandMacros
for name_pattern, macro in reversed(macros):
TypeError: argument to reversed() must be a sequence
scons: building terminated because of errors.
v8 $ patch tools/js2c.py
279c279
< macros = {}
---
macros = []
(^D^D)patching file tools/js2c.py
v8 $ scons d8
[...]
(works)
Also:
~ $ python -V
Python 2.6.4
~ $ python -c 'reversed({})'
Traceback (most recent call last):
File "<string>", line 1, in <module>
TypeError: argument to reversed() must be a sequence
~ $ gcc --version
gcc (GCC) 4.4.4 20100630 (Red Hat 4.4.4-10)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
~ $ uname -r
2.6.33.5-124.fc13.i686.PAE
Sorry, but I won't be able to reply for a while, since I'm going away
tomorrow morning. I wanted to build working jaegermonkey and v8 shells
before I left.
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev