<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><font size="-1">On Ubuntu 20.04 I have<br>
      </font></p>
    <p><font size="-1">/usr/bin/llvm-tblgen<br>
        /usr/bin/llvm-tblgen-10<br>
        /usr/lib/llvm-10/bin/llvm-tblgen<br>
        /usr/local/bin/llvm-tblgen</font></p>
    <p><font size="-1">The first three were installed from the
        distribution. The last was compiled from the llvm-project at
        github. I do not have a clang-tblgen.</font></p>
    <p><font size="-1">Is your sequence something like this?</font></p>
    <p><font size="-1"><a class="moz-txt-link-freetext" href="https://github.com/llvm/llvm-project">https://github.com/llvm/llvm-project</a><br>
        git clone <a class="moz-txt-link-freetext" href="https://github.com/llvm/llvm-project.git">https://github.com/llvm/llvm-project.git</a><br>
        cd llvm-project</font></p>
    <p><font size="-1">And then what do you do?<br>
      </font></p>
    <p><font size="-1">Neil Nelson<br>
      </font></p>
    <div class="moz-cite-prefix"><font size="-1">On 7/7/20 8:01 AM,
        Jakov Smolic via cfe-dev wrote:</font><br>
    </div>
    <blockquote type="cite"
cite="mid:CAJRasQU0XSCeCwNKsL3XDZg6BHgs_JVOvP=4DdpzDYJHJhQqvA@mail.gmail.com">
      <pre class="moz-quote-pre" wrap="">Hello,
I have an issue with cross-compilation of Clang. The distribution I am
using is Gentoo Linux. The issue occurs due to the missing
`clang-tblgen` binary, so the build fails with the message
"/usr/bin/clang-tblgen not found or usable", as that binary is needed
to cross compile clang.
I came across some discussions in [1] and [2], and from what I
researched, the `clang-tblgen` binary is not installed by the clang's
build system.
Additional CMake configuration options added when Clang is cross
compiled on Gentoo Linux can be seen in the ebuild [3].
I am not sure whether it is necessary to manually build the `tblgen`
binary, or is there another way to do this? Could someone point me to
a workaround for this?

Thank you for your help!
Sincerely,
Jakov

[1] <a class="moz-txt-link-freetext" href="https://bugs.gentoo.org/442958">https://bugs.gentoo.org/442958</a>
[2] <a class="moz-txt-link-freetext" href="https://github.com/NixOS/nixpkgs/issues/40602">https://github.com/NixOS/nixpkgs/issues/40602</a>
[3] <a class="moz-txt-link-freetext" href="https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-devel/clang/clang-10.0.0.ebuild#n228">https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-devel/clang/clang-10.0.0.ebuild#n228</a>
_______________________________________________
cfe-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a>
</pre>
    </blockquote>
  </body>
</html>