【问题标题】:Unable to make for buildroot (checking for suffix of object files... configure: error)无法生成 buildroot(检查目标文件的后缀...配置:错误)
【发布时间】:2016-12-20 05:30:10
【问题描述】:

我正在尝试为 Raspberry Pi 上的交叉编译制作 buildroot 工具链。 (使用 buildroot-2016.11)

当我运行 make 时,我收到以下错误:

checking for suffix of object files... configure: error: in `/usr/RPi/buildroot-2016.11/output/build/host-binutils-2.26.1':
configure: error: cannot compute suffix of object files: cannot compile
buildroot-2016.11/output/build/host-binutils-2.26.1'

错误窗口中的 config.log 如下:

ccache: error: Failed to create temporary file for  /auto/ccache/tmp/tmp.cpp_stderr: Permission denied
    112 configure:4591: $? = 1
    113 configure: failed program was:
    114 | /* confdefs.h */
    122 |
    123 | int
    124 | main ()
    125 | {
    126 |
    127 |   ;
    128 |   return 0;
    129 | }

    130 configure:4605: error: in `/usr/RPi/buildroot-2016.11/output/build/host-binutils-2.26.1':
    131 configure:4608: error: cannot compute suffix of object files: cannot compile

【问题讨论】:

  • 格式更改

标签: linux raspberry-pi toolchain buildroot binutils


【解决方案1】:

这是因为您在/auto/ccache/ 目录中没有写权限。您可以使用sudo chown -R YOURUSERNAME:YOURUSERNAME /auto/ccache/ 设置适当的访问权限。

您将 ccache 目录 BR2_CCACHE_DIR(在环境中或在配置文件中)设置为 /auto/ccache。您需要确保您对该目录具有写入权限。

【讨论】:

    猜你喜欢
    • 2012-09-20
    • 1970-01-01
    • 2022-01-23
    • 2020-01-26
    • 1970-01-01
    • 1970-01-01
    • 2020-12-25
    • 2020-08-18
    • 2017-12-05
    相关资源
    最近更新 更多