0.3.5.1-alpha failed to build on arm64/armhf/armel jessie, stretch (only arm64), trusty, xenial, and artful.
Looking at some of the logs, this comes up repeatedly:
src/lib/libtor-crypt-ops.a(src_lib_libtor_crypt_ops_a-aes_openssl.o): In function `aes_set_iv':./build/../src/lib/crypt_ops/aes_openssl.c:399: undefined reference to `get_uint32'./build/../src/lib/crypt_ops/aes_openssl.c:400: undefined reference to `get_uint32'./build/../src/lib/crypt_ops/aes_openssl.c:401: undefined reference to `get_uint32'
15:00:32 ../src/lib/crypt_ops/aes_openssl.c: In function 'aes_cipher_free_':15:00:32 ../src/lib/crypt_ops/aes_openssl.c:338:3: warning: implicit declaration of function 'memwipe'; did you mean 'mempcpy'? [-Wimplicit-function-declaration]15:00:32 memwipe(cipher, 0, sizeof(aes_cnt_cipher_t));15:00:32 ^~~~~~~15:00:32 mempcpy15:00:32 ../src/lib/crypt_ops/aes_openssl.c:338:3: warning: nested extern declaration of 'memwipe' [-Wnested-externs]15:00:32 ../src/lib/crypt_ops/aes_openssl.c: In function 'aes_set_iv':15:00:32 ../src/lib/crypt_ops/aes_openssl.c:399:22: warning: implicit declaration of function 'ntohl'; did you mean 'atoll'? [-Wimplicit-function-declaration]15:00:32 cipher->counter3 = ntohl(get_uint32(iv));15:00:32 ^~~~~15:00:32 atoll15:00:32 ../src/lib/crypt_ops/aes_openssl.c:399:22: warning: nested extern declaration of 'ntohl' [-Wnested-externs]15:00:32 ../src/lib/crypt_ops/aes_openssl.c:399:28: warning: implicit declaration of function 'get_uint32'; did you mean 'getline'? [-Wimplicit-function-declaration]15:00:32 cipher->counter3 = ntohl(get_uint32(iv));15:00:32 ^~~~~~~~~~15:00:32 getline15:00:32 ../src/lib/crypt_ops/aes_openssl.c:399:28: warning: nested extern declaration of 'get_uint32' [-Wnested-externs]