This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: build failure: No rule to make target '/usr/include/linux/limits.h'
On Sep 06 2017, Joseph Myers <joseph@codesourcery.com> wrote:
> 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).
I'd guess it's coming from vpath $(common-objpfx).
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."