This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Build Error - gcc must provide the <cpuid.h> header


On Fri, May 20, 2016 at 5:01 PM, Sreyan Chakravarty
<sreyan.mailing@gmail.com> wrote:
> I have no idea on how to read the config.log. All I can understand is
> that from lines 19-28 I am getting "unknown" probably because I am on
> a VM.

configure:635: checking cpuid.h usability
configure:635: gcc -c -g -O2  conftest.c >&5
conftest.c:84:19: error: cpuid.h: No such file or directory

You lack cpuid.h. It looks like your installation is broken.

Are you compiling locally? If yes, then what does `find /usr -name
cpuid.h` show?

The following program should compile just fine:
#include <stdio.h>
#include <cpuid.h>
int main (void) { return 0; }

gcc -o test test.c

If this fails, then your toolchain is broken.

Cheers,
Carlos.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]