[Swan-dev] missing bison masked by new Makefiles?

Andrew Cagney andrew.cagney at gmail.com
Mon Feb 16 19:54:33 EET 2015


This extract from make -d should help explain the problem:

      No implicit rule found for `parser.y'.
      Finished prerequisites of target file `parser.y'.
     No need to remake target `parser.y'; using VPATH name
`/home/cagney/libreswan-makefiles/lib/libipsecconf/parser.y'.
    Finished prerequisites of target file `parser.tab.c'.
   Must remake target `parser.tab.c'.
Invoking recipe from ../../../lib/libipsecconf/Makefile:60 to update
target `parser.tab.c'.
Putting child 0x21b7130 (parser.tab.c) PID 18227 on the chain.
Live child 0x21b7130 (parser.tab.c) PID 18227
bison rule target is parser.tab.c forcing fail ...
Reaping winning child 0x21b7130 PID 18227
exit 1
Live child 0x21b7130 (parser.tab.c) PID 18228
Reaping losing child 0x21b7130 PID 18228
Removing child 0x21b7130 PID 18228 from chain.
   Failed to remake target file `parser.tab.c'.
  Finished prerequisites of target file `Makefile.depend'.
 Giving up on target file `Makefile.depend'.
 Pruning file `Makefile.depend'.

It comes from this:

Makefile.depend: $(SRCS) $(LIBRESWANSRCDIR)/lib/libipsecconf/Makefile
    (ls $(wildcard $(addprefix
${LIBRESWANSRCDIR}/lib/libipsecconf/,$(SRCS))) | grep '\.c' | xargs
${CC} -MM ${CFLAGS} ${PORTINCLUDE} ${ALLFLAGS}) >Makefile.depend
-include Makefile.depend

The only thing explicitly dependent on parser.tab.c is Makefile.depend
and that rule is allowed to fail - long standing problem.


More information about the Swan-dev mailing list