[llvm] [ctx_prof] Make the profile output analyzable by llvm-bcanalyzer (PR #99563)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 23 06:11:19 PDT 2024


llvm-ci wrote:

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/2158

Here is the relevant piece of the build log for the reference:
```
Step 6 (test-build-unified-tree-check-llvm) failure: test (failure)
...
1.040 [3/8/644] Linking CXX executable unittests/tools/llvm-exegesis/LLVMExegesisTests
1.068 [3/7/645] Linking CXX executable unittests/Analysis/AnalysisTests
1.088 [3/6/646] Linking CXX executable unittests/CodeGen/CodeGenTests
1.165 [3/5/647] Linking CXX executable unittests/IR/IRTests
1.270 [3/4/648] Linking CXX executable unittests/Support/SupportTests
1.295 [3/3/649] Linking CXX executable unittests/ADT/ADTTests
1.347 [3/2/650] Building CXX object unittests/TableGen/CMakeFiles/TableGenTests.dir/AutomataTest.cpp.o
1.431 [2/2/651] Linking CXX executable unittests/TableGen/TableGenTests
6.114 [2/1/652] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/PGOCtxProfReaderWriterTest.cpp.o
6.280 [1/1/653] Linking CXX executable unittests/ProfileData/ProfileDataTests
FAILED: unittests/ProfileData/ProfileDataTests 
: && /usr/bin/c++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fuse-ld=gold     -Wl,--gc-sections unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/BPFunctionNodeTest.cpp.o unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/CoverageMappingTest.cpp.o unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/InstrProfDataTest.cpp.o unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/InstrProfTest.cpp.o unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/ItaniumManglingCanonicalizerTest.cpp.o unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/MemProfTest.cpp.o unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/PGOCtxProfReaderWriterTest.cpp.o unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/SampleProfTest.cpp.o unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/SymbolRemappingReaderTest.cpp.o -o unittests/ProfileData/ProfileDataTests  -Wl,-rpath,/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/lib  lib/libLLVMCoverage.so.20.0git  lib/libLLVMProfileData.so.20.0git  lib/libllvm_gtest_main.so.20.0git  lib/libLLVMTestingSupport.so.20.0git  lib/libLLVMObject.so.20.0git  lib/libLLVMCore.so.20.0git  lib/libllvm_gtest.so.20.0git  lib/libLLVMSupport.so.20.0git  -Wl,-rpath-link,/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/lib && :
unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/PGOCtxProfReaderWriterTest.cpp.o:PGOCtxProfReaderWriterTest.cpp:function PGOCtxProfRWTest_RoundTrip_Test::TestBody() [clone .localalias]: error: undefined reference to 'llvm::BitcodeAnalyzer::BitcodeAnalyzer(llvm::StringRef, std::optional<llvm::StringRef>)'
unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/PGOCtxProfReaderWriterTest.cpp.o:PGOCtxProfReaderWriterTest.cpp:function PGOCtxProfRWTest_RoundTrip_Test::TestBody() [clone .localalias]: error: undefined reference to 'llvm::BitcodeAnalyzer::analyze(std::optional<llvm::BCDumpOptions>, std::optional<llvm::StringRef>)'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

```

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


More information about the llvm-commits mailing list