arm/trusted-firmware-m: remove -fcanon-prefix-map from DEBUG_PREFIX_MAP
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
@@ -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
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
@@ -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
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
@@ -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
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
Signed-off-by Ross Burton <[email protected]>--- 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@@ -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]]
-=-=-=-=-=-=-=-=-=-=-=-
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
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.
-Sumit
Quoted 2 lines
Ross
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.
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
@@ -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
Jon Mason
AppliedQuoted 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: 7abee726702fcd6a101e29309b1be4e27d445aceBest regards,
Signature · 1 line
Jon Mason <[email protected]>