Hi,
I'm seeing this error:
/Users/tobi/src/hggcc/build/./prev-gcc/xgcc
-B/Users/tobi/src/hggcc/build/./prev-gcc/
-B/usr/local/i386-apple-darwin8.11.1/bin/
-B/usr/local/i386-apple-darwin8.11.1/bin/
-B/usr/local/i386-apple-darwin8.11.1/lib/ -isystem
/usr/local/i386-apple-darwin8.11.1/include -isystem
/usr/local/i386-apple-darwin8.11.1/sys-include -c -g -O2
-fomit-frame-pointer -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototype
-Wmissing-prototypes -Wcast-qual -Wold-style-definition -Wc++-compat
-Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Werror -fno-common -DHAVE_CONFIG_H -I. -I.
-I../../gcc -I../../gcc/. -I../..
gcc/../include -I./../intl -I../../gcc/../libcpp/include -I/sw/include
-I../../gcc/../libdecnumber -I../../gcc/../libdecnumber/dpd
-I../libdecnumber ../../gcc/
retty-print.c -o pretty-print.o
cc1: warnings being treated as errors
../../gcc/pretty-print.c: In function 'identifier_to_locale':
../../gcc/pretty-print.c:1016: error: passing argument 2 of 'libiconv'
from incompatible pointer type
/sw/include/iconv.h:83: note: expected 'char **' but argument is of type
'const char **'
make[3]: *** [pretty-print.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [all-stage2-gcc] Error 2
make[1]: *** [stage2-bubble] Error 2
make: *** [all] Error 2
My libiconv identifies itself as
#define _LIBICONV_VERSION 0x010B /* version number: (major<<8) + minor */
The complaint is about:
ICONV_CONST char *inbuf = CONST_CAST (char *, ident);
[...snip...]
iconv_ret = iconv (cd, &inbuf, &inbytesleft,
&outbuf, &outbytesleft);
Cheers,
- Tobi