Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Oct 10, 2024

Conversation

huangjd
Copy link
Contributor

@huangjd huangjd commented Sep 26, 2024

Doing so could cause a bug where the linker tries to remap a function "reimported" from the current module when materializing it, causing a lookup assert in the type mappings.

the current module.

Doing so could cause a bug where the linker tries to remap a function
"reimported" from the current module when materializing it, causing a
lookup assert in the type mappings.
@huangjd huangjd marked this pull request as ready for review September 26, 2024 01:15
@llvmbot llvmbot added the LTO Link time optimization (regular/full LTO or ThinLTO) label Sep 26, 2024
@llvmbot
Copy link
Member

llvmbot commented Sep 26, 2024

@llvm/pr-subscribers-lto

Author: William Junda Huang (huangjd)

Changes

Doing so could cause a bug where the linker tries to remap a function "reimported" from the current module when materializing it, causing a lookup assert in the type mappings.


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

1 Files Affected:

  • (modified) llvm/lib/Linker/IRMover.cpp (+5-1)
diff --git a/llvm/lib/Linker/IRMover.cpp b/llvm/lib/Linker/IRMover.cpp
index 3a6c2678cd157f..5bd05d86a949c3 100644
--- a/llvm/lib/Linker/IRMover.cpp
+++ b/llvm/lib/Linker/IRMover.cpp
@@ -595,11 +595,15 @@ Value *IRLinker::materialize(Value *V, bool ForIndirectSymbol) {
   if (!SGV)
     return nullptr;
 
+  // If SGV is from dest, it is already materialized when dest was loaded.
+  if (SGV->getParent() == &DstM)
+    return nullptr;
+
   // When linking a global from other modules than source & dest, skip
   // materializing it because it would be mapped later when its containing
   // module is linked. Linking it now would potentially pull in many types that
   // may not be mapped properly.
-  if (SGV->getParent() != &DstM && SGV->getParent() != SrcM.get())
+  if (SGV->getParent() != SrcM.get())
     return nullptr;
 
   Expected<Constant *> NewProto = linkGlobalValueProto(SGV, ForIndirectSymbol);

@huangjd huangjd marked this pull request as draft September 26, 2024 01:35
@huangjd
Copy link
Contributor Author

huangjd commented Sep 26, 2024

This patch is to fix a bug encountered while bootstrapping clang itself, I was not able to create a minimum reproducing case. The failing case happens in a thinLTO step involving a lot of files so it is unrealistic to make it a test case.

Copy link
Contributor

@teresajohnson teresajohnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this code is also used by regular LTO, so this would not just affect ThinLTO.

I really hope that we can find a way to reproduce the failure with some kind of test.

llvm/lib/Linker/IRMover.cpp Show resolved Hide resolved
@huangjd huangjd marked this pull request as ready for review October 4, 2024 04:20
@huangjd huangjd requested a review from teresajohnson October 4, 2024 04:20
@huangjd
Copy link
Contributor Author

huangjd commented Oct 4, 2024

Added a test case. It is very contrived, and I think in real life only when using thinLTO + function pointer template parameter in source code has a potential to trigger it, and building clang itself is one example

@huangjd
Copy link
Contributor Author

huangjd commented Oct 4, 2024

It also possibly reveals another bug (not related, won't cause immediate trouble). If there is a template with function pointer parameter, and there's an instantiation of the template but the function used is not defined, then the optimizer could do away the metadata info for the template parameter, so we will ended up non-identical metadata type nodes with the same name in different modules.

template <void (*Func)()>
struct S {
  void Impl() {
    Func();
  }
};

void func1();

void bar() {
  S<func1> s ; 
}
!18 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "S<&func1>", file: !11, line: 2, size: 8, flags: DIFlagTypePassByValue, elements: !19, templateParams: !20, identifier: "_ZTS1SIXadL_Z5func1vEEE")
!19 = !{}
!20 = !{!21}
!21 = !DITemplateValueParameter(name: "Func", type: !22, value: ptr @_Z5func1v)

If func1 is not defined in the current module, then the value in !21 could be optimized away and becomes undef, not sure if this is the correct behavior

@huangjd huangjd requested a review from jdoerfert October 5, 2024 00:34
@dwblaikie
Copy link
Collaborator

It also possibly reveals another bug (not related, won't cause immediate trouble). If there is a template with function pointer parameter, and there's an instantiation of the template but the function used is not defined, then the optimizer could do away the metadata info for the template parameter, so we will ended up non-identical metadata type nodes with the same name in different modules.

template <void (*Func)()>
struct S {
  void Impl() {
    Func();
  }
};

void func1();

void bar() {
  S<func1> s ; 
}
!18 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "S<&func1>", file: !11, line: 2, size: 8, flags: DIFlagTypePassByValue, elements: !19, templateParams: !20, identifier: "_ZTS1SIXadL_Z5func1vEEE")
!19 = !{}
!20 = !{!21}
!21 = !DITemplateValueParameter(name: "Func", type: !22, value: ptr @_Z5func1v)

If func1 is not defined in the current module, then the value in !21 could be optimized away and becomes undef, not sure if this is the correct behavior

The non-LTO behavior if func1 was undefined would be to fail to link. One could make an argument that ThinLTO should match, wherever possible, the non-LTO behavior.

Alternatively, GCC never produces references to these pointer non-type-template parameters anyway, because doing so can lead to different behavior when building with and without debug info (failure to link is the least problematic one - more problematic would be if the linker pulled in new object files to satisfy the reference, then had global ctors in them that ran - changing program behavior).

I will say, ideally, if the function is optimized away, rather than using 0 for the value in the DWARF, we should, ideally, use the "tombstone" value (which should be -1/maxint/etc, ideally) though that does require a bit of a special case in the linker. That'll make it clear that this value is different from a null pointer which is a valid value for a non-type template parameter of pointer type.

But don't feel like you have to solve that problem - this is pretty niche and, again, GCC provides no value due to these complications, so we're not missing out on some important opportunity.

Copy link
Contributor

@teresajohnson teresajohnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. thanks for digging into this and getting a test case!

@huangjd huangjd merged commit 48545a9 into llvm:main Oct 10, 2024
9 of 11 checks passed
@huangjd huangjd deleted the thinLTONoImportSymbolFromCurrentModule branch October 10, 2024 21:59
@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 10, 2024

LLVM Buildbot has detected a new failure on builder llvm-nvptx64-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/160/builds/6576

Here is the relevant piece of the build log for the reference
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-nvptx64-nvidia-ubuntu/build/bin/opt -module-summary -o /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll
+ /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/opt -module-summary -o /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll
RUN: at line 37: /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/opt -module-summary -o /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/ThinLTO/X86/Inputs/ditemplatevalueparameter-remap.ll
+ /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/opt -module-summary -o /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-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-nvptx64-nvidia-ubuntu/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-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-nvptx64-nvidia-ubuntu/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc
ld.lld: error: /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-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')

--

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


@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 10, 2024

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

Here is the relevant piece of the build log for the reference
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')

--

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


@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 10, 2024

LLVM Buildbot has detected a new failure on builder ml-opt-devrel-x86-64 running on ml-opt-devrel-x86-64-b1 while building llvm at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: ThinLTO/X86/ditemplatevalueparameter-remap.ll' FAILED ********************
Exit Code: 127

Command Output (stderr):
--
RUN: at line 36: /b/ml-opt-devrel-x86-64-b1/build/bin/opt -module-summary -o /b/ml-opt-devrel-x86-64-b1/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll
+ /b/ml-opt-devrel-x86-64-b1/build/bin/opt -module-summary -o /b/ml-opt-devrel-x86-64-b1/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll
RUN: at line 37: /b/ml-opt-devrel-x86-64-b1/build/bin/opt -module-summary -o /b/ml-opt-devrel-x86-64-b1/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/ThinLTO/X86/Inputs/ditemplatevalueparameter-remap.ll
+ /b/ml-opt-devrel-x86-64-b1/build/bin/opt -module-summary -o /b/ml-opt-devrel-x86-64-b1/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/ThinLTO/X86/Inputs/ditemplatevalueparameter-remap.ll
RUN: at line 38: ld.lld --plugin-opt=thinlto-index-only -shared /b/ml-opt-devrel-x86-64-b1/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /b/ml-opt-devrel-x86-64-b1/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc
+ ld.lld --plugin-opt=thinlto-index-only -shared /b/ml-opt-devrel-x86-64-b1/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /b/ml-opt-devrel-x86-64-b1/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc
/b/ml-opt-devrel-x86-64-b1/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.script: line 3: ld.lld: command not found

--

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


@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 10, 2024

LLVM Buildbot has detected a new failure on builder ml-opt-rel-x86-64 running on ml-opt-rel-x86-64-b1 while building llvm at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: ThinLTO/X86/ditemplatevalueparameter-remap.ll' FAILED ********************
Exit Code: 127

Command Output (stderr):
--
RUN: at line 36: /b/ml-opt-rel-x86-64-b1/build/bin/opt -module-summary -o /b/ml-opt-rel-x86-64-b1/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll
+ /b/ml-opt-rel-x86-64-b1/build/bin/opt -module-summary -o /b/ml-opt-rel-x86-64-b1/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll
RUN: at line 37: /b/ml-opt-rel-x86-64-b1/build/bin/opt -module-summary -o /b/ml-opt-rel-x86-64-b1/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/ThinLTO/X86/Inputs/ditemplatevalueparameter-remap.ll
+ /b/ml-opt-rel-x86-64-b1/build/bin/opt -module-summary -o /b/ml-opt-rel-x86-64-b1/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/ThinLTO/X86/Inputs/ditemplatevalueparameter-remap.ll
RUN: at line 38: ld.lld --plugin-opt=thinlto-index-only -shared /b/ml-opt-rel-x86-64-b1/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /b/ml-opt-rel-x86-64-b1/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc
+ ld.lld --plugin-opt=thinlto-index-only -shared /b/ml-opt-rel-x86-64-b1/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /b/ml-opt-rel-x86-64-b1/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc
/b/ml-opt-rel-x86-64-b1/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.script: line 3: ld.lld: command not found

--

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


@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 10, 2024

LLVM Buildbot has detected a new failure on builder clang-ve-ninja running on hpce-ve-main while building llvm at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/ve-linux.py ...' (failure)
...
[660/661] Running the LLVM regression tests
Unknown option: -C
usage: git [--version] [--help] [-c name=value]
           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
           [-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
           <command> [<args>]
An error occurred retrieving the git revision: Command '['git', '-C', '/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm', 'rev-parse', 'HEAD']' returned non-zero exit status 129.
-- Testing: 55672 tests, 48 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60..
FAIL: LLVM :: ThinLTO/X86/ditemplatevalueparameter-remap.ll (38966 of 55672)
******************** TEST 'LLVM :: ThinLTO/X86/ditemplatevalueparameter-remap.ll' FAILED ********************
Exit Code: 127

Command Output (stderr):
--
RUN: at line 36: /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/opt -module-summary -o /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/opt -module-summary -o /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll
RUN: at line 37: /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/opt -module-summary -o /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/ThinLTO/X86/Inputs/ditemplatevalueparameter-remap.ll
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/opt -module-summary -o /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/ThinLTO/X86/Inputs/ditemplatevalueparameter-remap.ll
RUN: at line 38: ld.lld --plugin-opt=thinlto-index-only -shared /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc
+ ld.lld --plugin-opt=thinlto-index-only -shared /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc
/scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.script: line 3: ld.lld: command not found

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
********************
Failed Tests (1):
  LLVM :: ThinLTO/X86/ditemplatevalueparameter-remap.ll


Testing Time: 78.84s

Total Discovered Tests: 61798
  Skipped          :   352 (0.57%)
  Unsupported      : 28933 (46.82%)
  Passed           : 32457 (52.52%)
  Expectedly Failed:    55 (0.09%)
  Failed           :     1 (0.00%)
FAILED: test/CMakeFiles/check-llvm /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/test/CMakeFiles/check-llvm 
cd /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/test && /home/buildbot/sandbox/bin/python3 /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/./bin/llvm-lit -sv /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/test
ninja: build stopped: subcommand failed.
make: *** [check-llvm] Error 1
['make', '-f', '/scratch/buildbot/bothome/clang-ve-ninja/llvm-zorg/zorg/buildbot/builders/annotated/ve-linux-steps.make', 'check-llvm', 'BUILDROOT=/scratch/buildbot/bothome/clang-ve-ninja/build'] exited with return code 2.
The build step threw an exception...
Traceback (most recent call last):
  File "../llvm-zorg/zorg/buildbot/builders/annotated/ve-linux.py", line 47, in step
Step 8 (check-llvm) failure: check-llvm (failure)
...
[660/661] Running the LLVM regression tests
Unknown option: -C
usage: git [--version] [--help] [-c name=value]
           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
           [-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
           <command> [<args>]
An error occurred retrieving the git revision: Command '['git', '-C', '/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm', 'rev-parse', 'HEAD']' returned non-zero exit status 129.
-- Testing: 55672 tests, 48 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60..
FAIL: LLVM :: ThinLTO/X86/ditemplatevalueparameter-remap.ll (38966 of 55672)
******************** TEST 'LLVM :: ThinLTO/X86/ditemplatevalueparameter-remap.ll' FAILED ********************
Exit Code: 127

Command Output (stderr):
--
RUN: at line 36: /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/opt -module-summary -o /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/opt -module-summary -o /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll
RUN: at line 37: /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/opt -module-summary -o /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/ThinLTO/X86/Inputs/ditemplatevalueparameter-remap.ll
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/opt -module-summary -o /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/ThinLTO/X86/Inputs/ditemplatevalueparameter-remap.ll
RUN: at line 38: ld.lld --plugin-opt=thinlto-index-only -shared /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc
+ ld.lld --plugin-opt=thinlto-index-only -shared /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc
/scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.script: line 3: ld.lld: command not found

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
********************
Failed Tests (1):
  LLVM :: ThinLTO/X86/ditemplatevalueparameter-remap.ll


Testing Time: 78.84s

Total Discovered Tests: 61798
  Skipped          :   352 (0.57%)
  Unsupported      : 28933 (46.82%)
  Passed           : 32457 (52.52%)
  Expectedly Failed:    55 (0.09%)
  Failed           :     1 (0.00%)
FAILED: test/CMakeFiles/check-llvm /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/test/CMakeFiles/check-llvm 
cd /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/test && /home/buildbot/sandbox/bin/python3 /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/./bin/llvm-lit -sv /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/test
ninja: build stopped: subcommand failed.
make: *** [check-llvm] Error 1
['make', '-f', '/scratch/buildbot/bothome/clang-ve-ninja/llvm-zorg/zorg/buildbot/builders/annotated/ve-linux-steps.make', 'check-llvm', 'BUILDROOT=/scratch/buildbot/bothome/clang-ve-ninja/build'] exited with return code 2.
The build step threw an exception...
Traceback (most recent call last):
  File "../llvm-zorg/zorg/buildbot/builders/annotated/ve-linux.py", line 47, in step

@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 10, 2024

LLVM Buildbot has detected a new failure on builder ml-opt-dev-x86-64 running on ml-opt-dev-x86-64-b1 while building llvm at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: ThinLTO/X86/ditemplatevalueparameter-remap.ll' FAILED ********************
Exit Code: 127

Command Output (stderr):
--
RUN: at line 36: /b/ml-opt-dev-x86-64-b1/build/bin/opt -module-summary -o /b/ml-opt-dev-x86-64-b1/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll
+ /b/ml-opt-dev-x86-64-b1/build/bin/opt -module-summary -o /b/ml-opt-dev-x86-64-b1/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll
RUN: at line 37: /b/ml-opt-dev-x86-64-b1/build/bin/opt -module-summary -o /b/ml-opt-dev-x86-64-b1/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/ThinLTO/X86/Inputs/ditemplatevalueparameter-remap.ll
+ /b/ml-opt-dev-x86-64-b1/build/bin/opt -module-summary -o /b/ml-opt-dev-x86-64-b1/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/ThinLTO/X86/Inputs/ditemplatevalueparameter-remap.ll
RUN: at line 38: ld.lld --plugin-opt=thinlto-index-only -shared /b/ml-opt-dev-x86-64-b1/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /b/ml-opt-dev-x86-64-b1/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc
+ ld.lld --plugin-opt=thinlto-index-only -shared /b/ml-opt-dev-x86-64-b1/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /b/ml-opt-dev-x86-64-b1/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc
/b/ml-opt-dev-x86-64-b1/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.script: line 3: ld.lld: command not found

--

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


@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 10, 2024

LLVM Buildbot has detected a new failure on builder clang-cmake-x86_64-avx512-linux running on avx512-intel64 while building llvm at step 7 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 7 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: ThinLTO/X86/ditemplatevalueparameter-remap.ll' FAILED ********************
Exit Code: 127

Command Output (stderr):
--
RUN: at line 36: /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/opt -module-summary -o /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll
+ /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/opt -module-summary -o /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll
RUN: at line 37: /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/opt -module-summary -o /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/test/ThinLTO/X86/Inputs/ditemplatevalueparameter-remap.ll
+ /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/opt -module-summary -o /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/test/ThinLTO/X86/Inputs/ditemplatevalueparameter-remap.ll
RUN: at line 38: ld.lld --plugin-opt=thinlto-index-only -shared /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc
+ ld.lld --plugin-opt=thinlto-index-only -shared /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.script: line 3: ld.lld: command not found

--

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


@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 10, 2024

LLVM Buildbot has detected a new failure on builder llvm-nvptx64-nvidia-win running on as-builder-8 while building llvm at step 7 "test-build-unified-tree-check-llvm".

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

Here is the relevant piece of the build log for the reference
Step 7 (test-build-unified-tree-check-llvm) failure: test (failure)
******************** TEST 'LLVM :: ThinLTO/X86/ditemplatevalueparameter-remap.ll' FAILED ********************
Exit Code: 127

Command Output (stdout):
--
# RUN: at line 36
c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\opt.exe -module-summary -o C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\test\ThinLTO\X86\Output\ditemplatevalueparameter-remap.ll.tmp1.bc C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\test\ThinLTO\X86\ditemplatevalueparameter-remap.ll
# executed command: 'c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\opt.exe' -module-summary -o 'C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\test\ThinLTO\X86\Output\ditemplatevalueparameter-remap.ll.tmp1.bc' 'C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\test\ThinLTO\X86\ditemplatevalueparameter-remap.ll'
# RUN: at line 37
c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\opt.exe -module-summary -o C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\test\ThinLTO\X86\Output\ditemplatevalueparameter-remap.ll.tmp2.bc C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\test\ThinLTO\X86/Inputs/ditemplatevalueparameter-remap.ll
# executed command: 'c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\opt.exe' -module-summary -o 'C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\test\ThinLTO\X86\Output\ditemplatevalueparameter-remap.ll.tmp2.bc' 'C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\test\ThinLTO\X86/Inputs/ditemplatevalueparameter-remap.ll'
# RUN: at line 38
ld.lld --plugin-opt=thinlto-index-only -shared C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\test\ThinLTO\X86\Output\ditemplatevalueparameter-remap.ll.tmp1.bc C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\test\ThinLTO\X86\Output\ditemplatevalueparameter-remap.ll.tmp2.bc
# executed command: ld.lld --plugin-opt=thinlto-index-only -shared 'C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\test\ThinLTO\X86\Output\ditemplatevalueparameter-remap.ll.tmp1.bc' 'C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\test\ThinLTO\X86\Output\ditemplatevalueparameter-remap.ll.tmp2.bc'
# .---command stderr------------
# | 'ld.lld': command not found
# `-----------------------------
# error: command failed with exit status: 127

--

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


@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 10, 2024

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

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

Here is the relevant piece of the build log for the reference
Step 7 (test-build-unified-tree-check-llvm) failure: test (failure)
******************** TEST 'LLVM :: ThinLTO/X86/ditemplatevalueparameter-remap.ll' FAILED ********************
Exit Code: 127

Command Output (stdout):
--
# RUN: at line 36
c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\opt.exe -module-summary -o C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\test\ThinLTO\X86\Output\ditemplatevalueparameter-remap.ll.tmp1.bc C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\ThinLTO\X86\ditemplatevalueparameter-remap.ll
# executed command: 'c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\opt.exe' -module-summary -o 'C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\test\ThinLTO\X86\Output\ditemplatevalueparameter-remap.ll.tmp1.bc' 'C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\ThinLTO\X86\ditemplatevalueparameter-remap.ll'
# RUN: at line 37
c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\opt.exe -module-summary -o C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\test\ThinLTO\X86\Output\ditemplatevalueparameter-remap.ll.tmp2.bc C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\ThinLTO\X86/Inputs/ditemplatevalueparameter-remap.ll
# executed command: 'c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\opt.exe' -module-summary -o 'C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\test\ThinLTO\X86\Output\ditemplatevalueparameter-remap.ll.tmp2.bc' 'C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\ThinLTO\X86/Inputs/ditemplatevalueparameter-remap.ll'
# RUN: at line 38
ld.lld --plugin-opt=thinlto-index-only -shared C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\test\ThinLTO\X86\Output\ditemplatevalueparameter-remap.ll.tmp1.bc C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\test\ThinLTO\X86\Output\ditemplatevalueparameter-remap.ll.tmp2.bc
# executed command: ld.lld --plugin-opt=thinlto-index-only -shared 'C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\test\ThinLTO\X86\Output\ditemplatevalueparameter-remap.ll.tmp1.bc' 'C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\test\ThinLTO\X86\Output\ditemplatevalueparameter-remap.ll.tmp2.bc'
# .---command stderr------------
# | 'ld.lld': command not found
# `-----------------------------
# error: command failed with exit status: 127

--

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


;
; RUN: opt -module-summary -o %t1.bc %s
; RUN: opt -module-summary -o %t2.bc %S/Inputs/ditemplatevalueparameter-remap.ll
; RUN: ld.lld --plugin-opt=thinlto-index-only -shared %t1.bc %t2.bc
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see you are getting a lot of build bot failures. I missed the fact that your test uses lld. You should use llvm-lto2 instead

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed the test case and this is the new pr #111933
Is there a way to "dry run" a patch on all llvm build bots before actually submitting something?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a way to "dry run" a patch on all llvm build bots before actually submitting something?

Unfortunately not.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 10, 2024

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-expensive-checks-ubuntu running on as-builder-4 while building llvm at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: ThinLTO/X86/ditemplatevalueparameter-remap.ll' FAILED ********************
Exit Code: 2

Command Output (stderr):
--
RUN: at line 36: /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/bin/opt -module-summary -o /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/llvm-project/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll
+ /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/bin/opt -module-summary -o /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/llvm-project/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll
RUN: at line 37: /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/bin/opt -module-summary -o /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/llvm-project/llvm/test/ThinLTO/X86/Inputs/ditemplatevalueparameter-remap.ll
+ /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/bin/opt -module-summary -o /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/llvm-project/llvm/test/ThinLTO/X86/Inputs/ditemplatevalueparameter-remap.ll
RUN: at line 38: /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/bin/ld.lld --plugin-opt=thinlto-index-only -shared /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc
+ /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/bin/ld.lld --plugin-opt=thinlto-index-only -shared /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc
RUN: at line 39: clang -O3 -fthinlto-index=/home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc.thinlto.bc -x ir /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc -S -emit-llvm -o - | /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/bin/FileCheck /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/llvm-project/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll
+ clang -O3 -fthinlto-index=/home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc.thinlto.bc -x ir /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc -S -emit-llvm -o -
/home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.script: line 4: clang: command not found
+ /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/bin/FileCheck /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/llvm-project/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll
FileCheck error: '<stdin>' is empty.
FileCheck command line:  /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/build/bin/FileCheck /home/buildbot/worker/as-builder-4/ramdisk/expensive-checks/llvm-project/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll

--

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


@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 10, 2024

LLVM Buildbot has detected a new failure on builder clang-aarch64-global-isel running on linaro-clang-aarch64-global-isel while building llvm at step 7 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 7 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: ThinLTO/X86/ditemplatevalueparameter-remap.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 36: /home/tcwg-buildbot/worker/clang-aarch64-global-isel/stage1/bin/opt -module-summary -o /home/tcwg-buildbot/worker/clang-aarch64-global-isel/stage1/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /home/tcwg-buildbot/worker/clang-aarch64-global-isel/llvm/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll
+ /home/tcwg-buildbot/worker/clang-aarch64-global-isel/stage1/bin/opt -module-summary -o /home/tcwg-buildbot/worker/clang-aarch64-global-isel/stage1/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /home/tcwg-buildbot/worker/clang-aarch64-global-isel/llvm/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll
RUN: at line 37: /home/tcwg-buildbot/worker/clang-aarch64-global-isel/stage1/bin/opt -module-summary -o /home/tcwg-buildbot/worker/clang-aarch64-global-isel/stage1/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc /home/tcwg-buildbot/worker/clang-aarch64-global-isel/llvm/llvm/test/ThinLTO/X86/Inputs/ditemplatevalueparameter-remap.ll
+ /home/tcwg-buildbot/worker/clang-aarch64-global-isel/stage1/bin/opt -module-summary -o /home/tcwg-buildbot/worker/clang-aarch64-global-isel/stage1/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc /home/tcwg-buildbot/worker/clang-aarch64-global-isel/llvm/llvm/test/ThinLTO/X86/Inputs/ditemplatevalueparameter-remap.ll
RUN: at line 38: ld.lld --plugin-opt=thinlto-index-only -shared /home/tcwg-buildbot/worker/clang-aarch64-global-isel/stage1/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /home/tcwg-buildbot/worker/clang-aarch64-global-isel/stage1/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc
+ ld.lld --plugin-opt=thinlto-index-only -shared /home/tcwg-buildbot/worker/clang-aarch64-global-isel/stage1/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /home/tcwg-buildbot/worker/clang-aarch64-global-isel/stage1/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc
ld.lld: error: Invalid summary version 11. Version should be in the range [1-9].
ld.lld: error: Invalid summary version 11. Version should be in the range [1-9].

--

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


@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 10, 2024

LLVM Buildbot has detected a new failure on builder lld-x86_64-ubuntu-fast running on as-builder-4 while building llvm at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: ThinLTO/X86/ditemplatevalueparameter-remap.ll' FAILED ********************
Exit Code: 2

Command Output (stderr):
--
RUN: at line 36: /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/opt -module-summary -o /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll
+ /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/opt -module-summary -o /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll
RUN: at line 37: /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/opt -module-summary -o /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/ThinLTO/X86/Inputs/ditemplatevalueparameter-remap.ll
+ /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/opt -module-summary -o /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/ThinLTO/X86/Inputs/ditemplatevalueparameter-remap.ll
RUN: at line 38: /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/ld.lld --plugin-opt=thinlto-index-only -shared /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc
+ /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/ld.lld --plugin-opt=thinlto-index-only -shared /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc
RUN: at line 39: clang -O3 -fthinlto-index=/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc.thinlto.bc -x ir /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc -S -emit-llvm -o - | /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/FileCheck /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll
+ /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/FileCheck /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll
+ clang -O3 -fthinlto-index=/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc.thinlto.bc -x ir /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc -S -emit-llvm -o -
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.script: line 4: clang: command not found
FileCheck error: '<stdin>' is empty.
FileCheck command line:  /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/FileCheck /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll

--

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


@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 10, 2024

LLVM Buildbot has detected a new failure on builder clang-ppc64le-linux-test-suite running on ppc64le-clang-test-suite while building llvm at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: ThinLTO/X86/ditemplatevalueparameter-remap.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 36: /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/bin/opt -module-summary -o /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/bin/opt -module-summary -o /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll
RUN: at line 37: /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/bin/opt -module-summary -o /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/test/ThinLTO/X86/Inputs/ditemplatevalueparameter-remap.ll
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/bin/opt -module-summary -o /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/test/ThinLTO/X86/Inputs/ditemplatevalueparameter-remap.ll
RUN: at line 38: ld.lld --plugin-opt=thinlto-index-only -shared /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc
+ ld.lld --plugin-opt=thinlto-index-only -shared /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc
ld.lld: error: Invalid summary version 11. Version should be in the range [1-9].
ld.lld: error: Invalid summary version 11. Version should be in the range [1-9].

--

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


@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 10, 2024

LLVM Buildbot has detected a new failure on builder clang-armv7-global-isel running on linaro-clang-armv7-global-isel while building llvm at step 7 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 7 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: ThinLTO/X86/ditemplatevalueparameter-remap.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 36: /home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/bin/opt -module-summary -o /home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /home/tcwg-buildbot/worker/clang-armv7-global-isel/llvm/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll
+ /home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/bin/opt -module-summary -o /home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /home/tcwg-buildbot/worker/clang-armv7-global-isel/llvm/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll
RUN: at line 37: /home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/bin/opt -module-summary -o /home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc /home/tcwg-buildbot/worker/clang-armv7-global-isel/llvm/llvm/test/ThinLTO/X86/Inputs/ditemplatevalueparameter-remap.ll
+ /home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/bin/opt -module-summary -o /home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc /home/tcwg-buildbot/worker/clang-armv7-global-isel/llvm/llvm/test/ThinLTO/X86/Inputs/ditemplatevalueparameter-remap.ll
RUN: at line 38: ld.lld --plugin-opt=thinlto-index-only -shared /home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc
+ ld.lld --plugin-opt=thinlto-index-only -shared /home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc
ld.lld: error: Invalid summary version 11. Version should be in the range [1-9].
ld.lld: error: Invalid summary version 11. Version should be in the range [1-9].

--

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


huangjd added a commit that referenced this pull request Oct 10, 2024
@huangjd huangjd restored the thinLTONoImportSymbolFromCurrentModule branch October 10, 2024 23:10
@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 10, 2024

LLVM Buildbot has detected a new failure on builder clang-s390x-linux running on systemz-1 while building llvm at step 5 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 5 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: ThinLTO/X86/ditemplatevalueparameter-remap.ll' FAILED ********************
Exit Code: 127

Command Output (stderr):
--
RUN: at line 36: /home/uweigand/sandbox/buildbot/clang-s390x-linux/stage1/bin/opt -module-summary -o /home/uweigand/sandbox/buildbot/clang-s390x-linux/stage1/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /home/uweigand/sandbox/buildbot/clang-s390x-linux/llvm/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll
+ /home/uweigand/sandbox/buildbot/clang-s390x-linux/stage1/bin/opt -module-summary -o /home/uweigand/sandbox/buildbot/clang-s390x-linux/stage1/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /home/uweigand/sandbox/buildbot/clang-s390x-linux/llvm/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll
RUN: at line 37: /home/uweigand/sandbox/buildbot/clang-s390x-linux/stage1/bin/opt -module-summary -o /home/uweigand/sandbox/buildbot/clang-s390x-linux/stage1/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc /home/uweigand/sandbox/buildbot/clang-s390x-linux/llvm/llvm/test/ThinLTO/X86/Inputs/ditemplatevalueparameter-remap.ll
+ /home/uweigand/sandbox/buildbot/clang-s390x-linux/stage1/bin/opt -module-summary -o /home/uweigand/sandbox/buildbot/clang-s390x-linux/stage1/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc /home/uweigand/sandbox/buildbot/clang-s390x-linux/llvm/llvm/test/ThinLTO/X86/Inputs/ditemplatevalueparameter-remap.ll
RUN: at line 38: ld.lld --plugin-opt=thinlto-index-only -shared /home/uweigand/sandbox/buildbot/clang-s390x-linux/stage1/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /home/uweigand/sandbox/buildbot/clang-s390x-linux/stage1/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc
+ ld.lld --plugin-opt=thinlto-index-only -shared /home/uweigand/sandbox/buildbot/clang-s390x-linux/stage1/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /home/uweigand/sandbox/buildbot/clang-s390x-linux/stage1/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc
/home/uweigand/sandbox/buildbot/clang-s390x-linux/stage1/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.script: line 3: ld.lld: command not found

--

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


@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 11, 2024

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-expensive-checks-debian running on gribozavr4 while building llvm at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: ThinLTO/X86/ditemplatevalueparameter-remap.ll' FAILED ********************
Exit Code: 2

Command Output (stderr):
--
RUN: at line 36: /b/1/llvm-clang-x86_64-expensive-checks-debian/build/bin/opt -module-summary -o /b/1/llvm-clang-x86_64-expensive-checks-debian/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll
+ /b/1/llvm-clang-x86_64-expensive-checks-debian/build/bin/opt -module-summary -o /b/1/llvm-clang-x86_64-expensive-checks-debian/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll
RUN: at line 37: /b/1/llvm-clang-x86_64-expensive-checks-debian/build/bin/opt -module-summary -o /b/1/llvm-clang-x86_64-expensive-checks-debian/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc /b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/test/ThinLTO/X86/Inputs/ditemplatevalueparameter-remap.ll
+ /b/1/llvm-clang-x86_64-expensive-checks-debian/build/bin/opt -module-summary -o /b/1/llvm-clang-x86_64-expensive-checks-debian/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc /b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/test/ThinLTO/X86/Inputs/ditemplatevalueparameter-remap.ll
RUN: at line 38: /b/1/llvm-clang-x86_64-expensive-checks-debian/build/bin/ld.lld --plugin-opt=thinlto-index-only -shared /b/1/llvm-clang-x86_64-expensive-checks-debian/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /b/1/llvm-clang-x86_64-expensive-checks-debian/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc
+ /b/1/llvm-clang-x86_64-expensive-checks-debian/build/bin/ld.lld --plugin-opt=thinlto-index-only -shared /b/1/llvm-clang-x86_64-expensive-checks-debian/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /b/1/llvm-clang-x86_64-expensive-checks-debian/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc
RUN: at line 39: clang -O3 -fthinlto-index=/b/1/llvm-clang-x86_64-expensive-checks-debian/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc.thinlto.bc -x ir /b/1/llvm-clang-x86_64-expensive-checks-debian/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc -S -emit-llvm -o - | /b/1/llvm-clang-x86_64-expensive-checks-debian/build/bin/FileCheck /b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll
+ clang -O3 -fthinlto-index=/b/1/llvm-clang-x86_64-expensive-checks-debian/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc.thinlto.bc -x ir /b/1/llvm-clang-x86_64-expensive-checks-debian/build/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc -S -emit-llvm -o -
+ /b/1/llvm-clang-x86_64-expensive-checks-debian/build/bin/FileCheck /b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll
error: Invalid value (Producer: 'LLVM20.0.0git' Reader: 'LLVM 11.0.1')
1 error generated.
FileCheck error: '<stdin>' is empty.
FileCheck command line:  /b/1/llvm-clang-x86_64-expensive-checks-debian/build/bin/FileCheck /b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll

--

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


@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 11, 2024

LLVM Buildbot has detected a new failure on builder clang-x86_64-debian-fast running on gribozavr4 while building llvm at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: ThinLTO/X86/ditemplatevalueparameter-remap.ll' FAILED ********************
Exit Code: 127

Command Output (stderr):
--
RUN: at line 36: /b/1/clang-x86_64-debian-fast/llvm.obj/bin/opt -module-summary -o /b/1/clang-x86_64-debian-fast/llvm.obj/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/opt -module-summary -o /b/1/clang-x86_64-debian-fast/llvm.obj/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/ThinLTO/X86/ditemplatevalueparameter-remap.ll
RUN: at line 37: /b/1/clang-x86_64-debian-fast/llvm.obj/bin/opt -module-summary -o /b/1/clang-x86_64-debian-fast/llvm.obj/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/ThinLTO/X86/Inputs/ditemplatevalueparameter-remap.ll
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/opt -module-summary -o /b/1/clang-x86_64-debian-fast/llvm.obj/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/ThinLTO/X86/Inputs/ditemplatevalueparameter-remap.ll
RUN: at line 38: ld.lld --plugin-opt=thinlto-index-only -shared /b/1/clang-x86_64-debian-fast/llvm.obj/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /b/1/clang-x86_64-debian-fast/llvm.obj/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc
+ ld.lld --plugin-opt=thinlto-index-only -shared /b/1/clang-x86_64-debian-fast/llvm.obj/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp1.bc /b/1/clang-x86_64-debian-fast/llvm.obj/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.tmp2.bc
/b/1/clang-x86_64-debian-fast/llvm.obj/test/ThinLTO/X86/Output/ditemplatevalueparameter-remap.ll.script: line 3: ld.lld: command not found

--

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


DanielCChen pushed a commit to DanielCChen/llvm-project that referenced this pull request Oct 16, 2024
… in the current module (llvm#110064)

Doing so could cause a bug where the linker tries to remap a function
"reimported" from the current module when materializing it, causing a
lookup assert in the type mappings.
DanielCChen pushed a commit to DanielCChen/llvm-project that referenced this pull request Oct 16, 2024
bricknerb pushed a commit to bricknerb/llvm-project that referenced this pull request Oct 17, 2024
… in the current module (llvm#110064)

Doing so could cause a bug where the linker tries to remap a function
"reimported" from the current module when materializing it, causing a
lookup assert in the type mappings.
bricknerb pushed a commit to bricknerb/llvm-project that referenced this pull request Oct 17, 2024
huangjd added a commit that referenced this pull request Oct 25, 2024
… in the current module #110064 (#111933)

Trying to land #110064  again after fixing test case
@frobtech frobtech mentioned this pull request Oct 25, 2024
NoumanAmir657 pushed a commit to NoumanAmir657/llvm-project that referenced this pull request Nov 4, 2024
… in the current module llvm#110064 (llvm#111933)

Trying to land llvm#110064  again after fixing test case
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTO Link time optimization (regular/full LTO or ThinLTO)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants