Hi,
I’ve been trying to build V8 for android following the wiki entries here https://code.google.com/p/v8/wiki/BuildingWithGYP and here https://code.google.com/p/v8/wiki/D8OnAndroid.
After cloning v8 from the github repo and doing
make builders
make arm.release
I’m able to compile . However, after cloning a new repository and doing:
make dependencies
make android_arm.release
I’m getting this error:
CXX(host) /Users/jpdery/Downloads/v8/out/android_arm.release/obj.host/icui18n/third_party/icu/source/i18n/anytrans.o
../src/base/platform/platform-posix.cc:325:35: error: use of undeclared identifier '__NR_gettid'
return static_cast<int>(syscall(__NR_gettid));
I’ve not been able to find help online. Does anyone knows why I’m getting this error ?
I’ve install the SKD and NDK and set $ANDROID_NDK_ROOT property as well as adding the repo_tools to my path.
Any ideas ?
Thank you!
./src/base/platform/platform-posix.cc: In static member function 'static int v8::base::OS::GetCurrentThreadId()':
../src/base/platform/platform-posix.cc:325:35: error: 'SYS_gettid' was not declared in this scope
../src/base/platform/platform-posix.cc: In constructor 'v8::base::Thread::Thread(const v8::base::Thread::Options&)':
../src/base/platform/platform-posix.cc:518:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
../src/base/platform/platform-posix.cc:325:27: error: use of undeclared identifier 'gettid'
return static_cast<int>(gettid());