ethereum / ethash

190 stars 516 forks source link

can't find ethash_params in benchmarl.cpp #128

Open pupil11 opened 4 years ago

pupil11 commented 4 years ago

Good day to everybody, i'm new here and would like to test make Benchmark_FULL , but i'm told that ‘ethash_params’ was not declared:

deeplearning@deep-learning-virtual-machine:~/ethash/test/c/build$ make Benchmark_FULL [ 71%] Built target ethash Scanning dependencies of target Benchmark_FULL [ 85%] Building CXX object src/benchmark/CMakeFiles/Benchmark_FULL.dir/benchmark.cpp.o /home/deeplearning/ethash/src/benchmark/benchmark.cpp: In function ‘int main()’: /home/deeplearning/ethash/src/benchmark/benchmark.cpp:108:2: error: ‘ethash_params’ was not declared in this scope ethash_params params; ^ /home/deeplearning/ethash/src/benchmark/benchmark.cpp:109:22: error: ‘params’ was not declared in this scope ethash_params_init(&params, 0); ^ /home/deeplearning/ethash/src/benchmark/benchmark.cpp:109:31: error: ‘ethash_params_init’ was not declared in this scope ethash_params_init(&params, 0); ^ /home/deeplearning/ethash/src/benchmark/benchmark.cpp:129:2: error: ‘ethash_cache’ was not declared in this scope ethash_cache cache; ^ /home/deeplearning/ethash/src/benchmark/benchmark.cpp:130:2: error: ‘cache’ was not declared in this scope cache.mem = cache_mem; ^ /home/deeplearning/ethash/src/benchmark/benchmark.cpp:135:40: error: ‘ethash_mkcache’ was not declared in this scope ethash_mkcache(&cache, &params, &seed); ^ /home/deeplearning/ethash/src/benchmark/benchmark.cpp:146:58: error: invalid use of incomplete type ‘struct ethash_light’ ethash_light(&hash, &cache, &params, &previous_hash, 0); ^ In file included from /home/deeplearning/ethash/src/benchmark/benchmark.cpp:25:0: /home/deeplearning/ethash/src/benchmark/../libethash/ethash.h:58:8: note: forward declaration of ‘struct ethash_light’ struct ethash_light; ^ /home/deeplearning/ethash/src/benchmark/benchmark.cpp:153:54: error: ‘ethash_compute_full_data’ was not declared in this scope ethash_compute_full_data(full_mem, &params, &cache); ^ /home/deeplearning/ethash/src/benchmark/benchmark.cpp:175:58: error: invalid use of incomplete type ‘struct ethash_full’ ethash_full(&hash, full_mem, &params, &previous_hash, 0); ^ In file included from /home/deeplearning/ethash/src/benchmark/benchmark.cpp:25:0: /home/deeplearning/ethash/src/benchmark/../libethash/ethash.h:60:8: note: forward declaration of ‘struct ethash_full’ struct ethash_full; ^ /home/deeplearning/ethash/src/benchmark/benchmark.cpp:248:64: error: invalid use of incomplete type ‘struct ethash_full’ ethash_full(&hash, full_mem, &params, &previous_hash, nonce); ^ In file included from /home/deeplearning/ethash/src/benchmark/benchmark.cpp:25:0: /home/deeplearning/ethash/src/benchmark/../libethash/ethash.h:60:8: note: forward declaration of ‘struct ethash_full’ struct ethash_full; ^ src/benchmark/CMakeFiles/Benchmark_FULL.dir/build.make:62: recipe for target 'src/benchmark/CMakeFiles/Benchmark_FULL.dir/benchmark.cpp.o' failed make[3]: [src/benchmark/CMakeFiles/Benchmark_FULL.dir/benchmark.cpp.o] Error 1 CMakeFiles/Makefile2:210: recipe for target 'src/benchmark/CMakeFiles/Benchmark_FULL.dir/all' failed make[2]: [src/benchmark/CMakeFiles/Benchmark_FULL.dir/all] Error 2 CMakeFiles/Makefile2:217: recipe for target 'src/benchmark/CMakeFiles/Benchmark_FULL.dir/rule' failed make[1]: [src/benchmark/CMakeFiles/Benchmark_FULL.dir/rule] Error 2 Makefile:157: recipe for target 'Benchmark_FULL' failed make: [Benchmark_FULL] Error 2

Could you please advise ethash_params in benchmarl.cpp or give the working version of this file ?

thanks a lot