This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: disable-nls breaks build
- From: "Paulo Matos" <pmatos at broadcom dot com>
- To: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Wed, 1 May 2013 10:07:27 +0000
- Subject: RE: disable-nls breaks build
- References: <19EB96622A777C4AB91610E763265F461C4A77 at SJEXCHMB14 dot corp dot ad dot broadcom dot com>
After a couple of tests, this failure seems to have nothing to do with nls. Even if I remove all the flags it still fails.
I guess it can only be a case of tool versions:
Building with GCC 4.7.2, gmp 4.3.0, mpfr 2.4.1, mpc 0.8.1. Would you think any of these could be affecting the build?
Cheers,
Paulo Matos
> -----Original Message-----
> From: gcc-owner@gcc.gnu.org [mailto:gcc-owner@gcc.gnu.org] On Behalf Of Paulo
> Matos
> Sent: 30 April 2013 14:33
> To: gcc@gcc.gnu.org
> Subject: disable-nls breaks build
>
> Hello,
>
> I just cloned gcc because of an error I was seeing in my port. It seems to me
> that the problem is the --disable-nls option but I haven't research yet why
> this is happening.
>
> If I configure with:
> ../gcc/configure --prefix=/home/pmatos/work/tmp/install-gcc/ --exec-
> prefix=/home/pmatos/work/tmp/install-gcc/x86_64-rhel5 --disable-nls --enable-
> checking --disable-shared --enable-lto --enable-languages=c --enable-
> werror-always
>
> and make.
> I get after awhile:
> ../../gcc/gcc/langhooks.c: In function 'void
> lhd_print_error_function(diagnostic_context*, const char*,
> diagnostic_info*)':
> ../../gcc/gcc/langhooks.c:457:41: error: unknown conversion type character
> 'r' in format [-Werror=format]
> ../../gcc/gcc/langhooks.c:457:41: error: format '%d' expects argument of type
> 'int', but argument 5 has type 'const char*' [-Werror=format]
> ../../gcc/gcc/langhooks.c:457:41: error: unknown conversion type character
> 'R' in format [-Werror=format]
> ../../gcc/gcc/langhooks.c:457:41: error: too many arguments for format [-
> Werror=format-extra-args]
> ../../gcc/gcc/langhooks.c:462:31: error: unknown conversion type character
> 'r' in format [-Werror=format]
> ../../gcc/gcc/langhooks.c:462:31: error: format '%d' expects argument of type
> 'int', but argument 5 has type 'const char*' [-Werror=format]
> ../../gcc/gcc/langhooks.c:462:31: error: unknown conversion type character
> 'R' in format [-Werror=format]
> ../../gcc/gcc/langhooks.c:462:31: error: too many arguments for format [-
> Werror=format-extra-args]
>
> I am unsure about how nls works and what's causing this since pp_printf seems
> to be fine with %r, %R. I guess the important detail is that the string is
> surrounded by _(...).
>
> Any hints on this?
>
> Paulo Matos
>