[LLVMdev] can't get it compiled

Christoph Erhardt ChristophErhardt at gmx.de
Mon Aug 17 09:52:29 PDT 2009


Hi Dietmar,

> In file included from Signals.cpp:31:
> Unix/Signals.inc: In function ‘void<unnamed>::PrintStackTrace()’:
> Unix/Signals.inc:81: error: invalid conversion from ‘const char*’ to ‘char*’
> Unix/Signals.inc:96: error: invalid conversion from ‘const char*’ to ‘char*’
> make[1]: *** 
> [/home/dietmar/Download/llvm-2.5/lib/System/Release/Signals.o] Error 1
> 
> 
> any hints ?
Fedora 11 includes glibc 2.10, which brought a change in the return type
of strrchr() & Co. [1] This issue is already fixed in SVN. You simply
have to replace "char *name" by "const char *name" in both lines.

Christoph


[1] http://udrepper.livejournal.com/20948.html



More information about the llvm-dev mailing list