Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ndk-build 遇到error #4

Open
e-snail opened this issue Jul 10, 2016 · 0 comments
Open

ndk-build 遇到error #4

e-snail opened this issue Jul 10, 2016 · 0 comments

Comments

@e-snail
Copy link

e-snail commented Jul 10, 2016

In file included from <MY_PATH>/AllHookInOne/jni/JavaHook/ArtMethodHook.cpp:3:0:
<MY_PATH>/AllHookInOne/jni/JavaHook/art_object_4_4.h:221:70: error: expected ')' before '::' token
mirror::Object* GetThisObject() const SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
^
<MY_PATH>/AllHookInOne/jni/JavaHook/art_object_4_4.h:42:74: note: in definition of macro 'SHARED_LOCKS_REQUIRED'
#define SHARED_LOCKS_REQUIRED(...) attribute ((shared_locks_required(VA_ARGS)))
^
<MY_PATH>/AllHookInOne/jni/JavaHook/art_object_4_4.h:42:87: warning: 'shared_locks_required' attribute directive ignored [-Wattributes]
#define SHARED_LOCKS_REQUIRED(...) attribute ((shared_locks_required(VA_ARGS)))
^
<MY_PATH>/AllHookInOne/jni/JavaHook/art_object_4_4.h:221:43: note: in expansion of macro 'SHARED_LOCKS_REQUIRED'
mirror::Object* GetThisObject() const SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
^
<MY_PATH>/AllHookInOne/jni/JavaHook/art_object_4_4.h:223:86: error: expected ')' before '::' token
mirror::Object* GetThisObject(uint16_t num_ins) const SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
^
<MY_PATH>/AllHookInOne/jni/JavaHook/art_object_4_4.h:42:74: note: in definition of macro 'SHARED_LOCKS_REQUIRED'
#define SHARED_LOCKS_REQUIRED(...) attribute ((shared_locks_required(VA_ARGS)))
^
<MY_PATH>/AllHookInOne/jni/JavaHook/art_object_4_4.h:42:87: warning: 'shared_locks_required' attribute directive ignored [-Wattributes]
#define SHARED_LOCKS_REQUIRED(...) attribute ((shared_locks_required(VA_ARGS)))
^
<MY_PATH>/AllHookInOne/jni/JavaHook/art_object_4_4.h:223:59: note: in expansion of macro 'SHARED_LOCKS_REQUIRED'
mirror::Object* GetThisObject(uint16_t num_ins) const SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
^
<MY_PATH>/AllHookInOne/jni/JavaHook/art_object_4_4.h:379:68: error: expected ')' before '::' token
bool IsValidIndex(int32_t index) const SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
^
<MY_PATH>/AllHookInOne/jni/JavaHook/art_object_4_4.h:42:74: note: in definition of macro 'SHARED_LOCKS_REQUIRED'
#define SHARED_LOCKS_REQUIRED(...) attribute ((shared_locks_required(VA_ARGS)))
^
<MY_PATH>/AllHookInOne/jni/JavaHook/art_object_4_4.h:42:87: warning: 'shared_locks_required' attribute directive ignored [-Wattributes]
#define SHARED_LOCKS_REQUIRED(...) attribute ((shared_locks_required(VA_ARGS)))
^
<MY_PATH>/AllHookInOne/jni/JavaHook/art_object_4_4.h:379:41: note: in expansion of macro 'SHARED_LOCKS_REQUIRED'
bool IsValidIndex(int32_t index) const SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
^
<MY_PATH>/AllHookInOne/jni/JavaHook/art_object_4_4.h:395:53: error: expected ')' before '::' token
T Get(int32_t i) const SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
^
<MY_PATH>/AllHookInOne/jni/JavaHook/art_object_4_4.h:42:74: note: in definition of macro 'SHARED_LOCKS_REQUIRED'
#define SHARED_LOCKS_REQUIRED(...) attribute ((shared_locks_required(VA_ARGS)))
^
<MY_PATH>/AllHookInOne/jni/JavaHook/art_object_4_4.h:42:87: warning: 'shared_locks_required' attribute directive ignored [-Wattributes]
#define SHARED_LOCKS_REQUIRED(...) attribute ((shared_locks_required(VA_ARGS)))
^
<MY_PATH>/AllHookInOne/jni/JavaHook/art_object_4_4.h:395:26: note: in expansion of macro 'SHARED_LOCKS_REQUIRED'
T Get(int32_t i) const SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
^
<MY_PATH>/AllHookInOne/jni/JavaHook/art_object_4_4.h:616:59: error: expected ')' before '::' token
Class* GetSuperClass() const SHARED_LOCKS_REQUIRED (Locks::mutator_lock_){
^
<MY_PATH>/AllHookInOne/jni/JavaHook/art_object_4_4.h:42:74: note: in definition of macro 'SHARED_LOCKS_REQUIRED'
#define SHARED_LOCKS_REQUIRED(...) attribute ((shared_locks_required(VA_ARGS)))
^
<MY_PATH>/AllHookInOne/jni/JavaHook/art_object_4_4.h:42:87: warning: 'shared_locks_required' attribute directive ignored [-Wattributes]
#define SHARED_LOCKS_REQUIRED(...) attribute ((shared_locks_required(VA_ARGS)))
^
<MY_PATH>/AllHookInOne/jni/JavaHook/art_object_4_4.h:616:31: note: in expansion of macro 'SHARED_LOCKS_REQUIRED'
Class* GetSuperClass() const SHARED_LOCKS_REQUIRED (Locks::mutator_lock_){
^
<MY_PATH>/AllHookInOne/jni/JavaHook/art_object_4_4.h:624:60: error: expected ')' before '::' token
DexCache* GetDexCache() const SHARED_LOCKS_REQUIRED (Locks::mutator_lock_){
^
<MY_PATH>/AllHookInOne/jni/JavaHook/art_object_4_4.h:42:74: note: in definition of macro 'SHARED_LOCKS_REQUIRED'
#define SHARED_LOCKS_REQUIRED(...) attribute ((shared_locks_required(VA_ARGS)))
^
<MY_PATH>/AllHookInOne/jni/JavaHook/art_object_4_4.h:42:87: warning: 'shared_locks_required' attribute directive ignored [-Wattributes]
#define SHARED_LOCKS_REQUIRED(...) attribute ((shared_locks_required(VA_ARGS)))
^
<MY_PATH>/AllHookInOne/jni/JavaHook/art_object_4_4.h:624:32: note: in expansion of macro 'SHARED_LOCKS_REQUIRED'
DexCache* GetDexCache() const SHARED_LOCKS_REQUIRED (Locks::mutator_lock_){
^
<NDK_PATH>/android-ndk-r11c/build/core/build-binary.mk:462: recipe for target '<MY_PATH>/AllHookInOne/obj/local/armeabi/objs/onehook/JavaHook/ArtMethodHook.o' failed
make: *** [<MY_PATH>/AllHookInOne/obj/local/armeabi/objs/onehook/JavaHook/ArtMethodHook.o] Error 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant