@Tom Stellard
Shall I open a bug-report to cherry-pick...?
commit 454f69bcc17e6451c926a2e7b708e900fc8fdcb8
"[PATCH] [LLD] Add required `ppc` target to the test cases. NFC")
If yes - Can you point me to the LLVM release/13.x meta bug number?
Do you want to do it directly by yourself?
Thanks.
- Sedat -
On Wed, Sep 15, 2021 at 1:50 AM Sedat Dilek <sedat.dilek at gmail.com>
wrote:>
> On Tue, Sep 14, 2021 at 6:40 AM Tom Stellard via llvm-dev
> <llvm-dev at lists.llvm.org> wrote:
> >
> > Hi,
> >
> > I've tagged 13.0.0-rc3. This will likely be the last rc unless
there are
> > critical bugs that are found. Please test the release and report
results.
> >
>
> I use tc-build from the ClangBuiltLinux project to build a selfmade
> x86-64 LLVM toolchain.
>
> My invocation looks like this:
>
> $ python3 ./build-llvm.py --no-update --build-type Release -p
> clang;lld -t X86;BPF --clang-vendor dileks -B
> /home/dileks/src/llvm-toolchain/build -I /opt/llvm-toolchain
> --check-targets clang lld --build-stage1-only --install-stage1-only -D
> LLVM_PARALLEL_LINK_JOBS=1 --show-build-commands
>
> The LLD check-targets failed:
>
> 3887:******************** TEST 'lld ::
ELF/compressed-debug-input.s'
> FAILED ********************
> 3918:******************** TEST 'lld ::
> ELF/compressed-debug-input-err.s' FAILED ********************
> 3947:FAILED: tools/lld/test/CMakeFiles/check-lld
>
> $ grep error: log_tc-build.txt
> 3911:/home/dileks/src/llvm-toolchain/build/stage1/bin/llvm-mc: error:
> : error: unable to get target for 'powerpc64-unknown-unknown', see
> --version and --triple.
> 3930:/home/dileks/src/llvm-toolchain/build/stage1/bin/llvm-mc: error:
> : error: unable to get target for 'powerpc64-unknown-unknown', see
> --version and --triple.
>
> This is due to I have no ppc target:
>
> $ /home/dileks/src/llvm-toolchain/build/stage1/bin/llvm-mc --version
> LLVM (http://llvm.org/):
> LLVM version 13.0.0
> Optimized build.
> Default target: x86_64-unknown-linux-gnu
> Host CPU: sandybridge
>
> Registered Targets:
> bpf - BPF (host endian)
> bpfeb - BPF (big endian)
> bpfel - BPF (little endian)
> x86 - 32-bit X86: Pentium-Pro and above
> x86-64 - 64-bit X86: EM64T and AMD64
>
> I needed to apply [1] to fix the issue with LLD check-targets:
>
> From 454f69bcc17e6451c926a2e7b708e900fc8fdcb8 Mon Sep 17 00:00:00 2001
> From: Simon Atanasyan <simon at atanasyan.com>
> Date: Sat, 7 Aug 2021 13:29:59 +0300
> Subject: [PATCH] [LLD] Add required `ppc` target to the test cases. NFC
>
> Please cherry-pick this to release/13.x Git tree.
>
> Thanks.
>
> Regards,
> - Sedat -
>
> [1]
https://github.com/llvm/llvm-project/commit/454f69bcc17e6451c926a2e7b708e900fc8fdcb8.patch