wiire-a / pixiewps

An offline Wi-Fi Protected Setup brute-force utility
Other
1.55k stars 310 forks source link

1.4.2 build fails with i486 (32bit) crosscompiler #90

Closed rofl0r closed 6 years ago

rofl0r commented 6 years ago

the following fixes it

sed -i s/asm/__asm__/g src/crypto/tfm/fp_montgomery_reduce.c                    
sed -i s/asm/__asm__/g src/crypto/tfm/fp_mul_comba.c                            
sed -i s/asm/__asm__/g src/crypto/tfm/fp_sqr_comba.c                            

the joys of using asm for speed, you have to test on any supported platform :(

rofl0r commented 6 years ago

i suspect it's due to our use of -std=c99 (since asm is not a keyword in ISO C)

wiire-a commented 6 years ago

There are asm macros in crypto/tc/tomcrypt_macros.h too.

Actually they mix asm and __asm__ in that header.

rofl0r commented 6 years ago

wrong alert. by default it builds fine, it's just that i had put -std=c99 explicitly into CFLAGS in my recipe to workaround an earlier issue. one could eventually contact the tomsfastmath team about getting their code compatible with std=c99 too...