Hello Dieter,

* Jurzitza, Dieter wrote on Wed, Nov 22, 2006 at 11:53:34AM CET:
> The point is:
> I cannot compile successfully (or, better to say, I cannot run
> yacc6.test successfully) if I am using
> 
> make -j3
> 
> The message that comes is "foo.h" and / or "bar.h" not found. The
> reason (I guess) is the fact that the parallel processing starts
> compiling the main.c file (out of yacc6.test) *before* the header
> files have been created.

Bingo! Thanks for the bug report.  The test is wrong: it should put the
headers into BUILT_SOURCES, as documented in
<http://sources.redhat.com/automake/automake.html#Yacc-and-Lex>.

Does the patch below fix the failure for you?  OK to apply?

Cheers,
Ralf

        * tests/yacc6.test: Add the generated headers to `BUILT_SOURCES'
        as documented in the manual.  Fixes parallel make failure.
        Report by Dieter Jurzitza.
        * THANKS: Update.

Index: THANKS
===================================================================
RCS file: /cvs/automake/automake/THANKS,v
retrieving revision 1.297
diff -u -r1.297 THANKS
--- THANKS      28 Oct 2006 09:51:57 -0000      1.297
+++ THANKS      27 Nov 2006 20:25:21 -0000
@@ -64,6 +64,7 @@
 Diab Jerius            [EMAIL PROTECTED]
 Didier Cassirame       [EMAIL PROTECTED]
 Dieter Baron           [EMAIL PROTECTED]
+Dieter Jurzitza                [EMAIL PROTECTED]
 Dmitry Mikhin          [EMAIL PROTECTED]
 Doug Evans             [EMAIL PROTECTED]
 Duncan Gibson          [EMAIL PROTECTED]
Index: tests/yacc6.test
===================================================================
RCS file: /cvs/automake/automake/tests/yacc6.test,v
retrieving revision 1.12
diff -u -r1.12 yacc6.test
--- tests/yacc6.test    6 Jun 2006 20:42:36 -0000       1.12
+++ tests/yacc6.test    27 Nov 2006 20:25:21 -0000
@@ -57,6 +57,7 @@
 foo_SOURCES = foo.y main.c
 foo_CPPFLAGS = -DFOO
 bar_SOURCES = bar.y main.c
+BUILT_SOURCES = foo.h bar.h
 END
 
 cat > sub/foo.y << 'END'


Reply via email to