Error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information

When I try to generate bindings from tojs/genbindings.sh I get this error. What could be the issue? Any ideas on how to fix this?

   7. severity = Error,
    location = SourceLocation file '/Users/shuja/Sites/Eureekah/cocos2d-x/tools/tojs/../..//extensions/CocoStudio/Armature/utils/../../Json/rapidjson/rapidjson.h', line 242, column 3,
    details = "cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information"
   8. severity = Error,
    location = SourceLocation file '/Users/shuja/Sites/Eureekah/cocos2d-x/tools/tojs/../..//extensions/CocoStudio/Armature/utils/../../Json/rapidjson/rapidjson.h', line 263, column 5,
    details = "cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information"

What’s the version of cocos2d-x you’re using?
Please use android-ndk-r8b.

I checked out the master branch. I was using android-ndk-r8d, then changed to android-ndk-r8b
I tried with both clang+llvm-3.1-x86_64-apple-darwin11 and clang+llvm-3.3-x86_64-apple-darwin11

When I tried this by checking out v2.2.1 it works.