Service Desk (from noloader@gmail.com): GnuTLS 3.6.12 and "Error: no such instruction: `xgetbv'"
Hi Everyone,
I'm testing on CentOS 5.
libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -I./../../../gl -I./../../../gl -I./../../includes -I./../../includes -I./../../ -I./../ -I/usr/local/include -DNDEBUG -fno-common -Wall -I/usr/local/include -I/usr/local/include -I/usr/local/include/p11-kit-1 -DASM_X86_64 -DASM_X86 -g2 -O2 -fPIC -pthread -MT x86-common.lo -MD -MP -MF .deps/x86-common.Tpo -c x86-common.c -fPIC -DPIC -o .libs/x86-common.o x86-common.c: In function 'get_cpuid_level7': x86-common.c:115: warning: implicit declaration of function '__get_cpuid_max' x86-common.c:118: warning: implicit declaration of function '__cpuid_count' x86-common.c: In function 'capabilities_to_via_edx': x86-common.c:251: warning: unused variable 't' x86-common.c:251: warning: unused variable 'b' x86-common.c:251: warning: unused variable 'a' x86-common.c: In function 'check_via': x86-common.c:327: warning: unused variable 'a' x86-common.c: In function 'check_intel_or_amd': x86-common.c:519: warning: unused variable 'a' /tmp/ccovGXsj.s: Assembler messages: /tmp/ccovGXsj.s:46: Error: no such instruction: `xgetbv' make[5]: *** [x86-common.lo] Error 1
Fox xgetbv, see:
- https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71659 and
- http://www.agner.org/optimize/vectorclass/read.php?i=65
You usually use inline assembly when you need it on multiple platforms.