我正在尝试在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
答案 0 :(得分:2)
这是因为您在/auto/ccache/
目录中没有写入权限。您可以使用sudo chown -R YOURUSERNAME:YOURUSERNAME /auto/ccache/
设置正确的访问权限。
将ccache目录BR2_CCACHE_DIR
(在环境中或在配置文件中)设置为/auto/ccache
。您需要确保您对该目录具有写入权限。