automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question on compile & test / automake version 1.9.6 / test yacc6.tes


From: Ralf Wildenhues
Subject: Re: Question on compile & test / automake version 1.9.6 / test yacc6.test
Date: Mon, 27 Nov 2006 21:45:24 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

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            address@hidden
 Didier Cassirame       address@hidden
 Dieter Baron           address@hidden
+Dieter Jurzitza                address@hidden
 Dmitry Mikhin          address@hidden
 Doug Evans             address@hidden
 Duncan Gibson          address@hidden
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

[Prev in Thread] Current Thread [Next in Thread]