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.

[参考译文] PROCESSOR-SDK-AM64X:UBoot build error with gcc:error:unrecognized command-line option‘‘-fcanon-prefix-map ';you means 'de-fmacro-prefix-map='?

Guru**** 2484615 points


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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1555455/processor-sdk-am64x-uboot-build-error-with-gcc-error-unrecognized-command-line-option--fcanon-prefix-map-did-you-mean--fmacro-prefix-map

器件型号:PROCESSOR-SDK-AM64X


工具/软件:

要编译 uboot、请按照 https://software-dl.ti.com/processor-sdk-linux/esd/AM62X/11_00_09_04/exports/docs/linux/Foundational_Components /U-Boot/UG-General-Info.html 中提供的步骤进行操作

make 生成错误

GCC:‘:无法识别的命令行选项‘-fcanon-prefix-map’;您是指‘-fmacro-prefix-map=’吗?
GCC:‘:无法识别的命令行选项‘-fcanon-prefix-map’;您是指‘-fmacro-prefix-map=’吗?
错误:命令“/usr/bin/gcc “失败、退出代码为 1
make[3]:***[/home/swathi/defaultti/ti-processor-sdk-linux-rt-am64xx-evm-11.01.05.03/board-support/ti-u-boot-2025.01 + git/scripts/dcc/pylibfdt/Makefile:33:rebuild]错误 1.
make[2]:***[/home/swathi/defaultti/ti-processor-sdk-linux-rt-am64xx-evm-11.01.05.03/board-support/ti-u-boot-2025.01 + git/scripts/Makefile.build:398:scripts/dtc/pylibfdt] Error 2
MAKE[1]:***[/home/swathi/defaultti/ti-processor-sdk-linux-rt-am64xx-evm-11.01.05.03/board-support/ti-u-boot-2025.01 + git/Makefile:2081:Scripts_DTC]错误 2.
make[1]:离开目录“/home/swathi/defaultti/ti-processor-sdk-linux-rt-am64xx-evm-11.01.05.03/board-support/ti-u-boot-2025.01 + git/out/a53“

GCC 版本 GCC 13.4 与 U-Boot 版本 (2025.01) 不兼容

我已安装所有这些软件包。

git xz-utils build-Essential autoconf flex bison libssl-dev bc libncursess-dev python3 python3-setuptools python3-dev python3-yaml python3-jsonschema python3-pyelftools swig yamlint libgnutls28-dev datacramlftools