[llvm] [ThinLTO] Do not duplicate import a function that is actually defined in the current module (PR #110064)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 10 15:09:13 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-nvptx-nvidia-ubuntu` running on `as-builder-7` while building `llvm` at step 6 "test-build-unified-tree-check-llvm".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/180/builds/6574

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 6 (test-build-unified-tree-check-llvm) failure: test (failure)
******************** TEST 'LLVM :: ThinLTO/X86/ditemplatevalueparameter-remap.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 36: /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/bin/opt -module-summary -o /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll
+ /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/bin/opt -module-summary -o /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll
RUN: at line 37: /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/bin/opt -module-summary -o /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/test/ThinLTO/X86/Inputs/ditemplatevalueparameter-remap.ll
+ /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/bin/opt -module-summary -o /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/test/ThinLTO/X86/Inputs/ditemplatevalueparameter-remap.ll
RUN: at line 38: ld.lld --plugin-opt=thinlto-index-only -shared /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc
+ ld.lld --plugin-opt=thinlto-index-only -shared /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc
ld.lld: error: /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc: Opaque pointers are only supported in -opaque-pointers mode (Producer: 'LLVM20.0.0git' Reader: 'LLVM 14.0.0')

--

********************


```

</details>

https://github.com/llvm/llvm-project/pull/110064


More information about the llvm-commits mailing list