[cfe-dev] Cross-compiling Clang on Gentoo Linux

Neil Nelson via cfe-dev cfe-dev at lists.llvm.org
Thu Jul 9 06:59:55 PDT 2020


On Ubuntu 20.04 I have

/usr/bin/llvm-tblgen
/usr/bin/llvm-tblgen-10
/usr/lib/llvm-10/bin/llvm-tblgen
/usr/local/bin/llvm-tblgen

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.

Is your sequence something like this?

https://github.com/llvm/llvm-project
git clone https://github.com/llvm/llvm-project.git
cd llvm-project

And then what do you do?

Neil Nelson

On 7/7/20 8:01 AM, Jakov Smolic via cfe-dev wrote:
> 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] https://bugs.gentoo.org/442958
> [2] https://github.com/NixOS/nixpkgs/issues/40602
> [3] https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-devel/clang/clang-10.0.0.ebuild#n228
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20200709/9c72deba/attachment.html>


More information about the cfe-dev mailing list