Hi,
after successfully cross-compiling v8 for raspberry I am getting a linker error on both ubuntu16.04 and and CentOS 7.2.
I am getting this:
CXX(host) /data/build/v8/out/android_arm.release/obj.host/mksnapshot/src/snapshot/mksnapshot.o
LINK(host) /data/build/v8/out/android_arm.release/mksnapshot
/data/build/v8/out/android_arm.release/obj.host/src/libv8_libplatform.a(/data/build/v8/out/android_arm.release/obj.host/v8_libplatform/src/libplatform/default-platform.o):../src/libplatform/default-platform.cc:function v8::platform::CreateDefaultPlatform(int): error: undefined reference to 'v8::base::SysInfo::NumberOfProcessors()'
/data/build/v8/out/android_arm.release/obj.host/src/libv8_libplatform.a(/data/build/v8/out/android_arm.release/obj.host/v8_libplatform/src/libplatform/default-platform.o):../src/libplatform/default-platform.cc:function v8::platform::DefaultPlatform::SetThreadPoolSize(int): error: undefined reference to 'v8::base::SysInfo::NumberOfProcessors()'
I have checked /v8/out/android_arm.release/obj.host/v8_libbase/src/base/sys-info.o and NumberOfProcessors function is there.
I have extracted sys-info.o from libv8_libbase.a and made sure NumberOfProcessors is referenced there, but the linker get undefined reference.
Since the snapshot is not important to me, I have tried to link with libv8_base.a libv8_libbase.a libv8_libplatform libv8_libsampler.a and libv8_nosnapshot.a (instead of external snapshot) but i get the same undefined referenced symbol.
any ideas ?
help please ^^
thanks.
- i