This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch, libgfortran] Fix m4 file generation


:REVIEWMAIL:

m4 -Dfile=generated/_abs_c4.F90 -I../../../../trunk2/libgfortran/ m4 specific.m4 > generated/_abs_c4.F90
/bin/sh: generated/_abs_c4.F90: No such file or directory

This is exceedingly strange. My patch didn't touch that particular line in Makefile.am, precicely because I got that error when I removed $(srcdir).

OK, I understand; I made a mistake yesterday when applying your patch.


So, your patch is OK, although I would have liked better to understand why we need to special-case the specific* files. Also, could you add the following patch before you commit:

Index: Makefile.am
===================================================================
--- Makefile.am (revision 121680)
+++ Makefile.am (working copy)
@@ -723,7 +723,7 @@
        $(M4) -Dfile=$@ -I$(srcdir)/m4 specific2.m4 > $(srcdir)/$@
$(gfor_misc_specifics): m4/misc_specifics.m4 m4/head.m4
-       m4 -Dfile=$@ -I$(srcdir)/m4 misc_specifics.m4 > $(srcdir)/$@
+       $(M4) -Dfile=$@ -I$(srcdir)/m4 misc_specifics.m4 > $(srcdir)/$@
## end of maintainer mode only rules
endif


Did the version before the patch work for you?

No.



Thanks, FX


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]