Hi Bruno, Take two.
> Le 5 mai 2019 à 11:30, Bruno Haible <[email protected]> a écrit : > > After installing GNU m4 1.4.18, bison 3.3.90 builds but "make check" > (or "gmake check") fails. See the attached log files. > log1 - configure > log2 - make > log3 - make check > > Bruno > <log1.txt><log2.txt><log3.txt> Your logs show: > CC examples/c/lexcalc/lexcalc-parse.o > LEX examples/c/lexcalc/scan.c > CC examples/c/lexcalc/lexcalc-scan.o > gcc: error: ../examples/c/lexcalc/scan.c: No such file or directory > gcc: fatal error: no input files The error from GCC is that it does not see ../examples/c/lexcalc/scan.c, which is good, because it is not expected to be there: it's in the build tree, not the source tree, so it should be examples/c/lexcalc/scan.c. But the line before > LEX examples/c/lexcalc/scan.c shows that this file should be there. And there is no reference to $(srcdir)/examples/c/lexcalc/scan.c, AFAICT, except this Makefile snippet > examples/c/lexcalc/lexcalc-scan.o: examples/c/lexcalc/scan.c > $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) > $(examples_c_lexcalc_lexcalc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT > examples/c/lexcalc/lexcalc-scan.o -MD -MP -MF > examples/c/lexcalc/$(DEPDIR)/lexcalc-scan.Tpo -c -o > examples/c/lexcalc/lexcalc-scan.o `test -f 'examples/c/lexcalc/scan.c' || > echo '$(srcdir)/'`examples/c/lexcalc/scan.c > $(AM_V_at)$(am__mv) examples/c/lexcalc/$(DEPDIR)/lexcalc-scan.Tpo > examples/c/lexcalc/$(DEPDIR)/lexcalc-scan.Po > # $(AM_V_CC)source='examples/c/lexcalc/scan.c' > object='examples/c/lexcalc/lexcalc-scan.o' libtool=no \ > # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ > # $(AM_V_CC_no)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) > $(examples_c_lexcalc_lexcalc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c > -o examples/c/lexcalc/lexcalc-scan.o `test -f 'examples/c/lexcalc/scan.c' || > echo '$(srcdir)/'`examples/c/lexcalc/scan.c which correctly uses the build tree first, and then the source tree: > `test -f 'examples/c/lexcalc/scan.c' || echo > '$(srcdir)/'`examples/c/lexcalc/scan.c So I have no idea what is going on here. AFAICT, the Makefile is correct. I guess this is a portability issue with non-GNU Make, but I fail to spot where the problem might be.
