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]

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.


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