<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/57551>57551</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
llvm-bolt-heatmap fails to link with `undefined reference to 'llvm::AArch64MCExpr::create(llvm::MCExpr const*, llvm::AArch64MCExpr::VariantKind, ...`
</td>
</tr>
<tr>
<th>Labels</th>
<td>
build-problem,
BOLT
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
sylvestre
</td>
</tr>
</table>
<pre>
```
FAILED: bin/llvm-bolt-heatmap
: && "/home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-15-15.0.0~+rc3/build-llvm/./bin/clang++" -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fno-semantic-interposition -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 -Wno-comment -Wstring-conversion -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -ffile-prefix-map=/home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-15-15.0.0~+rc3/build-llvm/tools/clang/stage2-bins=build-llvm/tools/clang/stage2-bins -ffile-prefix-map=/home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-15-15.0.0~+rc3/= -no-canonical-prefixes -O3 -DNDEBUG -Wl,-z,relro -Wl,--build-id -fuse-ld=gold -Wl,--gc-sections tools/bolt/tools/heatmap/CMakeFiles/llvm-bolt-heatmap.dir/heatmap.cpp.o -o bin/llvm-bolt-heatmap -Wl,-rpath,"\$ORIGIN/../lib" lib/libLLVMBOLTProfile.a lib/libLLVMBOLTRewrite.a lib/libLLVMBOLTUtils.a lib/libLLVMBOLTProfile.a lib/libLLVMBOLTRuntimeLibs.a lib/libLLVMBOLTPasses.a lib/libLLVMBOLTCore.a lib/libLLVMBOLTUtils.a lib/libLLVMBOLTTargetAArch64.a lib/libLLVMBOLTTargetX86.a lib/libLLVM-15.so.1 && :
lib/libLLVMBOLTTargetAArch64.a(AArch64MCPlusBuilder.cpp.o):AArch64MCPlusBuilder.cpp:function (anonymous namespace)::AArch64MCPlusBuilder::getTargetExprFor(llvm::MCInst&, llvm::MCExpr const*, llvm::MCContext&, unsigned long) const: error: undefined reference to 'llvm::AArch64MCExpr::create(llvm::MCExpr const*, llvm::AArch64MCExpr::VariantKind, llvm::MCContext&)'
lib/libLLVMBOLTTargetAArch64.a(AArch64MCPlusBuilder.cpp.o):AArch64MCPlusBuilder.cpp:function (anonymous namespace)::AArch64MCPlusBuilder::createLongJmp(std::vector<llvm::MCInst, std::allocator<llvm::MCInst> >&, llvm::MCSymbol const*, llvm::MCContext*, bool): error: undefined reference to 'llvm::AArch64MCExpr::create(llvm::MCExpr const*, llvm::AArch64MCExpr::VariantKind, llvm::MCContext&)'
[...]
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzVV0tz2zYQ_jXUhQOORL0POsh6ZNzascd5tD1lQGJFogYBFgBlO7--H0jJdmPZaU9NNByQwC4W-_wWyox4WEST_uHpr6P-crs8v9iso-EyzqSO0q1S-4plRnlWEvcVr-OOL3BE6QQPXikYS1MRXu5B7cl5G74F7dsxkzyIqm8LFsQdpXpjVF7y9pjMcp2X5F7Q2GCMJ-kn_Wi6idIzmw8DeyOVOApLwkIrJVdcF2BqnzRmO-d5fstqazzl3lgGxYwuYvbbztiKe3yQtcZGw3W3wBzljZX-ARRtWKMbR4Llpqq4xnlSE-O2aCrSYa_gnpiXFcVs_WV7dfPxfPvHlw9Xn25WG0gM51-frz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