<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 8/21/2012 3:52 PM, Ashwin kumar
wrote:<br>
</div>
<blockquote
cite="mid:717E1DBE-BC78-499B-A0A3-5CBB8E00E20B@gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Hi everyone,
<div><br>
</div>
<div>This is Ashwin. I have a mac running osx 10.8. I am new to
LLVM and have the version 3.1 installed. I am trying to get some
LLVM transform passes running on my machine. After having
compiled the LLVM source without making changes to the
configuration files I am able to run the LLVM gcc and clang. But
I am having some trouble using the passes. I tried loading the
hello pass inside the transform directory of the LLVM object
tree. </div>
<div><br>
</div>
<div>When I do an opt -load LLVMhello.dylib -help I dont see the
registered pass listed. Further when I load the option I get an
undefined symbol error from the linker. This is the command i
issue and the output i get.</div>
<div><br>
</div>
</blockquote>
<br>
It turns out that, on OS X, using the installed tool makes it
unusable for plugins. If you edit this line of Makefile.rules:<br>
ProgInstall = $(INSTALL) $(Install.StripFlag) -m 0755<br>
<br>
so that it looks like this:<br>
ProgInstall = $(INSTALL) -m 0755<br>
<br>
it should work after installing.<br>
<pre class="moz-signature" cols="72">--
Joshua Cranmer
News submodule owner
DXR coauthor</pre>
</body>
</html>