Status: New
Owner: ----
New issue 744 by peter.kalvin: FreeBSD 8.0 Compile Failed with GCC 4.2.1
http://code.google.com/p/v8/issues/detail?id=744
Hi guy, I was just trying to compile V8 under FreeBSD 8.0, but it fail.
Here is how i done it:
[...@old ~/project/v8-trunk]$ gcc -v
Using built-in specs.
Target: amd64-undermydesk-freebsd
Configured with: FreeBSD/amd64 system compiler
Thread model: posix
gcc version 4.2.1 20070719 [FreeBSD]
[...@old ~/project]$ svn checkout http://v8.googlecode.com/svn/trunk
v8-trunk
Checked out revision 4901.
[...@old ~/project]$ cd v8-trunk/
[...@old ~/project/v8-trunk]$ 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
-I/usr/local/include -Isrc src/dtoa-config.c
g++ -o obj/release/accessors.o -c -Wall -Werror -W -Wno-unused-parameter
-Wnon-virtual-dtor -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 -m32 -O3
-fomit-frame-pointer -fdata-sections -ffunction-sections -ansi
-DV8_TARGET_ARCH_IA32 -DENABLE_VMSTATE_TRACKING
-DENABLE_LOGGING_AND_PROFILING -DENABLE_DEBUGGER_SUPPORT
-I/usr/local/include -Isrc src/accessors.cc
In file included from src/v8.h:55,
from src/accessors.cc:28:
src/../include/v8.h:469: error: 'operator new' takes type 'size_t'
('unsigned int') as first parameter
cc1plus: warnings being treated as errors
In file included from src/v8.h:56,
from src/accessors.cc:28:
src/globals.h:267: warning: left shift count >= width of type
In file included from src/v8.h:57,
from src/accessors.cc:28:
src/checks.h: In function 'void CheckEqualsHelper(const char*, int, const
char*, int64_t, const char*, int64_t)':
src/checks.h:98: warning: right shift count >= width of type
src/checks.h:100: warning: right shift count >= width of type
In file included from src/v8.h:58,
from src/accessors.cc:28:
src/allocation.h: At global scope:
src/allocation.h:70: error: 'operator new' takes type 'size_t' ('unsigned
int') as first parameter
In file included from src/list-inl.h:31,
from src/spaces.h:31,
from src/v8.h:64,
from src/accessors.cc:28:
src/list.h:62: error: 'operator new' takes type 'size_t' ('unsigned int')
as first parameter
In file included from src/splay-tree-inl.h:31,
from src/heap.h:33,
from src/v8.h:65,
from src/accessors.cc:28:
src/splay-tree.h:62: error: 'operator new' takes type 'size_t' ('unsigned
int') as first parameter
src/splay-tree.h:113: error: 'operator new' takes type 'size_t' ('unsigned
int') as first parameter
In file included from src/handles-inl.h:33,
from src/v8.h:71,
from src/accessors.cc:28:
src/handles.h:147: error: 'operator new' takes type 'size_t' ('unsigned
int') as first parameter
In file included from src/variables.h:31,
from src/scopeinfo.h:31,
from src/accessors.cc:33:
src/zone.h:121: error: 'operator new' takes type 'size_t' ('unsigned int')
as first parameter
src/splay-tree-inl.h: In member function 'bool
v8::internal::SplayTree<Config, Allocator>::Move(const typename
Config::Key&, const typename Config::Key&) [with Config =
v8::internal::CodeMap::CodeTreeConfig, Allocator =
v8::internal::FreeStoreAllocationPolicy]':
src/profile-generator-inl.h:92: instantiated from here
src/splay-tree-inl.h:186: error: no suitable 'operator delete'
for 'v8::internal::SplayTree<v8::internal::CodeMap::CodeTreeConfig,
v8::internal::FreeStoreAllocationPolicy>::Node'
src/splay-tree-inl.h: In member function 'bool
v8::internal::SplayTree<Config, Allocator>::Remove(const typename
Config::Key&) [with Config = v8::internal::CodeMap::CodeTreeConfig,
Allocator = v8::internal::FreeStoreAllocationPolicy]':
src/profile-generator-inl.h:96: instantiated from here
src/splay-tree-inl.h:201: error: no suitable 'operator delete'
for 'v8::internal::SplayTree<v8::internal::CodeMap::CodeTreeConfig,
v8::internal::FreeStoreAllocationPolicy>::Node'
src/splay-tree.h: In member function 'void v8::internal::SplayTree<Config,
Allocator>::NodeDeleter::Call(v8::internal::SplayTree<Config,
Allocator>::Node*) [with Config = v8::internal::CodeMap::CodeTreeConfig,
Allocator = v8::internal::FreeStoreAllocationPolicy]':
src/splay-tree-inl.h:303: instantiated from 'void
v8::internal::SplayTree<Config, Allocator>::ForEachNode(Callback*) [with
Callback = v8::internal::SplayTree<v8::internal::CodeMap::CodeTreeConfig,
v8::internal::FreeStoreAllocationPolicy>::NodeDeleter, Config =
v8::internal::CodeMap::CodeTreeConfig, Allocator =
v8::internal::FreeStoreAllocationPolicy]'
src/splay-tree-inl.h:40: instantiated
from 'v8::internal::SplayTree<Config, Allocator>::~SplayTree() [with Config
= v8::internal::CodeMap::CodeTreeConfig, Allocator =
v8::internal::FreeStoreAllocationPolicy]'
src/profile-generator.h:233: instantiated from here
src/splay-tree.h:185: error: no suitable 'operator delete'
for 'v8::internal::SplayTree<v8::internal::CodeMap::CodeTreeConfig,
v8::internal::FreeStoreAllocationPolicy>::Node'
scons: *** [obj/release/accessors.o] Error 1
scons: building terminated because of errors.
[...@old ~/project/v8-trunk]$
Any idea whats happening? Thank you!
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev