Subject: Re: bug#76409: Failure in parallel make?

From: Collin Funk <[email-masked]>
Date: Tue, 18 Feb 2025 16:29:31 -0800

"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.

To demonstrate:

    $ git clean -xdf
    $ ./bootstrap
    $ ./configure
    $ make src/sort
      CC       src/sort.o
    In file included from src/sort.c:32:
    src/system.h:41:10: fatal error: configmake.h: No such file or directory
       41 | #include "configmake.h"
          |          ^~~~~~~~~~~~~~
    compilation terminated.
    make: *** [Makefile:12898: src/sort.o] Error 1
    $ cat src/.deps/sort.Po
    # dummy
    $ make
    $ make clean
    $ head -n 5 src/.deps/sort.Po
    src/sort.o: src/sort.c /usr/include/stdc-predef.h lib/config.h \
     /usr/lib/gcc/x86_64-redhat-linux/14/include/stdbool.h \
     /usr/include/assert.h /usr/include/features.h \
     /usr/include/features-time64.h /usr/include/bits/wordsize.h \
     /usr/include/bits/timesize.h /usr/include/sys/cdefs.h \
    $ make src/sort
    $ ./src/sort --version
    sort (GNU coreutils) 9.6.22-7eada

Collin