Re: how can we test the hexagon port in mainline

From: Nathan Chancellor
Date: Wed Jul 07 2021 - 13:42:36 EST


Hi Christoph,

On 7/7/2021 7:10 AM, Christoph Hellwig wrote:
On Wed, Jun 23, 2021 at 09:06:41PM -0700, Nathan Chancellor wrote:
I've reported this upstream with you on CC:

https://bugs.llvm.org/show_bug.cgi?id=50838

I've not actually got any mail from that Cc..

Sorry, I directed that at Arnd. I should have kept you in the loop too.

Christoph, that toolchain should work (I had to install libtinfo5 and
libc++1-7 on Debian Buster):

$ export PATH=$HOME/tmp/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin:$PATH

$ make -skj"$(nproc)" ARCH=hexagon CROSS_COMPILE=hexagon-unknown-linux-musl LLVM=1 LLVM_IAS=1 defconfig all

hch@brick:~/work/linux$ make -j4 ARCH=hexagon
CROSS_COMPILE=hexagon-unknown-linux-musl LLVM=1 LLVM_IAS=1 defconfig all
HOSTCC scripts/basic/fixdep
clang: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory

Hmmm, is that with libtinfo5 installed (or whatever the ncurses-compat equivalent is on your distribution installed)? I had that problem on Debian until I insta

Brian/Sid, it might be worth flipping LLVM_ENABLE_TERMINFO to OFF during your cmake configuration so that there are less dynamic dependencies and it is easier for more people to run the toolchain. Android's clang team did the same thing:

https://github.com/android/ndk/issues/574

With https://reviews.llvm.org/D42055, there should not be too much of a sacrifice.

Cheers,
Nathan