This is the mail archive of the libc-alpha@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: build failure: No rule to make target '/usr/include/linux/limits.h'


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


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