Closed djneely closed 6 years ago
From the errors it can't find the Intel intrinsic definitions which suggests a missing package. I don't know the package name but I would expect it to be included with the compiler.
What's diffreent between the systems that work and the one that doesn't Can you still compile on those other systems? That should confirm if it's an issue with that one system.
If you still have problems please provide your CPU model and which cpuminer versions work and which don't. I presume your using build.sh, otherwise show your commands.
Thanks for getting back. So, I hopped on one of the systems that I have it currently running on (mining Monero). Did a new checkout to a temp directory and tried to build. Using build.sh as I've done on all. And I'm seeing the same error as above. Both of these boxes are updated Debian 8 boxes running on GCP (cpu info below). I jumped on another VM running through virtual box and same issue as above as well.
To test further on the systems that I do have them working on I copied the checkout that compiled previously for me and did another build.sh and they build the binary fine.
I jumped onto a debian-9 Virtualbox VM I had just setup this past week and ran through the tests and the most recent checkout built fine.
To get the other box going though I used one of the checkouts that is working and just rsync'ed it across and got it built.
$ cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 79 model name : Intel(R) Xeon(R) CPU @ 2.20GHz stepping : 0 microcode : 0x1 cpu MHz : 2200.000 cache size : 56320 KB physical id : 0 siblings : 1 core id : 0 cpu cores : 1 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch xsaveopt invpcid_single fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm rdseed adx smap bogomips : 4400.00 clflush size : 64 cache_alignment : 64 address sizes : 46 bits physical, 48 bits virtual power management:
As far as versions that work/don't:
Debian 8: -- Work: 3.7.9 and 3.8.0 -- Errors: 3.8.1.1
Debian 9: -- Work: 3.8.0 and 3.8.1.1
The specific compile errors are related to a set of SIMD byte shift intrinsics like _mm_bsrli_si128. They were introduced in cpuminer-opt-3.8.1. That explains the cpuminer connection.
But why does it compile on Deb9 but not Deb8? It must be something related to your Deb8 configuration. It seems odd that only some intrinsics are missing and the missing ones span SSE2 to AVX2. That doesn't fit with any packaging scheme. The packages would be divided by SSE2, AVX, AVX2 etc, you're missing parts of each. It doesn't make any sense which leads me to believe your Deb8 systems are messed up rather than simply missing a package.
I have no problems using Ubuntu 14.04 or 16.04 and you have no problems with Deb9. A problem with Deb8 seems unlikely (you say you have it up to date and a bug like this should have been fixed long ago) so it must be your specific setup. If all your systems were cloned from a corrupt build it would explain why all your Deb8 systems are affected.
Your CPU looks fine, it supports everything up to AVX2.
In the asbsence of further info it's concluded the issue is not with cpuminer-opt.
Sounds good JayDDee. I've tried numerous Debian 8 installs on VMs with all the same issue. But no big deal I've already started replacing them with D9 installs.
I've got cpuminer-opt up and running on several Debian 8 boxes without issue. Stood them all up a month (or more) ago now. However, as of tonight I was trying to build it on another server of mine and I'm seeing the following errors. Is there something that is no longer supported now on a D8 box or missing a package or something? I installed all the primary packages I had to for the other builds: curl, libssl, gmp, etc. Not sure what's going on with this one.
Thanks. Great work on this.