From: Jack H. <ho...@br...> - 2010-04-30 03:27:17
|
On Thu, Apr 29, 2010 at 09:12:35PM -0500, Peter O'Gorman wrote: > On 04/29/2010 11:39 AM, Jack Howarth wrote: > > FYI, I posted packaging for a replacement llvm-clang-2.7-1 > > package (now containing both llvm and clang), llvm-gcc42-2.7-1, > > and a new dragonegg-gcc-2.7-1 package to fink tracking... > > > > https://sourceforge.net/tracker/?func=detail&aid=2993939&group_id=17203&atid=414256 > > > > The dragonegg-gcc package builds dragonegg-gcc45 against the new > > gcc45-4.5.0-1001 packaging (which provides the necessary > > gcc45-compiler splitoff). Compiler wrappers are installed with the > > names de-gcc45. de-g++45, etc to automate the process of invoking > > the FSF gcc compiler with the llvm dragonegg plugin. > > Jack > > ps As before, if you want to play with LTO, the most current libLTO.dylib > > packaged in llvm has to be moved into /usr/lib over the system one. > > Unfortunately ld expects libLTO in a specific place and I've not puzzled > > out a way to override this behvior without moving libLTO.dylib. > > Hi Jack > > I haven't had a look at these yet, but had a thought about libLTO. > > If you put it in e.g. /sw/opt/llvm27/lib/libLTO.dylib (dunno where > you're putting it, just chose this for example's sake), and then have a > symlink from /sw/opt/llvm27/bin/ld to /usr/bin/ld, then running > /sw/opt/llvm27/bin/ld should load the LTO library. You can check this > with ld -v (compare /usr/bin/ld -v and /Developer/usr/bin/ld -v output > for an example). > > Peter Peter, Actually, I abandoned using --prefix=%p/lib/llvm-%v because it causes clang to fail to install the symlink for clang++ with the error... llvm[4]: ======= Finished Linking Release Executable clang (without symbols) llvm[4]: Installing Release /sw/src/fink.build/root-llvm-clang-2.7-1/sw/lib/llvm-2.7/bin/clang make[4]: *** No rule to make target `/sw/lib/llvm-2.7/bin', needed by `/sw/src/fink.build/root-llvm-clang-2.7-1/sw/lib/llvm-2.7/bin/clang++'. Stop. make[3]: *** [install] Error 1 make[2]: *** [install] Error 1 make[1]: *** [clang/.makeinstall] Error 2 make: *** [install] Error 1 I am attaching a llvm-clang-x86_64.info which uses wrappers for llvm-clang to find a ld symlink which will use the llvm-2.7 libLTO. This fails to build with the error above. Any ideas how to fix clang/tools/driver/CMakeLists.txt to avoid this error? Jack |