<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
 --></style><title>building llvm and clang on Mac OS
X</title></head><body>
<div>At 3:51 PM -0700 2010-07-26, Chris Lattner wrote:</div>
<blockquote type="cite" cite>On Jul 25, 2010, at 8:40 PM, Dave Yost
wrote:
<blockquote type="cite" cite>Regarding downloading, building, and
installing llvm and clang, these pages</blockquote>
<blockquote type="cite" cite> 
http://llvm.org/docs/GettingStarted.html#quickstart</blockquote>
<blockquote type="cite" cite> 
http://clang.llvm.org/get_started.html</blockquote>
<blockquote type="cite" cite>have a lot of English text that a user
has to translate correctly into shell commands.</blockquote>
<blockquote type="cite" cite><br></blockquote>
<blockquote type="cite" cite>I think a shell script is preferable to
manual-labor instructions. Like instructions for manual labor, a
script can be human readable, but a script is also unambiguous and
clear, not to mention that it is directly usable, without mistakes in
translation from prose to shell commands.</blockquote>
<blockquote type="cite" cite><br></blockquote>
<blockquote type="cite" cite>For many users the script will be all
they need, and if not, it makes a great starting point for
customization. The attached script is what I used. I offer it to
you.</blockquote>
</blockquote>
<blockquote type="cite" cite><br></blockquote>
<blockquote type="cite" cite>Great!  Please send it to cfe-dev
:)</blockquote>
<div><br></div>
<div>I used that script to build and install the latest svn pull. But
it doesn't work!</div>
<div><br></div>
<div><font face="Lucida Console" size="-1" color="#007700">Thu
11:41:16 ip2 yost /Volumes/x/llvm</font></div>
<div><font face="Lucida Console" size="-1" color="#007700">0 244
Z%</font><font face="Lucida Console" size="-1"><b> cat
x.cc</b></font></div>
<div><font face="Lucida Console" size="-1">void foo(void)
{}</font></div>
<div><font face="Lucida Console" size="-1" color="#007700">Thu
11:41:19 ip2 yost /Volumes/x/llvm</font></div>
<div><font face="Lucida Console" size="-1" color="#007700">0 245
Z%</font><font face="Lucida Console" size="-1"><b> clang++
x.cc</b></font></div>
<div><font face="Lucida Console" size="-1">error: unable to execute
command: . is not executable</font></div>
<div><font face="Lucida Console" size="-1">error: clang frontend
command failed due to signal 1 (use -v to see invocation)</font></div>
<div><br></div>
<div>The released binary clang++ doesn't exhibit this problem.</div>
<div><br></div>
<div><br></div>
<div><b>Some more notes about installation</b></div>
<div><br></div>
<div>1. The instructions don't say to do</div>
<div>    gmake install</div>
<div><br></div>
<div>2. For me, gmake install created these with restrictive
permissions:</div>
<div>    /usr/local/docs</div>
<div>    /usr/local/include/llvm*</div>
<div>    /usr/local/include/clang*</div>
<div><br></div>
<div>3. gmake uninstall did not remove</div>
<div>    /usr/local/bin/llvm-config</div>
<div>    /usr/local/lib/clang/</div>
<div>    /usr/local/lib/LLVMHello.dylib</div>
<div>    /usr/local/bin/profile_rt.dylib</div>
<div>    /usr/local/include/llvm/</div>
<div>    /usr/local/include/clang/</div>
<div>    /usr/local/include/clang-c/</div>
<div><br></div>
<div>Dave</div>
</body>
</html>