The gettid syscall is only used for experimental support of the Linux perf tool, so as a quick workaround it should be fine to replace syscall(__NR_gettid) with 0.
Out of curiosity, could you try to replace __NR_gettid with SYS_gettid? You could also try to replace syscall(__NR_gettid) with gettid(). We previously had trouble compiling SYS_gettid with Android, but __NR_gettid has been working fine with the Linux version of Android NDK/SDK. It looks like the root problem is that we are compiling the host version with the ANDROID macro defined - I will have a look whether we can fix this in the build. On Monday, July 28, 2014 1:54:16 AM UTC+2, Jean-Philippe Déry wrote: > > 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! > -- -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
