This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
libcpp cross build failures
- From: Richard Earnshaw <Richard dot Earnshaw at arm dot com>
- To: Paolo Bonzini <bonzini at gnu dot org>, gcc-patches at gcc dot gnu dot org
- Date: Mon, 24 May 2004 15:45:35 +0100
- Subject: libcpp cross build failures
On an x86-linux -> arm-elf cross I'm now getting the following build
error:
if gcc -DHAVE_CONFIG_H -I. -I/home/rearnsha/gnusrc/egcs-cross/libcpp
-I. -I/home/rearnsha/gnusrc/egcs-cross/libcpp/../include
-I/home/rearnsha/gnusrc/egcs-cross/libcpp
-I/home/rearnsha/gnusrc/egcs-cross/libcpp/../intl
-I/home/rearnsha/gnusrc/egcs-cross/libcpp/include
-DLOCALEDIR="\"/work/rearnsha/gnu/testinstall/share/locale\"" -g -O2
-MT errors.o -MD -MP -MF ".deps/errors.Tpo" -c -o errors.o
/home/rearnsha/gnusrc/egcs-cross/libcpp/errors.c; \
then mv -f ".deps/errors.Tpo" ".deps/errors.Po"; else rm -f
".deps/errors.Tpo"; exit 1; fi
/home/rearnsha/gnusrc/egcs-cross/libcpp/errors.c:118:34: macro
"dgettext" passed 2 arguments, but takes just 1
...
And in libcpp/system.h we see:
#ifdef ENABLE_NLS
#include <libintl.h>
#else
/* Stubs. */
# undef dgettext
# define dgettext(msgid) (msgid)
#endif
#ifndef _
# define _(msgid) dgettext (PACKAGE, msgid)
#endif
So make your mind up. Does dgettext take one argument or two?
R.