John Tytgat wrote on Sep 08, 2011 12:57 AM : > In message <[email protected]> "Alan Buckley" <[email protected]> wrote: [snip output from my failure]
> > It looks like this cloog item can’t find libstdc++. How do I fix this? > > > First of all, CLooG-PPL is optional, so you can dance around this > problem by setting GCC_USE_PPL_CLOOG to no in gcc4/Makefile. > Secondly, CLooG's Makefile is in fact wrong by using gcc to link libraries > which do require C++ libraries (the confusion is that CLooG itself is C > only). The real trouble is that the PPL version of CLooG is a bit hacked > by its developers and not really going to be maintained in future (in > gcc 4.7 this will be switched to CLooG-ISL instead). > Perhaps the following is better workaround: locate CROSS_GCC_CONFIG_ARGS in > gcc4/Makefile which specifies --with-host-libstdcxx, change its value into: > --with_host-libstdcxx=/usr/lib/libstdc++.so.6 > Does that solve your problem ? I seemed have to replace all occurance of –Wl,lstdc++ with the above for all the places –with_host-libstdcxx was used otherwise I got the same failure in other places. Once these were changed gcc4 compiled successfully – Thanks. > If we really want to know why libstdc++ does not get found on your > system, try: > $ cd builddir/cross-cloog > $ gcc -v -Wall -fomit-frame-pointer -g -O2 -o cloog cloog.o -Wl,-lstdc++ > ...[snip]... > I.e. add the -v option to gcc and look at the -L options specified with > the collect2 line (last line). In my case I have one which says > -L/usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../.. and in /usr/lib I do have > libstdc++.so.6 file. My compiler location is different as expected (usr/lib/gcc/i486-linux-gnu/4.4.5) but I do have the equivalent paths in my output and /usr/lib did have a libstdc++.so.6 file. Thanks for looking into this John and getting me running again. Regards, Alan
_______________________________________________ GCCSDK mailing list [email protected] Bugzilla: http://www.riscos.info/bugzilla/index.cgi List Info: http://www.riscos.info/mailman/listinfo/gcc Main Page: http://www.riscos.info/index.php/GCCSDK
