[cfe-dev] -O4 with #include <iostream>

Chris Lattner clattner at apple.com
Sun Jul 4 15:09:38 PDT 2010

On Jul 4, 2010, at 12:24 PM, Toralf Niebuhr wrote:

> Am 04.07.2010 um 18:50 schrieb Chris Lattner:
>> On Jul 4, 2010, at 2:47 AM, Toralf Niebuhr wrote:
>>> I recently asked why something doesn't compile. With the latest trunk it compiles fine under some conditions.
>> What version of clang are you using?  The code that is causing the error has been completely removed.  Can you try with mainline?
> I am on the current llvm (r107591)/clang(r107591) trunk
> Both repositories are up to date. I use the URLs to the svn from this site: http://clang.llvm.org/get_started.html
> When compiling with  -v I get "clang -cc1 version 2.8 based upon llvm 2.8svn hosted on x86_64-apple-darwin10"
> I attached the complete error log that I get with the -v option set.

Aha, thanks for the log.  The issue here is that you're using ToT clang with an old version of the linker support library "liblto".  Please copy over /usr/lib/libLTO.dylib (and /Developer/usr/lib/libLTO.dylib) with the libLTO built with your ToT checkout of LLVM.


More information about the cfe-dev mailing list