<div dir="ltr">hi Ehsan,<br><div><br></div><div>it's good that you don't have linking problem now. to fix the next problem: can you show us, how do you call the compiler with your plugin? and also try to put printouts into the code, to see where it is. or could you share the plugin source somehow?</div><div><br></div><div>regards,</div><div>Laszlo</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 28, 2015 at 5:43 PM, Ehsan Akhgari <span dir="ltr"><<a href="mailto:ehsan.akhgari@gmail.com" target="_blank">ehsan.akhgari@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">On Wed, Jan 28, 2015 at 4:36 AM, Laszlo Nagy <span dir="ltr"><<a href="mailto:rizsotto.mailinglist@gmail.com" target="_blank">rizsotto.mailinglist@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>hi Ehsan,<br><br></div>Clang plugin linking problem is a popular topic on this list. (here is a thread which discussed similar problem <a href="http://lists.cs.uiuc.edu/pipermail/cfe-dev/2013-September/031737.html" target="_blank">http://lists.cs.uiuc.edu/pipermail/cfe-dev/2013-September/031737.html</a> ) hope it fits to your problem as well<br></div></div></blockquote><div><br></div></span><div>Thanks for the link!  This seems somewhat similar to my problem, so I removed all -lclangFoo arguments and used -undefined dynamic_lookup instead, and the linker did not complain, but now when I try to run clang with my newly built plugin, the compiler returns a 1 error code with no error messages, and doesn't seem to be doing anything.<br></div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div></div><div>regards,<br></div><div>Laszlo<br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Tue, Jan 27, 2015 at 11:44 PM, Nico Weber <span dir="ltr"><<a href="mailto:thakis@chromium.org" target="_blank">thakis@chromium.org</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><span><div class="gmail_extra"><div class="gmail_quote">On Tue, Jan 27, 2015 at 2:34 PM, Ehsan Akhgari <span dir="ltr"><<a href="mailto:ehsan.akhgari@gmail.com" target="_blank">ehsan.akhgari@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span>On Tue, Jan 20, 2015 at 4:32 PM, Nico Weber <span dir="ltr"><<a href="mailto:thakis@chromium.org" target="_blank">thakis@chromium.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span>On Tue, Jan 20, 2015 at 11:07 AM, Reid Kleckner <span dir="ltr"><<a href="mailto:rnk@google.com" target="_blank">rnk@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">I think Nico tweaked the dead strip settings last?</div></blockquote><div><br></div></span><div>I tested things in a static library build. Since you say something about libLLVMSupport.dylib, you're probably doing a shared build. From how I remember things looking, I don't think shared builds supported plugins ever in the make build – it's probably you'll have to tweak the build description to get this configuration to work. (Chromium only uses compiler plugins in static builds too.)</div></div></div></div></blockquote><div><br></div></span><div>How should I get a non-shared build?  That may be the source of this problem...</div></div></div></div></blockquote></div><br></div></span><div class="gmail_extra">Don't says -DBUILD_SHARED_LIBS=YES when running cmake, I think. It's off by default. What does CMakeCache.txt in your build directory store for that setting?</div><div class="gmail_extra"><br></div></div>
<br></div></div><span>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></span></blockquote></div><br></div>
</blockquote></span></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br><div><div dir="ltr">Ehsan<br></div></div>
</font></span></div></div>
</blockquote></div><br></div>