This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] 编译器:MSP430 GCC 包文件权限

Guru**** 2582405 points
Other Parts Discussed in Thread: MSP430FR5972

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/793613/compiler-msp430-gcc-package-file-permissions

主题中讨论的其他器件:MSP430FR5972

工具/软件:TI C/C++编译器

我已经使用了4.1版本的 gcc、并且只是尝试安装最新的6.1版本、但某些文件权限错误。 我像以前一样在/usr/ti/gcc 中安装了该软件包。

msp430-gcc-full-linux-x64-installer-6.1.0.0.run

运行 gcc 时、它说找不到 CC1。 其原因 是它隐藏了:

LS /usr/ti/gcc/libexec/gcc/msp430-elf -l
共计12.
drwxr-xr-x 4根根4096 2016年8月30日5.3.0
drwxr-xr-x 4根根4096 APR 16 14:15 7.3.1
德鲁克斯--- 。 4根根4096 APR 16 14:15 7.3.2

这很容易修复、但会导致更多的权限被拒绝错误:

/usr/ti/gcc/bin/msp430-elf-gcc -mmcu=msp430fr5972 -Wall -g -O2 -i /usr/ti/gcc/include  -c -o main.o main.c
CC1:错误:/usr/ti/gcc/bin/../lib/gcc/msp430-elf/7.3.2/include:权限被拒绝
CC1:错误:/usr/ti/gcc/bin/../lib/gcc/msp430-elf/7.3.2/include-fixed:权限被拒绝
CC1:错误:/usr/ti/gcc/bin/../lib/gcc/msp430-elf/7.3.2/../../../../msp430-elf/sys-include:权限被拒绝
CC1:错误:/usr/ti/gcc/bin/../lib/gcc/msp430-elf/7.3.2/../../../../msp430-elf/include:权限被拒绝
CC1:错误:/usr/ti/gcc/bin/../lib/gcc/../../lib/gcc/msp430-elf/7.3.2/include:权限被拒绝
CC1:错误:/usr/ti/gcc/bin/../lib/gcc/../../lib/gcc/msp430-elf/7.3.2/include-fixed:权限被拒绝
CC1:错误:/usr/ti/gcc/bin/../lib/gcc/../../lib/gcc/msp430-elf/7.3.2/../../../../msp430-elf/sys-include:权限被拒绝
CC1:错误:/usr/ti/gcc/bin/../lib/gcc/../../lib/gcc/msp430-elf/7.3.2/../../../../msp430-elf/include:权限被拒绝
制造:***[ :main.o]错误1

另一个具有错误文件权限的目录。 我可能会长时间跟踪这些内容。