can't get it compiled

Is this the right mailing list ?

I want to compile llvm-2.5 under Fedora 11
with
gcc (GCC) 4.4.0 20090506 (Red Hat 4.4.0-4)

and get

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 ?

regards

Dietmar

Is this the right mailing list ?

I want to compile llvm-2.5 under Fedora 11
with
gcc (GCC) 4.4.0 20090506 (Red Hat 4.4.0-4)

and get

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 ?

LLVM 2.5 is already available as an RPM from Fedora. You only need to
build LLVM-GCC if you want it....

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] glibc 2.10 news - Ulrich Drepper — LiveJournal