I am seeing below compilation errors with few build combinations.
COMPILING....[openssl] : vendor/openssl/crypto/threads_pthread.c
../../../../vendor/openssl/crypto/threads_pthread.c:214:1: error: redefinition of ‘fallback_atomic_exchange_n_uint64_t’
../../../../vendor/openssl/crypto/threads_pthread.c:196:1: note: previous definition of ‘fallback_atomic_exchange_n_uint64_t’ was here
../../../../vendor/openssl/crypto/threads_pthread.c: In function ‘update_qp’:
../../../../vendor/openssl/crypto/threads_pthread.c:564:5: warning: implicit declaration of function ‘fallback_atomic_compare_exchange_n_uint64_t’ [-Wimplicit-function-declaration]
../../../../vendor/openssl/crypto/threads_pthread.c:564:10: error: ‘__ATOMIC_ACQ_REL’ undeclared (first use in this function)
../../../../vendor/openssl/crypto/threads_pthread.c:564:10: note: each undeclared identifier is reported only once for each function it appears in
../../../../vendor/openssl/crypto/threads_pthread.c:564:10: error: ‘__ATOMIC_RELAXED’ undeclared (first use in this function)