---
title: 执行自动反馈编译时，提示failed to match build-id from perf output的解决方法
description: "执行自动反馈编译时提示“failed to match build-id from perf output”。"
url: https://www.hikunpeng.com/document/detail/zh/boostdb/systemcollaborativeoptimization/cfgo/kunpengdbsmysqlgcc_20_0013.html
sourcePath: /source/zh/boostdb/systemcollaborativeoptimization/cfgo/kunpengdbsmysqlgcc_20_0013.html
indexId: 08abcd1633869eb1257427de1b34282bfe38ccae1aee7e1a39c19d5e9e9813c187
---
# 执行自动反馈编译时，提示failed to match build-id from perf output的解决方法

#### 问题现象描述

执行自动反馈编译时提示“failed to match build-id from perf output”。


#### 关键过程、根本原因分析

MySQL启用了“USE_LD_LLD”选项，与A-FOT自动反馈编译优化冲突。


#### 结论、解决方案及效果

1. 修改MySQL源码目录中的CMakeLists.txt文件。如果源码目录为“/root/mysql-8.0.25/”，则文件路径为“/root/mysql-8.0.25/CMakeLists.txt”。
  将下图中“USE_LD_LLD”选项后面的“ON”改为“OFF”。

2. 重新执行自动反馈编译。
