<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - llvm-config --system-libs is broken because "testingsupport" component lib is not installed"
   href="https://bugs.llvm.org/show_bug.cgi?id=33495">33495</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>llvm-config --system-libs is broken because "testingsupport" component lib is not installed
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>tools
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>llvm-config
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jbc.engelen@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>This bug was introduced recently and makes it impossible to build LLVM and use
it in our project (LDC) (without copying files from the buildtree to the
installtree manually).

I build LLVM with:
cmake -G Ninja -DCMAKE_INSTALL_PREFIX="/Users/johan/llvm/trunk/installrelease" 
-DLLVM_TARGETS_TO_BUILD="AArch64;AMDGPU;ARM;NVPTX;X86"
-DCMAKE_BUILD_TYPE=Release -DLLVM_APPEND_VC_REV=ON -DLLVM_INSTALL_UTILS=ON ..
(in a build folder inside the source tree)

"llvm-config --components" reports "testingsupport", but
libLLVMTestingSupport.a is not installed.
And then with --system-libs I get the error:

<span class="quote">> ./llvm-config --system-libs</span >
llvm-config: error: component libraries and shared library

llvm-config: error: missing:
/Users/johan/llvm/install/lib/libLLVMTestingSupport.a

Copying libLLVMTestingSupport.a from the build tree to the install lib folder
"fixes" the problem.

I think the root problem is that somehow "testingsupport" has leaked into
"llvm-config --components" recently. (it's not there in llvm40)

Thanks a lot for fixing this (or telling me what I do wrong).</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>