Hi, I'm having a problem building V8 64bit on OSX 10.5
I build it using this command
dyamins$ scons arch=x64
The build seems to finish without throwing an error. But when I try
the "getting started" example, I see:
dyamins$ g++ -Iinclude hello_world.cpp -o hello_world libv8.a -
lpthread
ld warning: in libv8.a, file is not of required architecture
Undefined symbols:
"v8::Context::Enter()", referenced from:
v8::Context::Scope::Scope(v8::Handle<v8::Context>)in cclevgha.o
"v8::Script::Compile(v8::Handle<v8::String>, v8::ScriptOrigin*,
v8::ScriptData*, v8::Handle<v8::String>)", referenced from:
_main in cclevgha.o
"v8::String::AsciiValue::AsciiValue(v8::Handle<v8::Value>)",
referenced from:
_main in cclevgha.o
"v8::String::AsciiValue::~AsciiValue()", referenced from:
_main in cclevgha.o
"v8::Script::Run()", referenced from:
_main in cclevgha.o
"v8::Context::Exit()", referenced from:
v8::Context::Scope::~Scope()in cclevgha.o
"v8::HandleScope::~HandleScope()", referenced from:
_main in cclevgha.o
_main in cclevgha.o
"v8::String::New(char const*, int)", referenced from:
_main in cclevgha.o
"v8::V8::DisposeGlobal(v8::internal::Object**)", referenced from:
v8::Persistent<v8::Context>::Dispose() in cclevgha.o
"v8::HandleScope::HandleScope()", referenced from:
_main in cclevgha.o
"v8::Context::New(v8::ExtensionConfiguration*,
v8::Handle<v8::ObjectTemplate>, v8::Handle<v8::Value>)", referenced
from:
_main in cclevgha.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
I have no problems when building it 32 bit, then the example works
fine. Perhaps a library is not being linked properly?
One further piece of evidence is: the following stuff is printed at
the end of the scons installation:
[snip]
ranlib: file: libv8.a(property.o) has no symbols
ranlib: file: libv8.a(regexp-macro-assembler-irregexp.o) has no
symbols
ranlib libv8.a
ranlib: file: libv8.a(property.o) has no symbols
ranlib: file: libv8.a(regexp-macro-assembler-irregexp.o) has no
symbols
scons: done building targets.
Perhaps these are signs of something not building properly during the
install? (however, they same stuff prints in the 32-bit install as
well as the 64bit, so it's nclear what this means).
Anyway, help would be much appreciated.
Thanks!
Dan
--
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users