Hi,

got this error message recently (not really reproducible) while building
texinfo-4.11 in parallel - actually it was during 'gmake install -j4':

----
make[3]: Entering directory 
`/prefix/var/tmp/portage/sys-apps/texinfo-4.11-r1/work/texinfo-4.11/info'
rm -f doc.c key.c funs.h
make[3]: Nothing to be done for `install-data-am'.
..//info/makedoc ./session.c ./echo-area.c ./infodoc.c ./m-x.c ./indices.c 
./nodemenu.c ./footnotes.c ./variables.c
rm -f doc.c key.c funs.h
i386-pc-solaris2.10-gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I../gnulib/lib 
-I../gnulib/lib -DLOCALEDIR=\"/prefix/usr/share/locale\" 
-DINFODIR=\"/prefix/usr/share/info\" -DINFODIR2=\"/prefix/usr/share/info\" 
-I/prefix/usr/include  -g -O2 -MT key.o -MD -MP -MF .deps/key.Tpo -c -o key.o 
key.c
..//info/makedoc ./session.c ./echo-area.c ./infodoc.c ./m-x.c ./indices.c 
./nodemenu.c ./footnotes.c ./variables.c
i386-pc-solaris2.10-gcc: key.c: No such file or directory
i386-pc-solaris2.10-gcc: no input files
make[3]: *** [key.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory 
`/prefix/var/tmp/portage/sys-apps/texinfo-4.11-r1/work/texinfo-4.11/info'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory 
`/prefix/var/tmp/portage/sys-apps/texinfo-4.11-r1/work/texinfo-4.11/info'
make[1]: *** [install] Error 2
make[1]: Leaving directory 
`/prefix/var/tmp/portage/sys-apps/texinfo-4.11-r1/work/texinfo-4.11/info'
make: *** [install-recursive] Error 1
----

I think this must be because of these lines in info/Makefile:

----
        generated_sources = doc.c key.c funs.h
        doc.c: key.c
        key.c: funs.h
        ...
        $(generated_sources): makedoc$(EXEEXT) $(cmd_sources)
                rm -f $(generated_sources)
                $(top_builddir)/$(native_tools)/info/makedoc $(cmd_sources)
----

Attached patch should fix this.

Thanks!

/haubi/
--- info/Makefile.am.orig	2008-03-20 16:25:19.703497000 +0100
+++ info/Makefile.am	2008-03-20 16:26:00.652312000 +0100
@@ -71,7 +71,7 @@
   $(srcdir)/footnotes.c $(srcdir)/variables.c
 
 # The $(EXEEXT) should be added by Automake, but isn't. Fine.
-$(generated_sources): makedoc$(EXEEXT) $(cmd_sources)
+funs.h: makedoc$(EXEEXT) $(cmd_sources)
 	rm -f $(generated_sources)
 	$(top_builddir)/$(native_tools)/info/makedoc $(cmd_sources)
 

Reply via email to