TI中文支持网
TI专业的中文技术问题搜集分享网站

PROCESSOR-SDK-AM335X: 最新的SDK09.01.00.001 使用make编译内核失败

Part Number:PROCESSOR-SDK-AM335X

在ti-processor-sdk-linux-am335x-evm-09.01.00.001目录下,终端里执行make,编译失败。提示如下

SYNC include/config/auto.conf.cmd
HOSTCC scripts/sorttable
HOSTCXX scripts/gcc-plugins/arm_ssp_per_task_plugin.so
In file included from /home/wxc/ti-processor-sdk-linux-am335x-evm-09.01.00.001/external-toolchain-dir/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-linux-gnueabihf/bin/../lib/gcc/arm-none-linux-gnueabihf/11.3.1/plugin/include/gcc-plugin.h:28,
from scripts/gcc-plugins/gcc-common.h:7,
from scripts/gcc-plugins/arm_ssp_per_task_plugin.c:3:
/home/wxc/ti-processor-sdk-linux-am335x-evm-09.01.00.001/external-toolchain-dir/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-linux-gnueabihf/bin/../lib/gcc/arm-none-linux-gnueabihf/11.3.1/plugin/include/system.h:698:10: fatal error: gmp.h: 没有那个文件或目录
698 | #include <gmp.h>
| ^~~~~~~
compilation terminated.
make[3]: *** [scripts/gcc-plugins/Makefile:54:scripts/gcc-plugins/arm_ssp_per_task_plugin.so] 错误 1
make[2]: *** [scripts/Makefile.build:502:scripts/gcc-plugins] 错误 2
make[2]: *** 正在等待未完成的任务….
make[1]: *** [Makefile:1273:scripts] 错误 2
make[1]: 离开目录“/home/wxc/ti-processor-sdk-linux-am335x-evm-09.01.00.001/board-support/ti-linux-kernel-6.1.46+gitAUTOINC+1d4b5da681-g1d4b5da681”
make: *** [makerules/Makefile_linux:8:linux] 错误 2

提示找不到gmp.h文件

user3918678:

Shine能否提供下帮助,谢谢

,

Shine:

请看一下是否按照下面user guide上的步骤操作的?https://software-dl.ti.com/processor-sdk-linux/esd/AM335X/09_01_00_001/exports/docs/linux/Overview_Building_the_SDK.html

,

user3918678:

不是啊,这里我不是编译SDK,而是在SDK目录下执行make,编译内核出错

,

user3918678:

已解决,ubuntu终端里执行

sudo apt install libgmp-dev

sudo apt install libmpc-dev

就可以了

,

Shine:

感谢分享解决办法~

赞(0)
未经允许不得转载:TI中文支持网 » PROCESSOR-SDK-AM335X: 最新的SDK09.01.00.001 使用make编译内核失败
分享到: 更多 (0)