鲲鹏社区首页
中文
注册
我要评分
文档获取效率
文档正确性
内容完整性
文档易理解
在线提单
论坛求助

编译BE时提示'bfd.h' file not found的解决方法

问题现象描述

执行STRIP_DEBUG_INFO=ON sh build.sh --clean --be,报错'bfd.h' file not found。

doris-2.1.2-rc04/be/src/util/bfd_parser.h:28:10: fatal error: 'bfd.h' file not found
    28  |  #include <bfd.h>
        |
1 error generated.

关键过程、根本原因分析

缺少binutils工具链的开发包。

结论、解决方案及效果

  1. 下载binutils工具链的开发包。
    1
    yum install binutils-devel.aarch64
    
  2. 重新执行命令。
    1
    2
    cd /opt/tools/installed/doris-2.1.2-rc04
    STRIP_DEBUG_INFO=ON sh build.sh --be