Problem building glibc

Michael Eager eager@eagerm.com
Wed May 20 07:44:00 GMT 2015


On 05/19/2015 04:40 PM, Roland McGrath wrote:
>> There are a number of dependencies on headers in the install directory.
>> Most are the headers installed by gcc, under ...-linux-gnu/4.9.2.
>
> If the install directory contains the GCC installation too, then that is
> perfectly normal.  What I meant was files installed by libc.
>
>> If
>> I filter those out, there are dependencies for install/include/limits.h.
>> Once this is touched, almost everything needs to be remade.
>
> That's not surprising given what you reported.  This is the crux of the
> problem.  The build should not be finding limits.h there, but instead in
> the libc source tree (libc/include/limits.h).  Because of the complex
> #include_next dance between GCC's limits.h and libc's limits.h (via GCC's
> syslimits.h), figuring out how this is going wrong could be nontrivial.  It
> might be a new bug in trunk GCC's #include_next behavior, or it might be a
> strange confluence of "correct" behavior and the particular circumstances
> of your setup that we have just happened never to see before.
>
> So pick some one file that gets limits.h into its .d (aka .dt) file, run
> that one compilation command by hand, and figure out how the include nest
> is (not) working.

Thanks for the suggestion.

I'll look at the gcc commit log and see if there is anything
that looks suspect, and perhaps build an older gcc and try
to bisect the problem.  Otherwise, a frontal attack.

-- 
Michael Eager	 eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077



More information about the Libc-alpha mailing list