Part Number: TDA4VM
Cannot build U-Boot after upgraded gcc. The build failed with the error:
gcc: error: unrecognized command-line option ‘-fcanon-prefix-map’; did you mean ‘-fmacro-prefix-map=’?
gcc: error: unrecognized command-line option ‘-fcanon-prefix-map’; did you mean ‘-fmacro-prefix-map=’?
error: command '/usr/bin/gcc' failed with exit code 1
Exactly the same issue as 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
But the error disappears when some configuration options are removed.
--- /tmp/a72/.config 2025-12-02 08:44:09.440197067 +0800
+++ config.a72 2025-12-02 08:26:17.271401022 +0800
@@ -2377,7 +2377,7 @@
CONFIG_MKIMAGE_DTC_PATH="dtc"
CONFIG_TOOLS_CRC32=y
CONFIG_TOOLS_LIBCRYPTO=y
-CONFIG_TOOLS_KWBIMAGE=y
+# CONFIG_TOOLS_KWBIMAGE is not set
CONFIG_TOOLS_FIT=y
CONFIG_TOOLS_FIT_FULL_CHECK=y
CONFIG_TOOLS_FIT_PRINT=y
@@ -2391,6 +2391,6 @@
CONFIG_TOOLS_SHA256=y
CONFIG_TOOLS_SHA384=y
CONFIG_TOOLS_SHA512=y
-CONFIG_TOOLS_MKEFICAPSULE=y
+# CONFIG_TOOLS_MKEFICAPSULE is not set
# CONFIG_FSPI_CONF_HEADER is not set
# CONFIG_TOOLS_MKFWUMDATA is not set
The test result seems all right as for now.
Dashi Cao