This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Build Error - gcc must provide the <cpuid.h> header
- From: Sreyan Chakravarty <sreyan dot mailing at gmail dot com>
- To: Sreyan Chakravarty <sreyan dot mailing at gmail dot com>, "Carlos O'Donell" <carlos at systemhalted dot org>, "libc-help at sourceware dot org" <libc-help at sourceware dot org>
- Date: Sat, 28 May 2016 14:46:02 +0530
- Subject: Re: Build Error - gcc must provide the <cpuid.h> header
- Authentication-results: sourceware.org; auth=none
- References: <CAOcRYWrB24rSTw_snTa-gA9EnvQz6bP=KAW3dP4rwJ6yrgzVzA at mail dot gmail dot com> <20160519221544 dot GR26300 at vapier dot lan> <CAOcRYWqoq0sfn+Y5OeQyCFrwqrg8Gwu7ChEwz1a1zPFv2GSHLw at mail dot gmail dot com> <CAE2sS1h344dJG8dMgRqmshqh=UQOfYEo3J1os1OKW0dHBYSqRw at mail dot gmail dot com> <CAOcRYWq=XDd70S+RxX_X7ixDmUzhz9f09bVWQReHF9AWU_KcUw at mail dot gmail dot com> <CAE2sS1i5dofuMLHACHPi8505QmqU88NXtiEHDEhZvjok+Tj0Cg at mail dot gmail dot com> <CAOcRYWrFRMSbRA7LUkBKPF26wD1YMNBf=auz0jYG5nd9UZSi4A at mail dot gmail dot com> <CAOcRYWoLx9NJ8U-5rqB7ysFZgE5WWcDfzv3M0mVXXJdyhPcRrA at mail dot gmail dot com> <CAOcRYWpKs372FoiFsHwM30w_UqMm8j6Y+vnjfK0gfHy8KsanHA at mail dot gmail dot com> <20160522003014 dot GF26300 at vapier dot lan>
On 5/22/16, Mike Frysinger <vapier@gentoo.org> wrote:
> On 21 May 2016 21:54, Sreyan Chakravarty wrote:
>> Here is what I did-:
>>
>> I did the search on my system for cpuid.h using the following command-:
>>
>> find /usr/ -name cpuid.h
>>
>> which turned up only one result-:
>>
>> /usr/src/linux-headers-2.6.24-32-generic/include/config/x86/cpuid.h
>>
>> Then I copied the above file into my /usr/include/ using the cp
>> command. Then the configuration worked fine.
>
> no, don't do that. cpuid.h needs to come from gcc, not some old random
> version of the linux kernel. your build is doomed to fail.
>
> if you need a newer version of glibc, you should just install a newer
> distro. if you can't upgrade your current one, then use a VM or a diff
> system or a chroot.
> -mike
>
Ok my build failed after adding the cpuid.h from the /usr location.
Tell me something why doesnt my gcc have cpuid.h I can't figure that
out yet.
What should I do ? I am stuck. I cannot upgrade to a newer distro I
need to build on this platform.
Could you please explain the process of the chroot in more detail ?