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
On 08/17/2009 11:44 AM, Dietmar Schaefer wrote:> 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....> > regards > > > Dietmar-- Kevin J. Cummings kjchome at rcn.com cummings at kjchome.homeip.net cummings at kjc386.framingham.ma.us Registered Linux User #1232 (http://counter.li.org)
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