On 2/21/2023 9:39 AM, Paul Smith wrote:
On Tue, 2023-02-21 at 08:35 -0500, Ken Brown wrote:
makeĀ  check-TESTS
make[4]: Entering directory
'/home/kbrown/src/texlive/test.x86_64/Work/texk/kpathsea'
make[5]: Entering directory
'/home/kbrown/src/texlive/test.x86_64/Work/texk/kpathsea'

OK, I see the rule that generates the [5] recursion:

   $(TEST_SUITE_LOG): $(TEST_LOGS)
        @$(am__set_TESTS_bases); \
             ...

(I think).  Hm, this rule does contain $(MAKE) so it should be
automatically marked for recursion.  Maybe something weird about
AM_MAKEFLAGS?

Sorry for the iteration but can you run the build again, this time with
the "--trace" option and also editing the above rule (at line 1755 of
kpathsea/Makefile to add "set -x" as in:

   $(TEST_SUITE_LOG): $(TEST_LOGS)
        @$(set -x; am__set_TESTS_bases); \
             ...

There will likely be a lot of output.

Here it is.

Ken
Makefile:570: update target 'check-recursive' due to: target is .PHONY
fail=; \
if (target_option=k; case ${target_option-} in ?) ;; *) echo 
"am__make_running_with_option: internal error: invalid" "target option 
'${target_option-}' specified" >&2; exit 1;; esac; has_opt=no; 
sane_makeflags=$MAKEFLAGS; if { if test -z '0'; then false; elif test -n 
'x86_64-pc-cygwin'; then true; elif test -n '4.4.0.91' && test -n 
'/home/kbrown/src/texlive/test.x86_64/Work'; then true; else false; fi; }; then 
sane_makeflags=$MFLAGS; else case $MAKEFLAGS in *\\[\ \   ]*) bs=\\; 
sane_makeflags=`printf '%s\n' "$MAKEFLAGS" | sed "s/$bs$bs[$bs $bs   ]*//g"`;; 
esac; fi; skip_next=no; strip_trailopt () { flg=`printf '%s\n' "$flg" | sed 
"s/$1.*$//"`; }; for flg in $sane_makeflags; do test $skip_next = yes && { 
skip_next=no; continue; }; case $flg in *=*|--*) continue;; -*I) strip_trailopt 
'I'; skip_next=yes;; -*I?*) strip_trailopt 'I';; -*O) strip_trailopt 'O'; 
skip_next=yes;; -*O?*) strip_trailopt 'O';; -*l) strip_trailopt 'l'; 
skip_next=yes;; -*l?*) strip_trailopt 'l';; -[dEDm]) skip_next=yes;; -[JT]) 
skip_next=yes;; esac; case $flg in *$target_option*) has_opt=yes; break;; esac; 
done; test $has_opt = yes); then \
  failcom='fail=yes'; \
else \
  failcom='exit 1'; \
fi; \
dot_seen=no; \
target=`echo check-recursive | sed s/-recursive//`; \
case "check-recursive" in \
  distclean-* | maintainer-clean-*) list='auxdir/auxsub doc texk/kpathsea 
texk/ptexenc  libs utils texk' ;; \
  *) list='. doc texk/kpathsea texk/ptexenc  libs utils texk' ;; \
esac; \
for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (CDPATH="${ZSH_VERSION+.}:" && cd $subdir && make  $local_target) \
  || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
Making check in .
make[1]: Entering directory '/home/kbrown/src/texlive/test.x86_64/Work'
Makefile:1002: update target 'recurse' due to: target is .PHONY
fail= failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
  case $f in \
    *=* | --[!k]*);; \
    *k*) failcom='fail=yes';; \
  esac; \
done; \
list='texk/kpathsea texk/ptexenc '; for one_dir in $list; do \
  if test ! -f $one_dir/Makefile; then \
    test -d $one_dir || /usr/bin/mkdir -p $one_dir; \
    cmd=`cat subsubdir-conf.cmd | sed "s,auxdir/auxsub,$one_dir,g"`; \
    case " texk/kpathsea texk/ptexenc  " in \
      *" $one_dir "*) skip=;; \
      *) skip=' --disable-build';; \
    esac; \
    (cd $one_dir && echo "=== configuring in $one_dir (`pwd`)" && \
      if :; then echo "make: running /bin/sh $cmd$skip"; fi && \
      CONFIG_SHELL=/bin/sh && export CONFIG_SHELL && \
      eval /bin/sh $cmd$skip  || \
        { echo "=== configuring in $one_dir failed"; exit 1; }) && \
    if test "x$skip" = x; then \
      echo "Making all in $one_dir" && \
      (cd $one_dir && make  all); \
    fi || eval $failcom; \
  fi; \
done; test -z "$fail"
make[1]: Leaving directory '/home/kbrown/src/texlive/test.x86_64/Work'
Making check in doc
make[1]: Entering directory '/home/kbrown/src/texlive/test.x86_64/Work/doc'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/home/kbrown/src/texlive/test.x86_64/Work/doc'
Making check in texk/kpathsea
make[1]: Entering directory 
'/home/kbrown/src/texlive/test.x86_64/Work/texk/kpathsea'
Makefile:2096: update target 'check' due to: target is .PHONY
make  check-recursive
make[2]: Entering directory 
'/home/kbrown/src/texlive/test.x86_64/Work/texk/kpathsea'
Makefile:1642: update target 'check-recursive' due to: target is .PHONY
fail=; \
if (target_option=k; case ${target_option-} in ?) ;; *) echo 
"am__make_running_with_option: internal error: invalid" "target option 
'${target_option-}' specified" >&2; exit 1;; esac; has_opt=no; 
sane_makeflags=$MAKEFLAGS; if { if test -z '2'; then false; elif test -n 
'x86_64-pc-cygwin'; then true; elif test -n '4.4.0.91' && test -n 
'/home/kbrown/src/texlive/test.x86_64/Work/texk/kpathsea'; then true; else 
false; fi; }; then sane_makeflags=$MFLAGS; else case $MAKEFLAGS in *\\[\ \     
]*) bs=\\; sane_makeflags=`printf '%s\n' "$MAKEFLAGS" | sed "s/$bs$bs[$bs $bs   
]*//g"`;; esac; fi; skip_next=no; strip_trailopt () { flg=`printf '%s\n' "$flg" 
| sed "s/$1.*$//"`; }; for flg in $sane_makeflags; do test $skip_next = yes && 
{ skip_next=no; continue; }; case $flg in *=*|--*) continue;; -*I) 
strip_trailopt 'I'; skip_next=yes;; -*I?*) strip_trailopt 'I';; -*O) 
strip_trailopt 'O'; skip_next=yes;; -*O?*) strip_trailopt 'O';; -*l) 
strip_trailopt 'l'; skip_next=yes;; -*l?*) strip_trailopt 'l';; -[dEDm]) 
skip_next=yes;; -[JT]) skip_next=yes;; esac; case $flg in *$target_option*) 
has_opt=yes; break;; esac; done; test $has_opt = yes); then \
  failcom='fail=yes'; \
else \
  failcom='exit 1'; \
fi; \
dot_seen=no; \
target=`echo check-recursive | sed s/-recursive//`; \
case "check-recursive" in \
  distclean-* | maintainer-clean-*) list='. doc man win32' ;; \
  *) list='. doc man ' ;; \
esac; \
for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (CDPATH="${ZSH_VERSION+.}:" && cd $subdir && make  $local_target) \
  || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
Making check in .
make[3]: Entering directory 
'/home/kbrown/src/texlive/test.x86_64/Work/texk/kpathsea'
Makefile:2406: update target 'stamp-kpathsea' due to: Makefile
rm -f stamp-kpathsea; \
( echo '/* This is a generated file */'; \
  echo '/* collecting all public kpathsea headers. */'; \
  for f in config.h paths.h absolute.h c-dir.h c-fopen.h c-namemx.h c-pathch.h 
c-pathmx.h c-stat.h cnf.h concatn.h expand.h getopt.h line.h magstep.h 
pathsearch.h proginit.h readable.h tex-glyph.h tex-hush.h tex-make.h variable.h 
version.h; do \
    echo "#include <kpathsea/$f>"; \
  done ) >kpathsea.tmp && \
if cmp -s kpathsea.h kpathsea.tmp 2>/dev/null; then \
  echo "kpathsea.h is unchanged"; \
else \
  echo "generated kpathsea.h"; \
  cp kpathsea.tmp kpathsea.h; \
fi && rm -f kpathsea.tmp && date >stamp-kpathsea
kpathsea.h is unchanged
Makefile:2094: update target 'check-am' due to: target is .PHONY
make  check-TESTS
make[4]: Entering directory 
'/home/kbrown/src/texlive/test.x86_64/Work/texk/kpathsea'
Makefile:1862: update target 'check-TESTS' due to: target is .PHONY
list='tests/cnfline.log tests/cnfnewline.log tests/cnfnull.log 
tests/cnfprog.log tests/kpseaccess.log tests/kpsereadlink.log 
tests/kpsestat.log tests/kpsewhich.log';           test -z "$list" || rm -f 
$list
list='tests/cnfline.trs tests/cnfnewline.trs tests/cnfnull.trs 
tests/cnfprog.trs tests/kpseaccess.trs tests/kpsereadlink.trs 
tests/kpsestat.trs tests/kpsewhich.trs'; test -z "$list" || rm -f $list
test -z "test-suite.log" || rm -f test-suite.log
set +e; bases='tests/cnfline.log tests/cnfnewline.log tests/cnfnull.log 
tests/cnfprog.log tests/kpseaccess.log tests/kpsereadlink.log 
tests/kpsestat.log tests/kpsewhich.log'; bases=`for i in $bases; do echo $i; 
done | sed 's/\.log$//'`; bases=`echo $bases`; \
log_list=`for i in $bases; do echo $i.log; done`; \
trs_list=`for i in $bases; do echo $i.trs; done`; \
log_list=`echo $log_list`; trs_list=`echo $trs_list`; \
make  test-suite.log TEST_LOGS="$log_list"; \
exit $?;
make[5]: Entering directory 
'/home/kbrown/src/texlive/test.x86_64/Work/texk/kpathsea'
make[5]: not recursive -2,-2
make[5]: warning: jobserver unavailable: using -j1.  Add '+' to parent make 
rule.

Reply via email to