我要评分
获取效率
正确性
完整性
易理解

"BOLT-WARNING: non-relocation mode for AArch64 is not fully supported" Displayed in Logs After Automatic FDO

Symptom

After automatic FDO is performed, bolt information is not returned after the readelf -a /usr/local/mysql-gcc/bin/mysqld | grep bolt command is executed. The following message is displayed in logs:

1
BOLT-WARNING: non-relocation mode for AArch64 is not fully supported

Key Process and Cause Analysis

The relocation information after sampling is not written while the cmake command in build.sh specifies the compiler path. If the compiler path is specified in the environment variable, the same error occurs.

Conclusion and Solution

  1. Delete the option of specifying the compiler path in the cmake command in build.sh. Content after the modification:

  2. Perform automatic FDO again.