Trying CPU Mining - Getting Illegal Instruction

dwayne@ubuntu:~$ lscpu | sed -nr '/Model name/ s/.*:\s*(.*) @ .*/\1/p'
Intel(R) Xeon(R) CPU           E5645

Is it trying to use something that is only in the newest CPUs?

#0  0x00007ffff4bfcd4e in blake2b_init_param () from /home/dwayne/grin-miner-0.5.1/plugins/cuckaroo_cpu_compat_29.cuckooplugin
#1  0x00007ffff4bfcec4 in blake2b_init () from /home/dwayne/grin-miner-0.5.1/plugins/cuckaroo_cpu_compat_29.cuckooplugin
#2  0x00007ffff4bfd59c in blake2b () from /home/dwayne/grin-miner-0.5.1/plugins/cuckaroo_cpu_compat_29.cuckooplugin
#3  0x00007ffff4bf5a61 in setheader(char const*, unsigned int, siphash_keys*) () from /home/dwayne/grin-miner-0.5.1/plugins/cuckaroo_cpu_compat_29.cuckooplugin
#4  0x00007ffff4bf6b38 in run_solver () from /home/dwayne/grin-miner-0.5.1/plugins/cuckaroo_cpu_compat_29.cuckooplugin
#5  0x000055555567d8f5 in cuckoo_miner::cuckoo_sys::ffi::PluginLibrary::run_solver::he311e4b849e1983a ()
#6  0x00005555556762bd in cuckoo_miner::miner::miner::CuckooMiner::solver_thread::h535da4c06c3d9c30 ()
#7  0x00005555556794b4 in std::sys_common::backtrace::__rust_begin_short_backtrace::h0d585e4948650748 ()
#8  0x000055555567b4b7 in std::panicking::try::do_call::ha175e9372e95fa8f ()
#9  0x00005555556f892a in __rust_maybe_catch_panic () at libpanic_unwind/lib.rs:102
#10 0x0000555555682cde in _$LT$F$u20$as$u20$alloc..boxed..FnBox$LT$A$GT$$GT$::call_box::h09654cb679790681 ()
#11 0x00005555556e5cee in _$LT$alloc..boxed..Box$LT$$LP$dyn$u20$alloc..boxed..FnBox$LT$A$C$$u20$Output$u3d$R$GT$$u20$$u2b$$u20$$u27$a$RP$$GT$$u20$as$u20$core..ops..function..FnOnce$LT$A$GT$$GT$::call_once::h9d902c911a417e39 () at liballoc/boxed.rs:682
#12 std::sys_common::thread::start_thread::h44127e03e78ca137 () at libstd/sys_common/thread.rs:24
#13 0x00005555556d7046 in std::sys::unix::thread::Thread::new::thread_start::h8f17b97f2223146c () at libstd/sys/unix/thread.rs:90
#14 0x00007ffff6caf6ba in start_thread (arg=0x7ffff5dff700) at pthread_create.c:333
#15 0x00007ffff67cf41d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

That’s odd; looks like you’re using a wrong build of crate::blake2::blake2b::Blake2b using SIMD instructions that your CPU doesn’t have.

Not so odd, I downloaded the grin-miner binary from https://github.com/mimblewimble/grin-miner/releases/download/0.5.1/grin-miner-0.5.1-476582543-linux-amd64.tgz instead of building it myself from source. Presumably that is built with features = [“build-mean-avx2”] - a reasonable decision in 2019.

I downloaded the source and built it myself and it works fine on my 2010-era Dual Intel Xeon box.

Thanks @tromp