Jerasure icon indicating copy to clipboard operation
Jerasure copied to clipboard

cpuid can not find in some kernel version

Open httaotao opened this issue 2 years ago • 0 comments

it should change the ax_ext.m4 file.

Jerasure/m4/ax_ext.m4
-      ecx=`echo $ax_cv_gcc_x86_cpuid_0x00000001 | cut -d ":" -f 3`
-      edx=`echo $ax_cv_gcc_x86_cpuid_0x00000001 | cut -d ":" -f 4`
+      ecx=0
+      edx=0
+      if test "$ax_cv_gcc_x86_cpuid_0x00000001" != "unknown";
+      then
+        ecx=`echo $ax_cv_gcc_x86_cpuid_0x00000001 | cut -d ":" -f 3`
+        edx=`echo $ax_cv_gcc_x86_cpuid_0x00000001 | cut -d ":" -f 4`
+      fi

kernel version

$ sudo uname -a 
Linux hilton-PC 5.17.3-amd64-desktop #1 SMP PREEMPT Fri Apr 29 15:22:29 CST 2022 x86_64 GNU/Linux

httaotao avatar Jun 29 '22 06:06 httaotao