[PATCH] D119049: [LLD] Allow usage of LLD as a library

Alexandre Ganea via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 16 15:05:48 PDT 2023


aganea added a comment.

In D119049#4429502 <https://reviews.llvm.org/D119049#4429502>, @MaskRay wrote:

>   arc patch D119049
>   ninja -C /tmp/Rel check-lld-unit
>
> gives me failures.
>
>   % grep LLVM_USE_RELATIVE_PATHS_IN_FILES /tmp/Rel/CMakeCache.txt
>   LLVM_USE_RELATIVE_PATHS_IN_FILES:BOOL=OFF
>
>
>
>   --
>   /tmp/Rel/tools/lld/unittests/AsLibELF/./LLDAsLibELFTests --gtest_filter=AsLib.ROCm
>   --
>   ld.lld: error: target emulation unknown: -m or at least one .o file required
>   Failed to link: /home/maskray/llvm/lld/unittests/AsLibELF/Inputs/kernel1.o
>   /home/maskray/llvm/lld/unittests/AsLibELF/ROCm.cpp:69: Failure
>   Value of: runLinker("%S/Inputs/kernel1.o")
>     Actual: false
>   Expected: true
>   ld.lld: error: target emulation unknown: -m or at least one .o file required
>   Failed to link: /home/maskray/llvm/lld/unittests/AsLibELF/Inputs/kernel2.o
>   /home/maskray/llvm/lld/unittests/AsLibELF/ROCm.cpp:70: Failure
>   Value of: runLinker("%S/Inputs/kernel2.o")
>     Actual: false

The two binary files (.o) are missing from the patch. Hold on, I will post it again.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D119049/new/

https://reviews.llvm.org/D119049



More information about the llvm-commits mailing list