wg/scrypt

Can't make on android with NDK-r9

dalb8 opened this issue · 2 comments

:> TARGET=android PATH=$PATH:/home/gerry/android-ndk-r9c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin NDK_ROOT=~/android-ndk-r9c make
arm-linux-androideabi-gcc -std=c99 -Wall -O2 -DHAVE_CONFIG_H -I src/main/include --sysroot=/home/gerry/android-ndk-r9c/platforms/android-9/arch-arm/ -c -o target/obj/crypto_scrypt-nosse.o src/main/c/crypto_scrypt-nosse.c
src/main/c/crypto_scrypt-nosse.c: In function 'crypto_scrypt':
src/main/c/crypto_scrypt-nosse.c:259:11: error: 'SIZE_MAX' undeclared (first use in this function)
src/main/c/crypto_scrypt-nosse.c:259:11: note: each undeclared identifier is reported only once for each function it appears in
make: *** [target/obj/crypto_scrypt-nosse.o] Error 1

I had success with the 4.8 version if gcc, both with armeabi and x86 builds. Both work fine on android for me. Didn't try 4.6. So I think this might be it. Also on NDKr9

Aha! yes, many thanks.