Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gadget compilation fails #28

Closed
cnasikas opened this issue Nov 7, 2018 · 3 comments
Closed

Gadget compilation fails #28

cnasikas opened this issue Nov 7, 2018 · 3 comments

Comments

@cnasikas
Copy link
Contributor

cnasikas commented Nov 7, 2018

Hi,

The command make gadget fails with the following message

g++ -m64 -std=c++11 -DCURVE_ALT_BN128 -DBN_SUPPORT_SNARK -DBINARY_OUTPUT -DMONTGOMERY_OUTPUT -DNO_PROCPS -DUSE_ASM -DDB_NUM_ADDRESSES=1024 -DDB_HASH_NUM_BITS=1216 -DRAM_CELL_NUM_BITS=32 -DFAST_RAM_WORD_WIDTH=64 -DFAST_RAM_ADDRESS_WIDTH=32 -DFOLDER_TMP=\"/tmp/vagrant/tmp_state\" -UBINARY_OUTPUT -DNAME=\"\" -I./include -I. -I/home/vagrant/pepper_deps/include -I../thirdparty/libsnark -I../thirdparty/libsnark/depends/libff -I../thirdparty/libsnark/depends/libfqfft  ext_gadget_bridge.cpp  -o bin/gadget.o  obj/common/sha1.o  obj/common/sha256.o  obj/common/utility.o  obj/common/measurement.o  obj/common/mpnvector.o  obj/common/mpnclass.o  obj/common/mpnops.o  obj/common/math.o  obj/common/memory.o  obj/common/waksman_router.o   obj/storage/hasher.o  obj/storage/ram_impl.o  obj/storage/kyoto_block_store.o  obj/storage/leveldb_block_store.o  obj/storage/configurable_block_store.o  obj/storage/null_hash.o  obj/storage/ggh_hash.o  obj/storage/exo.o  obj/storage/db_util.o  obj/storage/external_sort.o  obj/storage/db_block_store.o  obj/include/db.o  obj/include/binary_tree.o  obj/include/binary_tree_int_int.o  obj/include/binary_tree_int_hash_t.o  obj/include/fix_t.o  obj/include/avl_tree.o  obj/libv/computation_p.o  obj/libv/exogenous_checker.o  -L/home/vagrant/pepper_deps/lib -L../thirdparty/libsnark/build/libsnark -L../thirdparty/libsnark/build/depends/libff/libff -L../thirdparty/libsnark/build/depends -lsnark -lff -lzm -lgmp -lgmpxx -lpapi -lrt -lleveldb -lkyotocabinet -Wl,-rpath,/home/vagrant/pepper_deps/lib/
cc -L/home/vagrant/pepper_deps/lib -L../thirdparty/libsnark/build/libsnark -L../thirdparty/libsnark/build/depends/libff/libff -L../thirdparty/libsnark/build/depends -lsnark -lff -lzm -lgmp -lgmpxx -lpapi -lrt -lleveldb -lkyotocabinet -Wl,-rpath,/home/vagrant/pepper_deps/lib/  gadget.o   -o gadget
cc: error: gadget.o: No such file or directory
<builtin>: recipe for target 'gadget' failed
make: *** [gadget] Error 1

The problem seems to be in second line cc - ... gadget.o -o gadget. Should the gadget.o be bin/gadget.o?

I haven't edited ext_gadget_bridge.cpp or any other relevant files. Also @jimouris faces the same problem.

@fleupold Can you provide detailed steps on how to run your PR #20?

Thanks in advance

@fleupold
Copy link
Contributor

fleupold commented Nov 7, 2018

You have to call make with the corresponding gadgetID.

E.g. make gadget0 will create /bin/gadget0, which can be called in your pepper code using ext_gadget(..., 0);

I'll add this clarification to the readme.

fleupold added a commit to gnosis/pequin that referenced this issue Nov 7, 2018
Clarifying question from pepper-project#28
@jimouris
Copy link
Contributor

jimouris commented Nov 7, 2018

@fleupold Thanks for the clarification, make gadget0 works fine.

@cnasikas
Copy link
Contributor Author

cnasikas commented Nov 7, 2018

Thanks a lot!

@cnasikas cnasikas closed this as completed Nov 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants