Following was reported against PXC earlier:
=======================
/build/buildd/percona-xtradb-cluster-5.5-5.5.34-25.9+dfsg/sql/query_response_time.cc: In member function 'uint32 query_response_time::time_collector::count(uint) const':
/build/buildd/percona-xtradb-cluster-5.5-5.5.34-25.9+dfsg/include/my_pthread.h:568:58: error: invalid conversion from 'const my_pthread_fastmutex_t* {aka const st_my_pthread_fastmutex_t*}' to 'my_pthread_fastmutex_t* {aka st_my_pthread_fastmutex_t*}' [-fpermissive]
#define pthread_mutex_lock(A) my_pthread_fastmutex_lock(A)
^
/build/buildd/percona-xtradb-cluster-5.5-5.5.34-25.9+dfsg/include/atomic/rwlock.h:53:44: note: in expansion of macro 'pthread_mutex_lock'
#define my_atomic_rwlock_rdlock(name) pthread_mutex_lock(& (name)->rw)
^
/build/buildd/percona-xtradb-cluster-5.5-5.5.34-25.9+dfsg/sql/query_response_time.cc:161:5: note: in expansion of macro 'my_atomic_rwlock_rdlock'
my_atomic_rwlock_rdlock(&time_collector_lock);
^
/build/buildd/percona-xtradb-cluster-5.5-5.5.34-25.9+dfsg/include/my_pthread.h:555:5: error: initializing argument 1 of 'int my_pthread_fastmutex_lock(my_pthread_fastmutex_t*)' [-fpermissive]
int my_pthread_fastmutex_lock(my_pthread_fastmutex_t *mp);
^
/build/buildd/percona-xtradb-cluster-5.5-5.5.34-25.9+dfsg/include/my_pthread.h:569:65: error: invalid conversion from 'const pthread_mutex_t*' to 'pthread_mutex_t*' [-fpermissive]
#define pthread_mutex_unlock(A) pthread_mutex_unlock(&(A)->mutex)
^
/build/buildd/percona-xtradb-cluster-5.5-5.5.34-25.9+dfsg/include/atomic/rwlock.h:55:44: note: in expansion of macro 'pthread_mutex_unlock'
#define my_atomic_rwlock_rdunlock(name) pthread_mutex_unlock(& (name)->rw)
^
/build/buildd/percona-xtradb-cluster-5.5-5.5.34-25.9+dfsg/sql/query_response_time.cc:163:5: note: in expansion of macro 'my_atomic_rwlock_rdunlock'
my_atomic_rwlock_rdunlock(&time_collector_lock);
^
In file included from /build/buildd/percona-xtradb-cluster-5.5-5.5.34-25.9+dfsg/include/my_global.h:274:0,
from /build/buildd/percona-xtradb-cluster-5.5-5.5.34-25.9+dfsg/sql/query_response_time.cc:2:
/usr/include/pthread.h:784:12: error: initializing argument 1 of 'int pthread_mutex_unlock(pthread_mutex_t*)' [-fpermissive]
extern int pthread_mutex_unlock (pthread_mutex_t *__mutex)
^
In file included from /build/buildd/percona-xtradb-cluster-5.5-5.5.34-25.9+dfsg/include/my_sys.h:44:0,
from /build/buildd/percona-xtradb-cluster-5.5-5.5.34-25.9+dfsg/include/hash.h:22,
from /build/buildd/percona-xtradb-cluster-5.5-5.5.34-25.9+dfsg/sql/rpl_tblmap.h:55,
from /build/buildd/percona-xtradb-cluster-5.5-5.5.34-25.9+dfsg/sql/query_response_time.cc:5:
/build/buildd/percona-xtradb-cluster-5.5-5.5.34-25.9+dfsg/sql/query_response_time.cc: In member function 'uint64 query_response_time::time_collector::total(uint) const':
/build/buildd/percona-xtradb-cluster-5.5-5.5.34-25.9+dfsg/include/my_pthread.h:568:58: error: invalid conversion from 'const my_pthread_fastmutex_t* {aka const st_my_pthread_fastmutex_t*}' to 'my_pthread_fastmutex_t* {aka st_my_pthread_fastmutex_t*}' [-fpermissive]
#define pthread_mutex_lock(A) my_pthread_fastmutex_lock(A)
^
/build/buildd/percona-xtradb-cluster-5.5-5.5.34-25.9+dfsg/include/atomic/rwlock.h:53:44: note: in expansion of macro 'pthread_mutex_lock'
#define my_atomic_rwlock_rdlock(name) pthread_mutex_lock(& (name)->rw)
^
/build/buildd/percona-xtradb-cluster-5.5-5.5.34-25.9+dfsg/sql/query_response_time.cc:168:5: note: in expansion of macro 'my_atomic_rwlock_rdlock'
my_atomic_rwlock_rdlock(&time_collector_lock);
^
/build/buildd/percona-xtradb-cluster-5.5-5.5.34-25.9+dfsg/include/my_pthread.h:555:5: error: initializing argument 1 of 'int my_pthread_fastmutex_lock(my_pthread_fastmutex_t*)' [-fpermissive]
int my_pthread_fastmutex_lock(my_pthread_fastmutex_t *mp);
^
/build/buildd/percona-xtradb-cluster-5.5-5.5.34-25.9+dfsg/include/my_pthread.h:569:65: error: invalid conversion from 'const pthread_mutex_t*' to 'pthread_mutex_t*' [-fpermissive]
#define pthread_mutex_unlock(A) pthread_mutex_unlock(&(A)->mutex)
^
/build/buildd/percona-xtradb-cluster-5.5-5.5.34-25.9+dfsg/include/atomic/rwlock.h:55:44: note: in expansion of macro 'pthread_mutex_unlock'
#define my_atomic_rwlock_rdunlock(name) pthread_mutex_unlock(& (name)->rw)
^
/build/buildd/percona-xtradb-cluster-5.5-5.5.34-25.9+dfsg/sql/query_response_time.cc:170:5: note: in expansion of macro 'my_atomic_rwlock_rdunlock'
my_atomic_rwlock_rdunlock(&time_collector_lock);
^
In file included from /build/buildd/percona-xtradb-cluster-5.5-5.5.34-25.9+dfsg/include/my_global.h:274:0,
from /build/buildd/percona-xtradb-cluster-5.5-5.5.34-25.9+dfsg/sql/query_response_time.cc:2:
/usr/include/pthread.h:784:12: error: initializing argument 1 of 'int pthread_mutex_unlock(pthread_mutex_t*)' [-fpermissive]
extern int pthread_mutex_unlock (pthread_mutex_t *__mutex)
^
==========================
Full log: https://launchpadlibrarian.net/168529885/buildlog_ubuntu-trusty-powerpc.percona-xtradb-cluster-5.5_5.5.34-25.9%2Bdfsg-0ubuntu1_FAILEDTOBUILD.txt.gz