Compiling V8 on Snow Leopard betas appears to be broken. It's using
gcc 4.2.1.

Anyone else able to compile it?

Here are the errors:

scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o obj/release/api.o -c -Wall -Werror -W -Wno-unused-parameter -
pedantic -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -
ansi -mmacosx-version-min=10.4 -fno-rtti -fno-exceptions -Wall -Werror
-W -Wno-unused-parameter -pedantic -O3 -fomit-frame-pointer -fdata-
sections -ffunction-sections -ansi -mmacosx-version-min=10.4 -
DV8_TARGET_ARCH_IA32 -DV8_NATIVE_REGEXP -DENABLE_LOGGING_AND_PROFILING
-Isrc src/api.cc
In file included from src/macro-assembler.h:33,
                 from src/ast.h:36,
                 from src/codegen.h:31,
                 from src/register-allocator-inl.h:31,
                 from src/frame-element.h:31,
                 from src/compiler.h:31,
                 from src/api.cc:32:
src/ia32/assembler-ia32.h: In static member function 'static
v8::internal::Operand v8::internal::Operand::StaticVariable(const
v8::internal::ExternalReference&)':
src/ia32/assembler-ia32.h:260: error: cast from 'v8::internal::byte*'
to 'int32_t' loses precision
src/ia32/assembler-ia32.h: In static member function 'static
v8::internal::Operand v8::internal::Operand::StaticArray
(v8::internal::Register, v8::internal::ScaleFactor, const
v8::internal::ExternalReference&)':
src/ia32/assembler-ia32.h:267: error: cast from 'v8::internal::byte*'
to 'int32_t' loses precision
In file included from src/macro-assembler.h:34,
                 from src/ast.h:36,
                 from src/codegen.h:31,
                 from src/register-allocator-inl.h:31,
                 from src/frame-element.h:31,
                 from src/compiler.h:31,
                 from src/api.cc:32:
src/ia32/assembler-ia32-inl.h: In constructor
'v8::internal::Immediate::Immediate(const
v8::internal::ExternalReference&)':
src/ia32/assembler-ia32-inl.h:152: error: cast from
'v8::internal::byte*' to 'int32_t' loses precision
src/ia32/assembler-ia32-inl.h: In constructor
'v8::internal::Immediate::Immediate(const char*)':
src/ia32/assembler-ia32-inl.h:157: error: cast from 'const char*' to
'int32_t' loses precision
src/ia32/assembler-ia32-inl.h: In constructor
'v8::internal::Immediate::Immediate(v8::internal::Label*)':
src/ia32/assembler-ia32-inl.h:163: error: cast from
'v8::internal::Label*' to 'int32_t' loses precision
scons: *** [obj/release/api.o] Error 1
scons: building terminated because of errors.
--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to