Skip to contentSkip to conversation

arm/trusted-firmware-m: remove -fcanon-prefix-map from DEBUG_PREFIX_MAP

PATCH Applied [email protected] 4 participants 9 messages Jun 12, 2023 – Jun 15, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 arm/trusted-firmware-m: remove -fcanon-prefix-map from DEBUG_PREFIX_MAP

From: Ross Burton <[email protected]>

This recipe uses the binary Arm compiler, which is based on GCC 12. Remove this GCC 13-specific option until the next release.

---
 meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m.inc | 3 +++
 1 file changed, 3 insertions(+)
meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m.inc +3 -0
index d0744423..02acfb8b 100644
@@ -80,6 +80,9 @@ AS[unexport] = "1"
 CC[unexport] = "1"
 LD[unexport] = "1"
 
+# remove once arm-none-eabi-gcc updates to 13 or newer like poky
+DEBUG_PREFIX_MAP:remove = "-fcanon-prefix-map"
+
 # python3-cryptography needs the legacy provider, so set OPENSSL_MODULES to the
 # right path until this is relocated automatically.
 export OPENSSL_MODULES="${STAGING_LIBDIR_NATIVE}/ossl-modules"
Signature · 1 line
2.34.1
#1 lore raw

PATCH 2/4 arm-bsp/external-system: remove -fcanon-prefix-map from DEBUG_PREFIX_MAP

From: Ross Burton <[email protected]>

This recipe uses the binary Arm compiler, which is based on GCC 12. Remove this GCC 13-specific option until the next release.

---
 .../recipes-bsp/external-system/external-system_0.1.0.bb       | 3 +++
 1 file changed, 3 insertions(+)
meta-arm-bsp/recipes-bsp/external-system/external-system_0.1.0.bb +3 -0
index dce29a93..8b09ab0d 100644
@@ -21,6 +21,9 @@ PRODUCT = "corstone-1000"
 S = "${WORKDIR}/git"
 B = "${WORKDIR}/build"
 
+# remove once arm-none-eabi-gcc updates to 13 or newer like poky
+DEBUG_PREFIX_MAP:remove = "-fcanon-prefix-map"
+
 LDFLAGS[unexport] = "1"
 
 do_compile() {
Signature · 1 line
2.34.1
#2 lore raw

PATCH 3/4 arm-toolchain/external-arm: remove -fcanon-prefix-map from DEBUG_PREFIX_MAP

In reply to [email protected]

From: Ross Burton <[email protected]>

The binaryh Arm compiler is based on GCC 12. Remove this GCC 13-specific option until the next release.

---
 meta-arm-toolchain/conf/distro/include/tcmode-external-arm.inc | 3 +++
 1 file changed, 3 insertions(+)
meta-arm-toolchain/conf/distro/include/tcmode-external-arm.inc +3 -0
index 71fac597..61a9c0a7 100644
@@ -4,6 +4,9 @@
 
 EXTERNAL_TOOLCHAIN ?= "/usr/local/arm-binary-toolchain/${TARGET_ARCH}"
 
+# oe-core passes this by default because it assumes GCC 13. This can be removed when Arm GCC is 13.1+.
+DEBUG_PREFIX_MAP:remove = "-fcanon-prefix-map"
+
 TOOLCHAIN_PATH_ADD = "${EXTERNAL_TOOLCHAIN}/bin:"
 PATH =. "${TOOLCHAIN_PATH_ADD}"
 
Signature · 1 line
2.34.1
#3 lore raw

Re: [meta-arm] [PATCH 3/4] arm-toolchain/external-arm: remove -fcanon-prefix-map from DEBUG_PREFIX_MAP

Quoted 6 lines · Ross Burton

From: Ross Burton <[email protected]>

The binaryh Arm compiler is based on GCC 12. Remove this GCC 13-specific option until the next release.

We have to keep this GCC 13 flag removed by default since we support multiple versions of Arm binary toolchain GCC 8 onwards.

-Sumit

Quoted 31 lines
---
 meta-arm-toolchain/conf/distro/include/tcmode-external-arm.inc | 3 +++
 1 file changed, 3 insertions(+)
meta-arm-toolchain/conf/distro/include/tcmode-external-arm.inc +3 -1
index 71fac597..61a9c0a7 100644
@@ -4,6 +4,9 @@
 
 EXTERNAL_TOOLCHAIN ?= "/usr/local/arm-binary-toolchain/${TARGET_ARCH}"
 
+# oe-core passes this by default because it assumes GCC 13. This can be removed when Arm GCC is 13.1+.
+DEBUG_PREFIX_MAP:remove = "-fcanon-prefix-map"
+
 TOOLCHAIN_PATH_ADD = "${EXTERNAL_TOOLCHAIN}/bin:"
 PATH =. "${TOOLCHAIN_PATH_ADD}"
 
--

2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#4760): https://lists.yoctoproject.org/g/meta-arm/message/4760
Mute This Topic: https://lists.yoctoproject.org/mt/99484944/1777089
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-arm/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#4 lore raw

Re: [meta-arm] [PATCH 3/4] arm-toolchain/external-arm: remove -fcanon-prefix-map from DEBUG_PREFIX_MAP

Quoted 11 lines · Sumit Garg
Quoted 6 lines · Ross Burton

From: Ross Burton <[email protected]>

The binaryh Arm compiler is based on GCC 12. Remove this GCC 13-specific option until the next release.

We have to keep this GCC 13 flag removed by default since we support multiple versions of Arm binary toolchain GCC 8 onwards.

8? <shudder>

Who supports this, where is this documented, and more importantly who wants an ancient gcc?

Ross

#5 lore raw

Re: [meta-arm] [PATCH 3/4] arm-toolchain/external-arm: remove -fcanon-prefix-map from DEBUG_PREFIX_MAP

Quoted 11 lines · Ross Burton
Quoted 9 lines · Sumit Garg
Quoted 6 lines · Ross Burton

From: Ross Burton <[email protected]>

The binaryh Arm compiler is based on GCC 12. Remove this GCC 13-specific option until the next release.

Quoted 6 lines
Quoted 2 lines

We have to keep this GCC 13 flag removed by default since we support multiple versions of Arm binary toolchain GCC 8 onwards.

8? <shudder>

Who supports this, where is this documented,

The external-arm toolchain recipe is designed to work with the toolchain which is pre-installed on the build machine. There isn't any hardcoded version but we rather extract version information from external toolchain here [1].

Quoted 1 line

and more importantly who wants an ancient gcc?

I have seen people still using prebuilt Linaro GCC which predates Arm GCC. I guess the reason being that the toolchain is an essential piece in building the overall product software stack and people are reluctant to not switch toolchain versions.

[1] https://git.yoctoproject.org/meta-arm/tree/meta-arm-toolchain/conf/distro/include/external-arm-toolchain-versions.inc#n26

-Sumit

Quoted 2 lines

Ross

#6 lore raw

Re: [meta-arm] [PATCH 3/4] arm-toolchain/external-arm: remove -fcanon-prefix-map from DEBUG_PREFIX_MAP

Quoted 15 lines · Sumit Garg
Quoted 14 lines · Ross Burton
Quoted 11 lines · Sumit Garg
Quoted 6 lines · Ross Burton

From: Ross Burton <[email protected]>

The binaryh Arm compiler is based on GCC 12. Remove this GCC 13-specific option until the next release.

We have to keep this GCC 13 flag removed by default since we support multiple versions of Arm binary toolchain GCC 8 onwards.

Quoted 8 lines
Quoted 3 lines

8? <shudder>

Who supports this, where is this documented,

The external-arm toolchain recipe is designed to work with the toolchain which is pre-installed on the build machine. There isn't any hardcoded version but we rather extract version information from external toolchain here [1].

Heh, this goes back to the early days of external toolchain support in OpenEmbedded Classic, which I added 14 years ago:
https://git.openembedded.org/openembedded/commit/?id=2512ba21856d0ffd942ddd3a7c834d585a117ff1

This is something being passed in from outside and OE/YP has no control over, hence some flexibility was designed in. It's not meant to support all the version ever released, but some flexibility is expected.

Quoted 8 lines
Quoted 1 line

and more importantly who wants an ancient gcc?

I have seen people still using prebuilt Linaro GCC which predates Arm GCC. I guess the reason being that the toolchain is an essential piece in building the overall product software stack and people are reluctant to not switch toolchain versions.

[1] https://git.yoctoproject.org/meta-arm/tree/meta-arm-toolchain/conf/distro/include/external-arm-toolchain-versions.inc#n26

#7 lore raw

PATCH 4/4 arm/scp-firmware: use concerete toolchain

In reply to [email protected]

From: Ross Burton <[email protected]>

There are not any alternatives for the virtual/arm-non-eabi-gcc provider, so just use the real recipe name.

---
 meta-arm/recipes-bsp/scp-firmware/scp-firmware_2.11.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arm/recipes-bsp/scp-firmware/scp-firmware_2.11.0.bb +1 -1
index 0bbd88c0..700120cf 100644
@@ -21,7 +21,7 @@ SCP_LOG_LEVEL       ?= "WARN"
 SCP_PLATFORM_FEATURE_SET ?= "0"
 
 INHIBIT_DEFAULT_DEPS = "1"
-DEPENDS = "virtual/arm-none-eabi-gcc-native \
+DEPENDS = "gcc-arm-none-eabi-native \
            cmake-native \
            ninja-native \
           "
Signature · 1 line
2.34.1
Applied
#8 lore raw
In reply to [email protected]
Quoted 2 lines · On Mon, 12 Jun 2023 15:56:56 +0100, [email protected] wrote:

This recipe uses the binary Arm compiler, which is based on GCC 12. Remove this GCC 13-specific option until the next release.

Applied, thanks!

[1/4] arm/trusted-firmware-m: remove -fcanon-prefix-map from DEBUG_PREFIX_MAP

      commit: f7e551e47988977c73331087c4b99178300a4a0c
[2/4] arm-bsp/external-system: remove -fcanon-prefix-map from DEBUG_PREFIX_MAP
      commit: 18be955c9a432b035f8ed7c5965d7eb70b5bfec9
[3/4] arm-toolchain/external-arm: remove -fcanon-prefix-map from DEBUG_PREFIX_MAP
      commit: f83c4abdbdc830787b882933dbe359225a6cf74a
[4/4] arm/scp-firmware: use concerete toolchain
      commit: 7abee726702fcd6a101e29309b1be4e27d445ace

Best regards,

Signature · 1 line
Jon Mason <[email protected]>