<div dir="auto"><div>Hi Jack,<div dir="auto">I'm sure few weeks ago I had the same problem with DisableABI and if I remember properly it was because I used different version of llvm-config and clang or because I used the -I with a wrong path. Can you send us the source code you are trying to compile and the command you use for compiling it?</div><div dir="auto"><br></div><div dir="auto">Thanks</div><br><br><div class="gmail_quote"><div dir="ltr">On Wed, Jan 9, 2019, 04:35 Jack Orenstein via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr">Hi, I am brand new to LLVM, or more precisely, trying to be. I'm getting stuck on compiling LLVM.<br><br>- I tried installing on a Mint 18.1 VM with 6GB RAM, and the builds of some large executables were killed by the OOM killer. I finally realized that I needed to build using shared libraries, and succeeded. This was in November.<br><br>- I put aside my LLVM project, and just got back to it. I got stuck compiling the Kaleidoscope demo, encountering this error:<br><br>    /tmp/kal-2072b8.o:(.data._ZN4llvm30VerifyDisableABIBreakingChecksE+0x0): undefined reference to `llvm::DisableABIBreakingChecks'<br><br>  This discussion, from this mailing list, points out that I need to build LLVM with -DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=OFF.<br><br>- So now I am trying to rebuild LLVM, and ran into a few new problems. First, I discovered that I need the Z3 theorem prover. Unsure why this problem did not show up before.  Second, I'm running into many errors like this:<br><br>    CMake Error at cmake/modules/AddLLVM.cmake:570 (target_link_libraries):<br>      Attempt to add link library "clangAST" to target "clangApplyReplacements"<br>      which is not built in this directory.<br>    Call Stack (most recent call first):<br>      tools/clang/cmake/modules/AddClang.cmake:86 (llvm_add_library)<br>      tools/extra/clang-apply-replacements/CMakeLists.txt:5 (add_clang_library)<br><br>Getting LLVM installed is proving much more problematic than I was expecting, based on experience with many other open source projects. Can someone give me a push in the right direction? I started with this document: <a href="http://llvm.org/docs/GettingStarted.html" target="_blank" rel="noreferrer">http://llvm.org/docs/GettingStarted.html</a>, but found no guidance about the problems with huge executables, advice about shared libraries, etc.<br><br>Thanks.<br><br>Jack Orenstein<br></div></div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank" rel="noreferrer">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div></div></div>