[cfe-dev] ambiguous function call

Eli Friedman eli.friedman at gmail.com
Fri Aug 24 19:26:50 PDT 2012


On Fri, Aug 24, 2012 at 7:06 PM, Shang Yu <yusunn at gmail.com> wrote:
> Hi dear all,
> I'm trying to compile GNU binutils-2.22 with clang , when compile the
> gold cpmponent, clang report the following error,
> /home/yushang/src/binutils-2.22/gold/script.cc:3352:3: error: call to
> 'yyerror' is ambiguous
>   yyerror (closurev, _("GOLD does not currently support INCLUDE directives"));
>   ^~~~~~~
> /home/yushang/src/binutils-2.22/gold/script-c.h:226:1: note: candidate function
> yyerror(void* closure, const char*);
> ^
> /home/yushang/src/binutils-2.22/gold/script.cc:2607:1: note: candidate function
> yyerror(void* closurev, const char* message)
> ^
> if compile with gcc, it will be ok. I configured the binutils as follows:
> ~/src/binutils-2.22/configure \
> CC=clang \
> CXX=clang++ \
> CFLAGS="-Wno-unused-value -Wno-string-plus-int -Wno-empty-body
> -Wno-self-assign" \
> CXXFLAGS="-Wno-mismatched-tags" \
> --enable-gold=default \
> --disable-nls \
> --target=arm-linux
> Many thanks!!

Please file a bug report at llvm.org/bugs/ , and attach preprocessed source.

-Eli



More information about the cfe-dev mailing list