cpuminer-opt-sugarchain icon indicating copy to clipboard operation
cpuminer-opt-sugarchain copied to clipboard

algo/blake/sph-blake2s.c:326:9: error: size of array element is not a multiple of its alignment

Open salahberiani opened this issue 2 years ago • 0 comments

algo/blake/sph-blake2s.c:326:9: error: size of array element is not a multiple of its alignment 326 | blake2s_state S[1]; | ^~~~~~~~~~~~~ make[2]: *** [Makefile:3060: algo/blake/cpuminer-sph-blake2s.o] Error 1 make[2]: *** Waiting for unfinished jobs.... mv -f algo/blake/.deps/cpuminer-blake-4way.Tpo algo/blake/.deps/cpuminer-blake-4way.Po mv -f algo/blake/.deps/cpuminer-sph_blake.Tpo algo/blake/.deps/cpuminer-sph_blake.Po mv -f algo/blake/.deps/cpuminer-blake2b.Tpo algo/blake/.deps/cpuminer-blake2b.Po make[2]: Leaving directory '/home/ubuntu/cpuminer-opt-sugarchain' make[1]: *** [Makefile:6037: all-recursive] Error 1 make[1]: Leaving directory '/home/ubuntu/cpuminer-opt-sugarchain' make: *** [Makefile:1164: all] Error 2 strip: 'cpuminer': No such file

i have ubuntu 20.04 and i have gcc 11 with the highest priority and the build fail i did try to switch to gcc 9 but i got another error

cpu-miner.c:2322:9: warning: ignoring return value of ‘json_object_get’, declared with attribute warn_unused_result [-Wunused-result] 2322 | json_object_get( val, "result" ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mv -f .deps/cpuminer-util.Tpo .deps/cpuminer-util.Po mv -f .deps/cpuminer-cpu-miner.Tpo .deps/cpuminer-cpu-miner.Po make[2]: Leaving directory '/home/ubuntu/cpuminer-opt-sugarchain' make[1]: *** [Makefile:6037: all-recursive] Error 1 make[1]: Leaving directory '/home/ubuntu/cpuminer-opt-sugarchain' make: *** [Makefile:1164: all] Error 2 strip: 'cpuminer': No such file

salahberiani avatar Jul 20 '22 19:07 salahberiani