This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/55293] bootstrap failure: invalid conversion from 'char**' to 'const char**' [-fpermissive]
- From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 13 Nov 2012 00:21:03 +0000
- Subject: [Bug bootstrap/55293] bootstrap failure: invalid conversion from 'char**' to 'const char**' [-fpermissive]
- Auto-submitted: auto-generated
- References: <bug-55293-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55293
--- Comment #9 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2012-11-13 00:21:03 UTC ---
> pretty-print.c already does:
>
> ICONV_CONST char *inbuf = CONST_CAST (char *, ident);
>
> and ICONV_CONST should be set to 'const' by gcc/configure (using the macros
> from config/iconv.m4)
>
> Could configure be finding GNU libiconv, with a correct signature, so
> ICONV_CONST is empty, but during compilation of pretty-print.c the system
> iconv.h is found instead, which needs ICONV_CONST?
Yup, that's a well-known scenario on Solaris, there is a dozen of PRs about
this in the database I think.