[Bug preprocessor/48957] GCC's handling of include-fixed does not work well with --sysroot
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48957 --- Comment #4 from joseph at codesourcery dot com --- Well, I suppose you could have a new option to say what set of fixed headers to use, in the case where your sysroot is not based on the one used when building GCC.
[Bug preprocessor/48957] GCC's handling of include-fixed does not work well with --sysroot
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48957 Eric Gallager changed: What|Removed |Added CC||joseph at codesourcery dot com --- Comment #3 from Eric Gallager --- (In reply to Eric Gallager from comment #2) > (In reply to jos...@codesourcery.com from comment #1) > > On Wed, 11 May 2011, psmith at gnu dot org wrote: > > > > > I think that the include-fixed directory should be associated with the > > > sysroot, > > > > It should be associated with each system include directory (sysroot or > > otherwise) - so there should be a fixed version of /usr/local/include, > > searched immediately before /usr/local/include, and likewise for > > /usr/include. > > This sounds like an agreement that some form of change would be worthwhile; > I'm going to take that as confirmation. > > > But there are certainly sysroot uses where include-fixed is > > still relevant - where the sysroot is based on a copy of that used when > > GCC was built, but with extra libraries added. (That's the case of > > sysroots that works most reliably for other reasons as well; GCC's runtime > > libraries get configured depending on the libc libraries and headers > > present when GCC was built, and in some cases the headers affect the > > configuration of GCC itself as well as GCC's libraries.) > > > > http://gcc.gnu.org/ml/gcc-patches/2010-07/msg02088.html > > http://gcc.gnu.org/ml/gcc/2004-11/msg00255.html > > Shouldn't it be possible to come up with a solution that still supports > those cases while also fixing the cases Paul described? Joseph, can you think of one?
[Bug preprocessor/48957] GCC's handling of include-fixed does not work well with --sysroot
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48957 Eric Gallager changed: What|Removed |Added Keywords||build Status|UNCONFIRMED |NEW Last reconfirmed||2018-03-12 CC||egallager at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Eric Gallager --- (In reply to jos...@codesourcery.com from comment #1) > On Wed, 11 May 2011, psmith at gnu dot org wrote: > > > I think that the include-fixed directory should be associated with the > > sysroot, > > It should be associated with each system include directory (sysroot or > otherwise) - so there should be a fixed version of /usr/local/include, > searched immediately before /usr/local/include, and likewise for > /usr/include. This sounds like an agreement that some form of change would be worthwhile; I'm going to take that as confirmation. > But there are certainly sysroot uses where include-fixed is > still relevant - where the sysroot is based on a copy of that used when > GCC was built, but with extra libraries added. (That's the case of > sysroots that works most reliably for other reasons as well; GCC's runtime > libraries get configured depending on the libc libraries and headers > present when GCC was built, and in some cases the headers affect the > configuration of GCC itself as well as GCC's libraries.) > > http://gcc.gnu.org/ml/gcc-patches/2010-07/msg02088.html > http://gcc.gnu.org/ml/gcc/2004-11/msg00255.html Shouldn't it be possible to come up with a solution that still supports those cases while also fixing the cases Paul described?
[Bug preprocessor/48957] GCC's handling of include-fixed does not work well with --sysroot
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48957 --- Comment #1 from joseph at codesourcery dot com joseph at codesourcery dot com 2011-05-11 10:16:53 UTC --- On Wed, 11 May 2011, psmith at gnu dot org wrote: I think that the include-fixed directory should be associated with the sysroot, It should be associated with each system include directory (sysroot or otherwise) - so there should be a fixed version of /usr/local/include, searched immediately before /usr/local/include, and likewise for /usr/include. But there are certainly sysroot uses where include-fixed is still relevant - where the sysroot is based on a copy of that used when GCC was built, but with extra libraries added. (That's the case of sysroots that works most reliably for other reasons as well; GCC's runtime libraries get configured depending on the libc libraries and headers present when GCC was built, and in some cases the headers affect the configuration of GCC itself as well as GCC's libraries.) http://gcc.gnu.org/ml/gcc-patches/2010-07/msg02088.html http://gcc.gnu.org/ml/gcc/2004-11/msg00255.html