cpuid.h not found

Aleksandar Kuktin akuktin at gmail.com
Tue May 11 08:18:06 PDT 2010


>On Tue, 11 May 2010 08:01:26 -0600
>Yan Mo <yinoryan at gmail.com> wrote:
> 
> [snip]
> 
> > >
> > > checking cpuid.h usability... no
> > > checking cpuid.h presence... no
> > > checking for cpuid.h... no
> > > configure: error: gcc must provide the <cpuid.h> header
> > >
> >
> > The file cpuid.h is provided by gcc.  Since you do not have the
> > file, it is possible that the gcc build in section 5.5.1 failed.
> > You could try repeating that section and carefully checking the
> > output.
> 
> [snip]
> 
> My machine also has cpuid.h in
> $LFS/tools/lib/gcc/i686-lfs-linux-gnu/4.4.3/include so it makes me
> wonder if something is not reverse-compatible with my 800MHz AMD
> Duron.
> 
> I choose my oldest machine to build this in order for my new system
> to be compatible with as many machines as possible. Could it be those
> that benefit by selling newer hardware are discouraging
> reverse-compatibility???

Hmm...

So, you have cpuid.h where it is supposed to be, but the working GCC
does not use it?
I think you should gut config.log of the failing glibc build and find
the compiler output for the failing test. It will likely be somewhere
in the middle of the file, and should contain the necessary information
to diagnose the problem. Post it.

I would also want to think of your CPU. Are you _sure_ it is i686? Ran
config.guess or 'uname -m'? AFAIK, distros do not build i686 binaries,
they build i486 or i586 binaries. So that can be a good place for all
sorts of interesting things to happen.



More information about the lfs-support mailing list