build failure: No rule to make target '/usr/include/linux/limits.h'

Joseph Myers joseph@codesourcery.com
Tue Sep 5 20:56:00 GMT 2017


On Tue, 5 Sep 2017, Szabolcs Nagy wrote:

> somehow glibc managed to include stuff from outside of
> the source or build tree.. i don't immediately see why.

Are there any .d files containing references to files from D/include?  
(Depending on whether you're using --with-headers to point to an external 
set of kernel headers, references to kernel headers in /usr/include may be 
expected.)

> anyway it would be nice if glibc *never* tried to overwrite
> headers in /usr/include/* while i'm running make.

Dependencies for such files are how "make install" works.  There are lots 
of such rules, both in the checked-in sources and in sysd-rules, but I 
don't know why one would involve a dependency on 
D/build/../include/linux/limits.h.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Libc-alpha mailing list