<div dir="auto">Aha! Good guess. It definitely looks like it is confused with the clang installed in your system somehow.<div dir="auto"><br></div><div dir="auto">Steve</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jul 12, 2020, 7:44 PM K Jelesnianski <<a href="mailto:kjski@vt.edu">kjski@vt.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I found a work around. I did some more poking around my system and<br>
found where the default install location of all<br>
libLLVM* libraries and<br>
libclang* libraries were installed. Specifically<br>
$ /usr/local/lib<br>
I was hesitant but when I deleted all libclang* and libLLVM* files. I<br>
was able to get past this error.<br>
<br>
Thanks again.<br>
<br>
On Sun, Jul 12, 2020 at 10:22 PM K Jelesnianski <<a href="mailto:kjski@vt.edu" target="_blank" rel="noreferrer">kjski@vt.edu</a>> wrote:<br>
><br>
> Thanks for your quick reply. I have also tried disabling build shared<br>
> libs, specifying via<br>
> "-DBUILD_SHARED_LIBS=OFF" in my cmake config line<br>
> However I am getting the same exact error with this flag specified as well.<br>
><br>
> Just an idea, would removing all llvm/clang instances/libs on my<br>
> machine work? Do you know what the default location is of these<br>
> shared/static llvm libraries that are conflicting?<br>
><br>
> I'm not exactly sure how to do this via command line on linux though.<br>
> I definitely agree this is related to linkage error as you say. I'm<br>
> just not sure what I have to remove to get this server to go back to a<br>
> "clean slate" state such that I can build llvm-project. That is<br>
> information I have been looking for, but can't seem to find and this<br>
> error doesn't seem to be well documented.<br>
> I have already tried the following, but it didn't help either<br>
> $ sudo su<br>
> $ dnf remove llvm<br>
> $ dnf remove clang<br>
><br>
> and then performing<br>
> $ sudo dnf install llvm<br>
> $ sudo dnf install clang<br>
><br>
> To give more context, I can do a clean install of vanilla llvm-project<br>
> on other servers I have access to, but can't currently afford to move<br>
> my code base to these other servers.<br>
</blockquote></div>