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: possible bug with install-headers make target


On Thursday 09 July 2009 09:08:51 Carlos O'Donell wrote:
> On Wed, Jul 8, 2009 at 2:35 AM, Ryan Arnold<ryan.arnold@gmail.com> wrote:
> > Has anyone else noticed that :
> >
> > make install-headers install_root=/your/path/to/headers
> >
> > fails to install features.h, and other headers from the Makefile
> > `headers' variable into /your/path/to/headers?
> >
> > When I do a make install_root=/install_root/ install I see that
> > feature.h DOES get installed.
> >
> > This seems like a bug.
>
> The header features.h is a required header to build a functional sysroot.
>
> However, to build a functional sysroot you must run the install target.

this is a weak circular argument.  the C library must cater to building up a 
cross-toolchain and to do that, you have to be able to install just the 
headers.  you cant build the libraries and thus the headers without first 
installing the headers and building a full gcc C compiler.

> To claim the install-headers target is broken you would have to claim
> that it was designed for some purpose.

Ryan's claims seems pretty logical to me, as is the implied install-headers 
purpose (i dont think there is any *documented* purpose)

> What is the documented purpose of install-headers?
>
> You could claim that it's only purpose is to install a minimal set of
> headers for rebuilding gcc, and if it does that correctly, then
> nothing is wrong (even if features.h is not installed).

it doesnt work correctly.  look at any package out there that builds cross 
compilers and you'll find plenty of workarounds to make the headers-install 
step work (including, but not limited to, screwing around with the configure 
script).
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


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