hi, I compile the valgrind with ndk(platform-24), but ndk does not provide the interface pthread_barrier_t and pthread_spinlock_t . how you compile it ?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

hi, I compile the valgrind with ndk(platform-24), but ndk does not provide the interface pthread_barrier_t and pthread_spinlock_t . how you compile it ?

Wuweijia

hg_intercepts.c:97:61: note: in definition of macro 'PTH_FUNC'

    ret_ty I_WRAP_SONAME_FNNAME_ZZ(VG_Z_LIBPTHREAD_SONAME,f)(args); \

                                                             ^

hg_intercepts.c:1644:10: error: unknown type name 'pthread_barrierattr_t'

          pthread_barrierattr_t* attr, unsigned long count)

          ^

hg_intercepts.c:97:61: note: in definition of macro 'PTH_FUNC'

    ret_ty I_WRAP_SONAME_FNNAME_ZZ(VG_Z_LIBPTHREAD_SONAME,f)(args); \

                                                             ^

hg_intercepts.c:1643:10: error: unknown type name 'pthread_barrier_t'

          pthread_barrier_t* bar,

          ^

hg_intercepts.c:98:61: note: in definition of macro 'PTH_FUNC'

    ret_ty I_WRAP_SONAME_FNNAME_ZZ(VG_Z_LIBPTHREAD_SONAME,f)(args)

                                                             ^

hg_intercepts.c:1644:10: error: unknown type name 'pthread_barrierattr_t'

          pthread_barrierattr_t* attr, unsigned long count)

          ^

hg_intercepts.c:98:61: note: in definition of macro 'PTH_FUNC'

    ret_ty I_WRAP_SONAME_FNNAME_ZZ(VG_Z_LIBPTHREAD_SONAME,f)(args)

                                                             ^

hg_intercepts.c:1680:15: error: unknown type name 'pthread_barrier_t'

               pthread_barrier_t* bar)

              ^

hg_intercepts.c:97:61: note: in definition of macro 'PTH_FUNC'

    ret_ty I_WRAP_SONAME_FNNAME_ZZ(VG_Z_LIBPTHREAD_SONAME,f)(args); \

                                                             ^


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Valgrind-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/valgrind-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: hi, I compile the valgrind with ndk(platform-24), but ndk does not provide the interface pthread_barrier_t and pthread_spinlock_t . how you compile it ?

iraisr
2017-06-23 9:50 GMT+02:00 Wuweijia <[hidden email]>:

> hg_intercepts.c:97:61: note: in definition of macro 'PTH_FUNC'
>
>     ret_ty I_WRAP_SONAME_FNNAME_ZZ(VG_Z_LIBPTHREAD_SONAME,f)(args); \
>
>                                                              ^
>
> hg_intercepts.c:1644:10: error: unknown type name 'pthread_barrierattr_t'
>
>           pthread_barrierattr_t* attr, unsigned long count)
>

Check config.h.
HAVE_PTHREAD_BARRIER_INIT, and HAVE_PTHREAD_SPIN_LOCK should be #undef'ined.
If they are defined then check config.log and try to determined why
they are enabled
even if ndk does not supposedly provide them.

I.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Valgrind-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/valgrind-users
Loading...