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.

[参考译文] SDK10.00.07.04 中包含的交叉编译器不支持-mfloat-abi=hard 选项。

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1526867/the-cross-compiler-included-in-sdk10-00-07-04-does-not-support-the--mfloat-abi-hard-option

器件型号:AM625

工具/软件:

#include <stdio.h>

int main() {
	float a = 1.2, b = 3.4;
	printf("Hardware FP: %.1f\n", a * b);
	return 0;
}

gaofuyi@ubuntu2004-92:~/share$ export path=/opt/arago-2023.10/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux:$path
gaofuyi@ubuntu2004-92:~/share$ aarch64-oe-linux-gcc -mfloat-abi=hard main.c -o main
aarch64-oe-linux-gcc:错误:无法识别的命令行选项‘-mfloat-abi=hard’
Gaofuyi@ubuntu2004-92:~/共享$