Subject: bug#76409: Failure in parallel make?

From: Pádraig Brady <[email-masked]>
Date: Sat, 22 Feb 2025 13:24:42 +0000

On 19/02/2025 00:29, Collin Funk wrote:
> "Philip Rowlands" <[email-masked]> writes:
> 
>> Is there a dependency problem in the generated Makefile? FWIW I see similar errors trying to build src/cp and src/mv.
>>
>> src/sort$(EXEEXT): $(src_sort_OBJECTS) $(src_sort_DEPENDENCIES) $(EXTRA_src_sort_DEPENDENCIES) src/$(am__dirstamp)
>>          @rm -f src/sort$(EXEEXT)
>>          $(AM_V_CCLD)$(LINK) $(src_sort_OBJECTS) $(src_sort_LDADD) $(LIBS)
>> src/split.$(OBJEXT): src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
>> src/temp-stream.$(OBJEXT): src/$(am__dirstamp) \
>>          src/$(DEPDIR)/$(am__dirstamp)
> 
> Neither 'make -j2 src/sort' or 'make src/sort' work for me.
> 
> Running an individual target wont work since the dependencies in
> src/.deps/sort.Po, for example, aren't generated.

Right. That's an automake limitation discussed at:
https://www.gnu.org/software/automake/manual/html_node/Sources.html
I.e. BUILT_SOURCES aren't dependencies of arbitrary targets,
only top level ones like 'all', 'check' etc.

cheers,
Pádraig