<div dir="ltr"><div class="gmail_extra">Thanks. See below.</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 12, 2016 at 11:49 PM, Ralf Habacker <span dir="ltr"><<a href="mailto:ralf.habacker@freenet.de" target="_blank">ralf.habacker@freenet.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF">
    <div>Am 13.09.2016 um 06:12 schrieb Shawn
      McKenney:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">Thanks Ralf. I am now running into the issue
        below.I have both of the libraries but they are not in the ld
        path (KDE neon). </div>
    </blockquote><span class="gmail-">
    <br>
    <blockquote type="cite">
      <div dir="ltr">I could help throw in a FindClang.cmake file to
        locate clang. There are a few out there that I could grab. If
        you want me to, let me know where to put it. Do we want it
        specific to the unittests or should we call FindClang at a
        higher level so the vars are available to others? I could drop
        it in the top-level cmake directory.</div>
    </blockquote></span>
    We need to investigate the llvm cmake details first. See below.<span class="gmail-"><br>
    <blockquote type="cite">
      <div dir="ltr">
        <div><br>
        </div>
        <div>
          <div class="gmail_extra"><br>
          </div>
          <div class="gmail_extra"><span style="font-family:monospace"><span style="color:rgb(0,0,0)">[ 98%] </span><span style="font-weight:bold;color:rgb(84,255,84)">Linking
                CXX executable test-llvm</span><span style="color:rgb(0,0,0)">
              </span><br>
              /usr/bin/ld: cannot find -lclangFrontend
              <br>
              /usr/bin/ld: cannot find -lclangTooling
              <br>
              collect2: error: ld returned 1 exit status
              <br>
              unittests/CMakeFiles/test-<wbr>llvm.dir/build.make:128: recipe
              for target 'unittests/test-llvm' failed
              <br>
              make[2]: *** [unittests/test-llvm] Error 1
              <br>
              CMakeFiles/Makefile2:820: recipe for target
              'unittests/CMakeFiles/test-<wbr>llvm.dir/all' failed
              <br>
              make[1]: *** [unittests/CMakeFiles/test-<wbr>llvm.dir/all]
              Error 2
              <br>
              Makefile:138: recipe for target 'all' failed
              <br>
              make: *** [all] Error 2<br>
            </span></div>
        </div>
      </div>
    </blockquote></span>
    On opensuse 13.1 where I compile umbrello I get on umbrello
    configure.<br>
    <br>
    -- Found LLVM 3.6.1<br>
    -- Using LLVMConfig.cmake in: /usr/share/llvm/cmake<br>
    <br>
    and <br>
    <br>
    xxx@yyy:~> rpm -q -f /usr/share/llvm/cmake/<br>
    llvm-devel-3.6.1-4.1.x86_64<br>
    xxx@yyy:~>rpm -q llvm-devel<br>
    ... <br>
    usr/share/llvm/cmake/AddLLVM.<wbr>cmake<br>
    /usr/share/llvm/cmake/<wbr>AddLLVMDefinitions.cmake<br>
    /usr/share/llvm/cmake/<wbr>AddOCaml.cmake<br>
    /usr/share/llvm/cmake/<wbr>AddSphinxTarget.cmake<br>
    /usr/share/llvm/cmake/<wbr>ChooseMSVCCRT.cmake<br>
    /usr/share/llvm/cmake/<wbr>CrossCompile.cmake<br>
    /usr/share/llvm/cmake/<wbr>FindOCaml.cmake<br>
    /usr/share/llvm/cmake/<wbr>FindSphinx.cmake<br>
    /usr/share/llvm/cmake/GetSVN.<wbr>cmake<br>
    /usr/share/llvm/cmake/<wbr>HandleLLVMOptions.cmake<br>
    /usr/share/llvm/cmake/<wbr>HandleLLVMStdlib.cmake<br>
    /usr/share/llvm/cmake/LLVM-<wbr>Config.cmake<br>
    /usr/share/llvm/cmake/<wbr>LLVMConfig.cmake<br>
    /usr/share/llvm/cmake/<wbr>LLVMConfigVersion.cmake<br>
    /usr/share/llvm/cmake/<wbr>LLVMExports-relwithdebinfo.<wbr>cmake<br>
    /usr/share/llvm/cmake/<wbr>LLVMExports.cmake<br>
    /usr/share/llvm/cmake/<wbr>LLVMParseArguments.cmake<br>
    /usr/share/llvm/cmake/<wbr>LLVMProcessSources.cmake<br>
    /usr/share/llvm/cmake/<wbr>TableGen.cmake<br>
    <br>
    It looks that the llvm-devel package contains all related stuff for
    finding clang. You have the llvm-devel installed ?<br>
    <br>
    The question is if this is available on all supported platforms
    (linux, windows, mac) and distributions ? <br>
    If the answer is yes, we do not need any specific stuff on umbrello
    side. <br></div></blockquote><div><br></div><div>I think you are correct. I do have the dev packages, but it looks like it is an upstream bug:</div><div><br></div><div> <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=819072">https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=819072</a></div><div><br></div><div>Debian/Ubuntu may still need:</div><div><br></div><div><font face="monospace, monospace" color="#073763">find_package(Clang)</font></div><div><br></div><div>in the CMakeLists.txt. Does that work for opensuse?</div><div><br></div><div>---</div><div><br></div><div>To get master to build on KDE neon,</div><div><br></div><div>1) I applied the fix found here:</div><div><br></div><div><a href="https://github.com/iovisor/bcc/issues/492">https://github.com/iovisor/bcc/issues/492</a><br></div><div><br></div><div>2) Added <font face="monospace, monospace">find_package(Clang)</font> to <font face="monospace, monospace">unittests/CMakeLists.txt</font></div><div><br></div><div>3) Set Clang_DIR and LLVM_DIR in my cmake config. Here is my config line:</div><div><br></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">cmake -DCMAKE_INSTALL_PREFIX=${HOME}/install/umbrello -DBUILD_KF5=On -DCMAKE_BUILD_TYPE=Debug -DLLVM_DIR=/usr/share/llvm-3.</span><br>8/cmake -DClang_DIR=/usr/lib/llvm-3.8/share/clang/cmake ../umbrello<br></span></div><div><br></div><div>I have centos7 and ubuntu14.04 docker images that I will use to test the build as well. I don't have access to Mac or Windows at the moment. If we determine it is an Ubuntu 16.04 bug, I will try to get the fix pushed upstream.</div><div><br></div><div>Shawn</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF">
    <br>
    BTW: Also there are cmake specific docs at 
    <a href="http://www.llvm.org/docs/CMake.html" target="_blank">http://www.llvm.org/docs/<wbr>CMake.html</a>, which may give additional
    answers.<span class="gmail-HOEnZb"><font color="#888888"><br>
    <br>
    Ralf <br>
    <br>
  </font></span></div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Shawn McKenney<div>President, Emmion</div><div>858 254 5468</div></div></div>
</div></div>