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