[llvm] [memprof] Add YAML-based deserialization for MemProf profile (PR #117829)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 27 00:10:42 PST 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-darwin` running on `doug-worker-3` while building `llvm` at step 5 "build-unified-tree".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/23/builds/5252
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 5 (build-unified-tree) failure: build (failure)
...
27.445 [4491/12/1448] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaBPF.cpp.o
27.457 [4490/12/1449] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/CodeCompleteConsumer.cpp.o
27.501 [4489/12/1450] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaBase.cpp.o
27.513 [4488/12/1451] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaBoundsSafety.cpp.o
27.575 [4487/12/1452] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaCXXScopeSpec.cpp.o
27.581 [4486/12/1453] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/AnalysisBasedWarnings.cpp.o
27.649 [4485/12/1454] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaChecking.cpp.o
27.691 [4484/12/1455] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/IdentifierResolver.cpp.o
27.721 [4483/12/1456] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaConsumer.cpp.o
28.134 [4482/12/1457] Building CXX object lib/ProfileData/CMakeFiles/LLVMProfileData.dir/MemProfReader.cpp.o
FAILED: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/MemProfReader.cpp.o
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/local/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/Users/buildbot/buildbot-root/x86_64-darwin/build/lib/ProfileData -I/Users/buildbot/buildbot-root/x86_64-darwin/llvm-project/llvm/lib/ProfileData -I/Users/buildbot/buildbot-root/x86_64-darwin/build/include -I/Users/buildbot/buildbot-root/x86_64-darwin/llvm-project/llvm/include -isystem /usr/local/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -O3 -DNDEBUG -std=c++17 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/ProfileData/CMakeFiles/LLVMProfileData.dir/MemProfReader.cpp.o -MF lib/ProfileData/CMakeFiles/LLVMProfileData.dir/MemProfReader.cpp.o.d -o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/MemProfReader.cpp.o -c /Users/buildbot/buildbot-root/x86_64-darwin/llvm-project/llvm/lib/ProfileData/MemProfReader.cpp
In file included from /Users/buildbot/buildbot-root/x86_64-darwin/llvm-project/llvm/lib/ProfileData/MemProfReader.cpp:34:
In file included from /Users/buildbot/buildbot-root/x86_64-darwin/llvm-project/llvm/include/llvm/ProfileData/MemProfReader.h:24:
In file included from /Users/buildbot/buildbot-root/x86_64-darwin/llvm-project/llvm/include/llvm/ProfileData/InstrProfReader.h:22:
In file included from /Users/buildbot/buildbot-root/x86_64-darwin/llvm-project/llvm/include/llvm/ProfileData/InstrProfCorrelator.h:21:
/Users/buildbot/buildbot-root/x86_64-darwin/llvm-project/llvm/include/llvm/Support/YAMLTraits.h:1173:36: error: implicit instantiation of undefined template 'llvm::yaml::MissingTrait<unsigned long>'
char missing_yaml_trait_for_type[sizeof(MissingTrait<T>)];
^
/Users/buildbot/buildbot-root/x86_64-darwin/llvm-project/llvm/include/llvm/Support/YAMLTraits.h:961:7: note: in instantiation of function template specialization 'llvm::yaml::yamlize<unsigned long>' requested here
yamlize(*this, Val, Required, Ctx);
^
/Users/buildbot/buildbot-root/x86_64-darwin/llvm-project/llvm/include/llvm/Support/YAMLTraits.h:883:11: note: in instantiation of function template specialization 'llvm::yaml::IO::processKey<unsigned long, llvm::yaml::EmptyContext>' requested here
this->processKey(Key, Val, true, Ctx);
^
/Users/buildbot/buildbot-root/x86_64-darwin/llvm-project/llvm/include/llvm/ProfileData/MIBEntryDef.inc:55:1: note: in instantiation of function template specialization 'llvm::yaml::IO::mapRequired<unsigned long>' requested here
MIBEntryDef(AccessHistogram = 27, AccessHistogram, uintptr_t)
^
/Users/buildbot/buildbot-root/x86_64-darwin/llvm-project/llvm/lib/ProfileData/MemProfReader.cpp:77:8: note: expanded from macro 'MIBEntryDef'
Io.mapRequired(KeyStr.str().c_str(), MIB.Name); \
^
/Users/buildbot/buildbot-root/x86_64-darwin/llvm-project/llvm/include/llvm/Support/YAMLTraits.h:310:8: note: template is declared here
struct MissingTrait;
^
1 error generated.
28.606 [4482/11/1458] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/Sema.cpp.o
28.648 [4482/10/1459] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaAttr.cpp.o
28.789 [4482/9/1460] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaAvailability.cpp.o
28.864 [4482/8/1461] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaCast.cpp.o
28.937 [4482/7/1462] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaCodeComplete.cpp.o
28.987 [4482/6/1463] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaCoroutine.cpp.o
29.069 [4482/5/1464] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaConcept.cpp.o
29.681 [4482/4/1465] Building CXX object lib/MC/MCParser/CMakeFiles/LLVMMCParser.dir/AsmParser.cpp.o
29.822 [4482/3/1466] Building CXX object lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o
30.776 [4482/2/1467] Building CXX object lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProfWriter.cpp.o
31.587 [4482/1/1468] Building CXX object lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProfReader.cpp.o
ninja: build stopped: subcommand failed.
```
</details>
https://github.com/llvm/llvm-project/pull/117829
More information about the llvm-commits
mailing list