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

Joseph Myers joseph@codesourcery.com
Wed Sep 6 14:47:00 GMT 2017


On Wed, 6 Sep 2017, Szabolcs Nagy wrote:

> On 06/09/17 11:58, Andreas Schwab wrote:
> > On Sep 06 2017, Szabolcs Nagy <szabolcs.nagy@arm.com> wrote:
> > 
> >> stracing make it seems make fstats about 400 different
> >> paths ending in /linux before it finds
> >>
> >> D/build/../include/linux/limits.h
> > 
> > Where does that file come from?
> > 
> 
> there must be a broken
> 
> $(prefix)/include/%.h: ../include/%.h
> 	install ...
> 
> rule somewhere that is invoked from D/build.

make generally gets run with a working directory in the source tree, not 
the build tree (and uses the $(..) variable which ought to be empty at top 
level, ../ in a subdirectory).  So getting build/../ is particularly odd 
(srcdir/../ would require fewer things to be wrong, though of course it 
shouldn't appear either).

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Libc-alpha mailing list