[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:10:59 PDT 2024


llvm-ci wrote:

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

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

```
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

```

</details>

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


More information about the llvm-commits mailing list