[cfe-dev] too slow to build clang

Chris Lattner clattner at apple.com
Mon Jan 19 13:23:32 PST 2009


On Jan 19, 2009, at 1:13 PM, Sebastian Redl wrote:

> Douglas Gregor wrote:
>>
>> Clang and LLVM are relatively large, so it does take some time to
>> compile them. The biggest issue is often memory: does your VMware
>> virtual machine have at least 1 GB memory?
>>
> And more! My computer has 1GB of memory, and the linker always started
> swapping like crazy - took about 5-6 minutes to link Clang. I upgraded
> to 3GB, and now it takes 30 seconds.

Note that certain versions of binutils (e.g. 2.17) are particularly  
bad.  See http://llvm.org/docs/GettingStarted.html#brokengcc for a  
list.  It might be worthwhile to try upgrading if you're using  
binutils and it is really slow.

-Chirs



More information about the cfe-dev mailing list