This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Possible bug in gcc/Makefile.in
- To: gcc at gcc dot gnu dot org
- Subject: Possible bug in gcc/Makefile.in
- From: Arnaud Charlet <charlet at ACT-Europe dot FR>
- Date: Fri, 2 Nov 2001 18:06:13 +0100
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
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.
Arno