This is the mail archive of the gcc@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]

Re: Possible bug in gcc/Makefile.in


On Fri, 2 Nov 2001, Arnaud Charlet wrote:
> When trying to build GCC 3.1 on Solaris, we get the following error:
>
> [...]
> test -d po || mkdir po
> : --statistics po/sv.po -o po/sv.gmo
> /bin/sh ./move-if-change po/sv.gmo ./po/sv.gmo
> mv: cannot access po/sv.gmo
> make: *** [po/sv.gmo] Error 2

Today, I got the same on i686-pc-linux-gnu, a Debian "unstable/testing"
box.

> Which seems to be due to the following excerpt in gcc/Makefile.in:
>
> # Update files in $(srcdir) atomically.
> .po.gmo:
> 	test -d po || mkdir po
> 	$(GMSGFMT) --statistics $< -o $@
> 	$(SHELL) $(srcdir)/move-if-change $@ $(srcdir)/$@
>
> When GMSGFMT is replaced by ':' by configure (no gnu msgfmt available),
> this rule will still try to execute move-if-change which will fail, since
> there is no .gmo file generated.

The corresponding patch is:

date: 2001/10/31 17:39:49;  author: zack;  state: Exp;  lines: +76 -13
        * Makefile.in (INTL_TARGETS, POSUB): Delete all references.
        (INTL_SUBDIRS): Just intl.
        (.SUFFIXES): Add .gmo .po .pox.
        (native): Also depend on build-@POSUB@.
        (intl.all, intl.install): Depend on config.h and things it includes.
        (po-generated): New target; depend on c-parse.c and tradcif.c.
        (install-normal): Also depend on install-@POSUB@.
        (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): New variables.
        (build-, install-, build-po, update-po, install-po,
        .po.gmo, .po.pox, $(PACKAGE).pot, po/$(PACKAGE).pot): New rules.
        :

Gerald
-- 
Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/


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