工具与软件:
您好!
我使用的是 https://software-dl.ti.com/processor-sdk-linux/esd/AM57X/09_03_06_05/exports/docs/linux/Overview/GCC_ToolChain.html#链接 使用编译简单的 hello_world.c (如链接中所述) Linux SDK 9.03.06.05 内容 AM5728 EVM 但我遇到了编译错误:-
hello_world.c 的内容
#include <stdio.h>
int main() {
printf ("Hello World from TI!!!\n");
return 0;
}
编译时出错。
root@TI-SDK-9:/tmp# ${CROSS_COMPILE_32}gcc --sysroot=${SYSROOT_32} hello_world.c -o hello_world
In file included from /opt/ti-processor-sdk-linux-am57xx-evm-09_03_06_05/linux-devkit/sysroots/armv7at2hf-neon-oe-linux-gnueabi/usr/include/gnu/stubs.h:23,
from /opt/ti-processor-sdk-linux-am57xx-evm-09_03_06_05/linux-devkit/sysroots/armv7at2hf-neon-oe-linux-gnueabi/usr/include/features.h:514,
from /opt/ti-processor-sdk-linux-am57xx-evm-09_03_06_05/linux-devkit/sysroots/armv7at2hf-neon-oe-linux-gnueabi/usr/include/bits/libc-header-start.h:33,
from /opt/ti-processor-sdk-linux-am57xx-evm-09_03_06_05/linux-devkit/sysroots/armv7at2hf-neon-oe-linux-gnueabi/usr/include/stdio.h:27,
from hello_world.c:1:
/opt/ti-processor-sdk-linux-am57xx-evm-09_03_06_05/linux-devkit/sysroots/armv7at2hf-neon-oe-linux-gnueabi/usr/include/gnu/stubs-32.h:7:11: fatal error: gnu/stubs-soft.h: No such file or directory
7 | # include <gnu/stubs-soft.h>
| ^~~~~~~~
compilation terminated.
I have installed Linux SDK 09.03.06.05 on ubuntu 22.04.
Please help!