<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/57901>57901</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Compiling clang from source as standalone download?
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          rubyFeedback
      </td>
    </tr>
</table>

<pre>
    Normally I follow the blfs build instructions for LLVM, which are a bit cumbersome:

Today I just tried to update clang; my LLVM version is currently
"LLVM version 16.0.0git".

I got this error when trying to compile clang 15.0.1 or so:

    CMake Error at /usr/lib64/cmake/llvm/LLVMExports.cmake:609 (message):
    The imported target "yaml-bench" references the file

     "/usr/bin/yaml-bench"

Not sure what this means. My old clang works as-is, version is:

13.0.0

Would it be possible to allow for an easier upgrade path for clang?
E. g. to just allow it to be compiled as-is like this, without having to
compile llvm and put cmake/ directory into tools/ or something, as
the BLFS instructions here show:

https://www.linuxfromscratch.org/blfs/view/svn/general/llvm.html

I'd like to use clang more, but this upgrade situation is a bit tedious.

GCC is a lot easier to upgrade, I just compile it from source into
different prefixes and that was it. With clang I am not sure what to
do, there does not seem to be a lot of information or easy-upgrading
possible right now. I'd think it would be convenient for downstream
users/devs to have simpler upgrade paths. (One could download
the binaries, I get it, but I kind of like to be able to compile from
zero when that is possible.)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxdVMFyozgQ_Rr70hUKg-3YBw6TTLyVqmT2sFM7ZwFt0EQglyTMeL9-XwucxHG5UIGk193vve7S1pfih3WdMuZCz3S0xtiRQstUmqOnctCmJt374IYqaNt7HHH08vLv6yJ7pLHVVUvKMSkqdaBq6Ep23na8yL8t0u-LdH7-tLUS_N-DDxSc5pqCpeFUq8BUGdU3i_yBuktEpjMwEIu0B6Jz3AdzmdGy7ObEapukSdrogI3kc8BnaiwitYBg55Dy2HKPyB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