Skip to content

Conversation

mingmingl-llvm
Copy link
Contributor

Fix test failure on https://lab.llvm.org/buildbot/#/builders/95/builds/672

  • lld project is disabled on that build bot [1] and external lld /home/buildbots/llvm-external-buildbots/clang.16.0.1/bin/ld.lld is used to run the test [2]. It doesn't know new options like -enable-vtable-value-profiling (which was introduced in 1351d17)
  • Update test to require lld and lld-available.

Tested:

  1. By disabling lld in the project and using old lld installed previously[3], I can reproduce the failure.
  2. With requires: lld, the test become unsupported.

[1] https://lab.llvm.org/buildbot/#/builders/95/builds/672/steps/4/logs/stdio
[2] https://lab.llvm.org/buildbot/#/builders/95/builds/672/steps/6/logs/FAIL__Profile-powerpc64le__instrprof-vtable-value-
[3] cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DLLVM_ENABLE_PROJECTS='clang;compiler-rt' -DLLVM_USE_SPLIT_DWARF=On -DLLVM_USE_LINKER=lld -DLLVM_ENABLE_SPHINX=ON -DLLVM_OPTIMIZED_TABLEGEN=TRUE -DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_ENABLE_ZLIB=1 ../llvm

@mingmingl-llvm mingmingl-llvm requested a review from MaskRay June 30, 2024 18:14
@llvmbot llvmbot added compiler-rt PGO Profile Guided Optimizations labels Jun 30, 2024
@llvmbot
Copy link
Member

llvmbot commented Jun 30, 2024

@llvm/pr-subscribers-pgo

Author: Mingming Liu (minglotus-6)

Changes

Fix test failure on https://lab.llvm.org/buildbot/#/builders/95/builds/672

  • lld project is disabled on that build bot [1] and external lld /home/buildbots/llvm-external-buildbots/clang.16.0.1/bin/ld.lld is used to run the test [2]. It doesn't know new options like -enable-vtable-value-profiling (which was introduced in 1351d17)
  • Update test to require lld and lld-available.

Tested:

  1. By disabling lld in the project and using old lld installed previously[3], I can reproduce the failure.
  2. With requires: lld, the test become unsupported.

[1] https://lab.llvm.org/buildbot/#/builders/95/builds/672/steps/4/logs/stdio
[2] https://lab.llvm.org/buildbot/#/builders/95/builds/672/steps/6/logs/FAIL__Profile-powerpc64le__instrprof-vtable-value-
[3] cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DLLVM_ENABLE_PROJECTS='clang;compiler-rt' -DLLVM_USE_SPLIT_DWARF=On -DLLVM_USE_LINKER=lld -DLLVM_ENABLE_SPHINX=ON -DLLVM_OPTIMIZED_TABLEGEN=TRUE -DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_ENABLE_ZLIB=1 ../llvm


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

1 Files Affected:

  • (modified) compiler-rt/test/profile/Linux/instrprof-vtable-value-prof.cpp (+1-1)
diff --git a/compiler-rt/test/profile/Linux/instrprof-vtable-value-prof.cpp b/compiler-rt/test/profile/Linux/instrprof-vtable-value-prof.cpp
index 6cf73c6fdbd73..efb24751da5ff 100644
--- a/compiler-rt/test/profile/Linux/instrprof-vtable-value-prof.cpp
+++ b/compiler-rt/test/profile/Linux/instrprof-vtable-value-prof.cpp
@@ -1,4 +1,4 @@
-// REQUIRES: lld-available
+// REQUIRES: lld, lld-available
 
 // Building the instrumented binary will fail because lld doesn't support
 // big-endian ELF for PPC (aka ABI 1).

@mingmingl-llvm mingmingl-llvm merged commit 038bc1c into llvm:main Jun 30, 2024
@mingmingl-llvm mingmingl-llvm deleted the compiler-rt-test branch July 1, 2024 00:45
cpiaseque pushed a commit to cpiaseque/llvm-project that referenced this pull request Jul 3, 2024
…lvm#97228)

Fix test failure on
https://lab.llvm.org/buildbot/#/builders/95/builds/672
* lld project is disabled on that build bot [1] and external lld
`/home/buildbots/llvm-external-buildbots/clang.16.0.1/bin/ld.lld` is
used to run the test [2]. It doesn't know new options like
`-enable-vtable-value-profiling` (which was introduced in
llvm@1351d17)
* Update test to require `lld` and `lld-available`.

Tested:
1. By disabling lld in the project and using old `lld` installed
previously[3], I can reproduce the failure.
2. With `requires: lld`, the test become unsupported.

[1]
https://lab.llvm.org/buildbot/#/builders/95/builds/672/steps/4/logs/stdio
[2]
https://lab.llvm.org/buildbot/#/builders/95/builds/672/steps/6/logs/FAIL__Profile-powerpc64le__instrprof-vtable-value-
[3] `cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug
-DLLVM_ENABLE_PROJECTS='clang;compiler-rt' -DLLVM_USE_SPLIT_DWARF=On
-DLLVM_USE_LINKER=lld -DLLVM_ENABLE_SPHINX=ON
-DLLVM_OPTIMIZED_TABLEGEN=TRUE -DLLVM_TARGETS_TO_BUILD=X86
-DLLVM_ENABLE_ZLIB=1 ../llvm`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler-rt PGO Profile Guided Optimizations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants