Error log
ethsnarks/depends/libsnark/depends/libff/libff/algebra/fields/bigint.hpp:15:10: fatal error: 'gmp.h' file not found
HarryR/ethsnarks-miximus#12 (comment)
Thanks for responding with the information, I'm still unsure of why you can compile a single file and it finds
gmp.h
but when building it's unable to find it, but my thoughts are:Could you modify
ethsnarks/CMakeLists.txt
quickly, just to see if the following fixes it?Find line 256:
target_include_directories(ff PUBLIC ${DEPENDS_DIR_LIBSNARK} ${DEPENDS_DIR_LIBFF} ${DEPENDS_DIR_LIBFQFFT})
And add
${GMP_INCLUDE_DIR}
e.g.
target_include_directories(ff PUBLIC ${GMP_INCLUDE_DIR} ${DEPENDS_DIR_LIBSNARK} ${DEPENDS_DIR_LIBFF} ${DEPENDS_DIR_LIBFQFFT})
If that fixes it, but you get build errors elsewhere due to missing 'gmp.h', you would need to do the same on line 276 (
ff INTERFACE
)
ethsnarks version used
commit 05d01cc283e785a9674cc705445282cff967ee80 (HEAD)
Merge: a5ffb09 cf99138
Author: HaRold <[email protected]>
Date: Tue Jan 29 18:26:15 2019 +0000
Already fixed in a newer release of ethsnarks library.