Skip to contentSkip to conversation

package/gcc: 2024.12 ARC gcc is in fact based on GCC 14.x

PATCH In review Thomas Petazzoni via buildroot 2 participants 13 messages Aug 10, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 package/gcc: 2024.12 ARC gcc is in fact based on GCC 14.x

Contrary to what was done in 8ef2ba2ec3cedae92c585135d3a1c5ae3e0f63d8 ("package/{gcc, binutils, gdb}: update ARC version to 2024.12"), the ARC gcc version 2024.12 is in fact based on GCC 14.2. This can be verified at:

https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/releases/tag/arc-2024.12-release

Which states "GCC 14.2 with ARC patches".

Fixes 8ef2ba2ec3cedae92c585135d3a1c5ae3e0f63d8 ("package/{gcc, binutils, gdb}: update ARC version to 2024.12")
---
 package/gcc/Config.in.host | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
package/gcc/Config.in.host +2 -2
index 2149846761..dc0867fa14 100644
@@ -10,10 +10,10 @@ choice
 	  Select the version of gcc you wish to use.
 
 config BR2_GCC_VERSION_ARC
-	bool "gcc arc (15.1)"
+	bool "gcc arc (14.2)"
 	# Only supported architecture
 	depends on BR2_arc
-	select BR2_TOOLCHAIN_GCC_AT_LEAST_15
+	select BR2_TOOLCHAIN_GCC_AT_LEAST_14
 
 config BR2_GCC_VERSION_POWERPC_SPE
 	bool "gcc powerpc spe"
Signature · 6 lines
2.50.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 2/3 support/scripts/gen-bootlin-toolchains: drop tweak for Microblaze bleeding-edge toolchains

This issue has been fixed in the Bootlin toolchains thanks to the Microblaze "atomic fix" in GCC.

---
 support/scripts/gen-bootlin-toolchains | 5 -----
 1 file changed, 5 deletions(-)
support/scripts/gen-bootlin-toolchains +0 -5
index 502411d4cc..42e1c995f5 100755
@@ -479,11 +479,6 @@ def get_toolchains():
                 variant = "bleeding-edge"
                 version = parts[2][len("bleeding-edge-"):]
 
-            # GCC 14.x on Microblaze is very broken, see
-            # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118280
-            if arch in ["microblazeel", "microblazebe"] and variant == "bleeding-edge":
-                continue
-
             tmp[(arch, libc, variant)] = version
 
         if len(tmp) == 0:
Signature · 6 lines
2.50.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Re: [Buildroot] [PATCH 2/3] support/scripts/gen-bootlin-toolchains: drop tweak for Microblaze bleeding-edge toolchains

Hello Thomas, All,

Le 10/08/2025 à 14:48, Thomas Petazzoni via buildroot a écrit :

Quoted 2 lines

This issue has been fixed in the Bootlin toolchains thanks to the Microblaze "atomic fix" in GCC.

I guess you are referring to the pending patch from Neal Frager [1].

[1]
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/

Note: patch 3/3 was not received yet on the mailing list (patch too big probably).

Best regards,
Romain

Quoted 12 lines
---
 support/scripts/gen-bootlin-toolchains | 5 -----
 1 file changed, 5 deletions(-)
support/scripts/gen-bootlin-toolchains +0 -0
index 502411d4cc..42e1c995f5 100755
@@ -479,11 +479,6 @@ def get_toolchains():
                 variant = "bleeding-edge"

support/scripts/gen-bootlin-toolchains def get_toolchains(): · line 484

Quoted 10 lines
support/scripts/gen-bootlin-toolchains +0 -5
                 version = parts[2][len("bleeding-edge-"):]
 
-            # GCC 14.x on Microblaze is very broken, see
-            # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118280
-            if arch in ["microblazeel", "microblazebe"] and variant == "bleeding-edge":
-                continue
-
             tmp[(arch, libc, variant)] = version
 
         if len(tmp) == 0:

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw

Re: [Buildroot] [PATCH 2/3] support/scripts/gen-bootlin-toolchains: drop tweak for Microblaze bleeding-edge toolchains

Quoted 4 lines · On Sun, 10 Aug 2025 16:11:09 +0200 Romain Naour <[email protected]> wrote:

I guess you are referring to the pending patch from Neal Frager [1].

[1]
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/

Correct. This patch is pending for Buildroot master, but I did integrate it into my toolchain build.

Quoted 1 line

Note: patch 3/3 was not received yet on the mailing list (patch too big probably).

Ah, good point. I approved the patch, which was sitting in the moderation queue (indeed it was too large).

Thanks a lot!

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw

Re: [Buildroot] [PATCH 2/3] support/scripts/gen-bootlin-toolchains: drop tweak for Microblaze bleeding-edge toolchains

Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni via buildroot <[email protected]> writes:

On Sun, 10 Aug 2025 16:11:09 +0200
Romain Naour <[email protected]> wrote:

Quoted 7 lines
Quoted 4 lines

I guess you are referring to the pending patch from Neal Frager [1].

[1]
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/

Correct. This patch is pending for Buildroot master, but I did integrate it into my toolchain build.

I wanted to apply this and get 2025.08-rc1 out - But if I read the discussion correctly, gcc 15.x is broken on Microblaze even with that patch, so what do we do?

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#5 lore raw

Re: [Buildroot] [PATCH 2/3] support/scripts/gen-bootlin-toolchains: drop tweak for Microblaze bleeding-edge toolchains

Hello Peter, Thomas, All,

Le 10/08/2025 à 20:40, Peter Korsgaard a écrit :

Quoted 10 lines
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni via buildroot <[email protected]> writes:

Quoted 4 lines · On Sun, 10 Aug 2025 16:11:09 +0200 Romain Naour <[email protected]> wrote:

I guess you are referring to the pending patch from Neal Frager [1].

[1]
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/

Quoted 7 lines
Quoted 2 lines

Correct. This patch is pending for Buildroot master, but I did integrate it into my toolchain build.

I wanted to apply this and get 2025.08-rc1 out - But if I read the discussion correctly, gcc 15.x is broken on Microblaze even with that patch, so what do we do?

Yes, we need another patch [1] to be able to test the rootfs with Qemu. Obviously this patch [1] is still unsure (except if you let me patch gcc code :p)

[1]
https://github.com/bootlin/buildroot-toolchains/commit/83947c7bb6158072bc2f52b58e90891cd3dc04a2

Best regards,
Romain

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#6 lore raw

Re: [Buildroot] [PATCH 2/3] support/scripts/gen-bootlin-toolchains: drop tweak for Microblaze bleeding-edge toolchains

Quoted 22 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Romain" == Romain Naour <[email protected]> writes:

Hello Peter, Thomas, All,
Le 10/08/2025 à 20:40, Peter Korsgaard a écrit :

Quoted 10 lines
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni via buildroot <[email protected]> writes:

Quoted 4 lines · On Sun, 10 Aug 2025 16:11:09 +0200 Romain Naour <[email protected]> wrote:

I guess you are referring to the pending patch from Neal Frager [1].

[1]
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/

Quoted 7 lines
Quoted 2 lines

Correct. This patch is pending for Buildroot master, but I did integrate it into my toolchain build.

I wanted to apply this and get 2025.08-rc1 out - But if I read the discussion correctly, gcc 15.x is broken on Microblaze even with that patch, so what do we do?

Quoted 5 lines

Yes, we need another patch [1] to be able to test the rootfs with Qemu. Obviously this patch [1] is still unsure (except if you let me patch gcc code :p)

[1]
https://github.com/bootlin/buildroot-toolchains/commit/83947c7bb6158072bc2f52b58e90891cd3dc04a2

Ahh. so the issue is (most likely) solved in the bootlin toolchains? Good, then lets add them.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#7 lore raw

Re: [Buildroot] [PATCH 2/3] support/scripts/gen-bootlin-toolchains: drop tweak for Microblaze bleeding-edge toolchains

In reply to Romain Naour via buildroot
Quoted 2 lines · On Sun, 10 Aug 2025 21:08:00 +0200 Romain Naour <[email protected]> wrote:

Yes, we need another patch [1] to be able to test the rootfs with Qemu. Obviously this patch [1] is still unsure (except if you let me patch gcc code :p)

I think this patch is reasonably OK. First of all, it very obviously only touches Microblaze code, so at worst we risk breaking Microblaze... which is anyway already broken. Also, this patch basically restore the behavior that was happening on Microblaze prior to
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=3b9b8d6cfdf59337f4b7ce10ce92a98044b2657b.
So overall, I think Romain you can submit this as a proper patch to Buildroot, I think it's a "good enough" workaround for something like Microblaze.

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#8 lore raw

Re: [Buildroot] [PATCH 2/3] support/scripts/gen-bootlin-toolchains: drop tweak for Microblaze bleeding-edge toolchains

Hello Thomas,

Le 10/08/2025 à 22:16, Thomas Petazzoni a écrit :

Quoted 6 lines
Quoted 2 lines · On Sun, 10 Aug 2025 21:08:00 +0200 Romain Naour <[email protected]> wrote:

Yes, we need another patch [1] to be able to test the rootfs with Qemu. Obviously this patch [1] is still unsure (except if you let me patch gcc code :p)

Quoted 9 lines

I think this patch is reasonably OK. First of all, it very obviously only touches Microblaze code, so at worst we risk breaking Microblaze... which is anyway already broken. Also, this patch basically restore the behavior that was happening on Microblaze prior to
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=3b9b8d6cfdf59337f4b7ce10ce92a98044b2657b.
So overall, I think Romain you can submit this as a proper patch to Buildroot, I think it's a "good enough" workaround for something like Microblaze.

Done:
https://lore.kernel.org/buildroot/[email protected]/T/#u

Best regards,
Romain

Quoted 2 lines

Thomas

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#9 lore raw

Re: [Buildroot] [PATCH 2/3] support/scripts/gen-bootlin-toolchains: drop tweak for Microblaze bleeding-edge toolchains

In reply to Thomas Petazzoni via buildroot
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni via buildroot <[email protected]> writes:

This issue has been fixed in the Bootlin toolchains thanks to the Microblaze "atomic fix" in GCC.

Committed, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#10 lore raw
In reply to Thomas Petazzoni via buildroot

Hello Thomas, All,

Le 10/08/2025 à 14:48, Thomas Petazzoni via buildroot a écrit :

Quoted 8 lines

Contrary to what was done in 8ef2ba2ec3cedae92c585135d3a1c5ae3e0f63d8 ("package/{gcc, binutils, gdb}: update ARC version to 2024.12"), the ARC gcc version 2024.12 is in fact based on GCC 14.2. This can be verified at:

https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/releases/tag/arc-2024.12-release

Which states "GCC 14.2 with ARC patches".

Indeed,

cat output/host-gcc-initial-arc-2024.12-release/gcc/BASE-VER 14.2.0

Patch 1/3 applied to master, thanks.

Best regards,
Romain

Quoted 14 lines
Fixes 8ef2ba2ec3cedae92c585135d3a1c5ae3e0f63d8 ("package/{gcc, binutils, gdb}: update ARC version to 2024.12")
---
 package/gcc/Config.in.host | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
package/gcc/Config.in.host +0 -0
index 2149846761..dc0867fa14 100644
@@ -10,10 +10,10 @@ choice
 	  Select the version of gcc you wish to use.
 

package/gcc/Config.in.host choice · line 19

Quoted 10 lines
package/gcc/Config.in.host +2 -2
 config BR2_GCC_VERSION_ARC
-	bool "gcc arc (15.1)"
+	bool "gcc arc (14.2)"
 	# Only supported architecture
 	depends on BR2_arc
-	select BR2_TOOLCHAIN_GCC_AT_LEAST_15
+	select BR2_TOOLCHAIN_GCC_AT_LEAST_14
 
 config BR2_GCC_VERSION_POWERPC_SPE
 	bool "gcc powerpc spe"

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#11 lore raw

PATCH 3/3 toolchain/toolchain-external/toolchain-external-bootlin: update to Bootlin toolchains 2025.08-1

In reply to Thomas Petazzoni via buildroot

The toolchains have been rebuilt with a recent Buildroot, and are based on:

- Stable toolchains:
GCC 14.3
Binutils 2.43.1
GDB 15.2
Linux headers 5.4
glibc 2.41
musl 1.2.5
uclibc-ng 1.0.45

- Bleeding edge toolchains
GCC 15.1
Binutils 2.44
GDB 16.3
Linux headers 5.15
glibc 2.41
musl 1.2.5
uclibc-ng 1.0.45

The microblaze bleeding-edge toolchains are back, since we integrated the "atomic issue" fix.

All tests are successful:

https://gitlab.com/tpetazzoni/buildroot/-/pipelines/1976388296

(note: the test branch had one more commit doing tweaks on the wget option and re-enabling the backup site for unit tests, which are needed to avoid intermittent failures of Gitlab CI jobs)

---
 .../tests/toolchain/test_external_bootlin.py  |   84 +
 .../Config.in.options                         | 1614 +++++++++--------
 .../toolchain-external-bootlin.hash           |  860 ++++-----
 .../toolchain-external-bootlin.mk             |  460 ++---
 4 files changed, 1645 insertions(+), 1373 deletions(-)
support/testing/tests/toolchain/test_external_bootlin.py +84 -0
index 74fe1635c9..6bcebf80c0 100644
@@ -795,6 +795,20 @@ class TestExternalToolchainBootlinM68kcoldfireUclibcStable(TestExternalToolchain
         TestExternalToolchain.common_check(self)
 
 
+class TestExternalToolchainBootlinMicroblazebeGlibcBleedingEdge(TestExternalToolchain):
+    config = """
+        BR2_microblazebe=y
+        BR2_TOOLCHAIN_EXTERNAL=y
+        BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
+        BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_MICROBLAZEBE_GLIBC_BLEEDING_EDGE=y
+        # BR2_TARGET_ROOTFS_TAR is not set
+        """
+    toolchain_prefix = "microblaze-linux"
+
+    def test_run(self):
+        TestExternalToolchain.common_check(self)
+
+
 class TestExternalToolchainBootlinMicroblazebeGlibcStable(TestExternalToolchain):
     config = """
         BR2_microblazebe=y
@@ -809,6 +823,20 @@ class TestExternalToolchainBootlinMicroblazebeGlibcStable(TestExternalToolchain)
         TestExternalToolchain.common_check(self)
 
 
+class TestExternalToolchainBootlinMicroblazebeMuslBleedingEdge(TestExternalToolchain):
+    config = """
+        BR2_microblazebe=y
+        BR2_TOOLCHAIN_EXTERNAL=y
+        BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
+        BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_MICROBLAZEBE_MUSL_BLEEDING_EDGE=y
+        # BR2_TARGET_ROOTFS_TAR is not set
+        """
+    toolchain_prefix = "microblaze-linux"
+
+    def test_run(self):
+        TestExternalToolchain.common_check(self)
+
+
 class TestExternalToolchainBootlinMicroblazebeMuslStable(TestExternalToolchain):
     config = """
         BR2_microblazebe=y
@@ -823,6 +851,20 @@ class TestExternalToolchainBootlinMicroblazebeMuslStable(TestExternalToolchain):
         TestExternalToolchain.common_check(self)
 
 
+class TestExternalToolchainBootlinMicroblazebeUclibcBleedingEdge(TestExternalToolchain):
+    config = """
+        BR2_microblazebe=y
+        BR2_TOOLCHAIN_EXTERNAL=y
+        BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
+        BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_MICROBLAZEBE_UCLIBC_BLEEDING_EDGE=y
+        # BR2_TARGET_ROOTFS_TAR is not set
+        """
+    toolchain_prefix = "microblaze-linux"
+
+    def test_run(self):
+        TestExternalToolchain.common_check(self)
+
+
 class TestExternalToolchainBootlinMicroblazebeUclibcStable(TestExternalToolchain):
     config = """
         BR2_microblazebe=y
@@ -837,6 +879,20 @@ class TestExternalToolchainBootlinMicroblazebeUclibcStable(TestExternalToolchain
         TestExternalToolchain.common_check(self)
 
 
+class TestExternalToolchainBootlinMicroblazeelGlibcBleedingEdge(TestExternalToolchain):
+    config = """
+        BR2_microblazeel=y
+        BR2_TOOLCHAIN_EXTERNAL=y
+        BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
+        BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_MICROBLAZEEL_GLIBC_BLEEDING_EDGE=y
+        # BR2_TARGET_ROOTFS_TAR is not set
+        """
+    toolchain_prefix = "microblazeel-linux"
+
+    def test_run(self):
+        TestExternalToolchain.common_check(self)
+
+
 class TestExternalToolchainBootlinMicroblazeelGlibcStable(TestExternalToolchain):
     config = """
         BR2_microblazeel=y
@@ -851,6 +907,20 @@ class TestExternalToolchainBootlinMicroblazeelGlibcStable(TestExternalToolchain)
         TestExternalToolchain.common_check(self)
 
 
+class TestExternalToolchainBootlinMicroblazeelMuslBleedingEdge(TestExternalToolchain):
+    config = """
+        BR2_microblazeel=y
+        BR2_TOOLCHAIN_EXTERNAL=y
+        BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
+        BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_MICROBLAZEEL_MUSL_BLEEDING_EDGE=y
+        # BR2_TARGET_ROOTFS_TAR is not set
+        """
+    toolchain_prefix = "microblazeel-linux"
+
+    def test_run(self):
+        TestExternalToolchain.common_check(self)
+
+
 class TestExternalToolchainBootlinMicroblazeelMuslStable(TestExternalToolchain):
     config = """
         BR2_microblazeel=y
@@ -865,6 +935,20 @@ class TestExternalToolchainBootlinMicroblazeelMuslStable(TestExternalToolchain):
         TestExternalToolchain.common_check(self)
 
 
+class TestExternalToolchainBootlinMicroblazeelUclibcBleedingEdge(TestExternalToolchain):
+    config = """
+        BR2_microblazeel=y
+        BR2_TOOLCHAIN_EXTERNAL=y
+        BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
+        BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_MICROBLAZEEL_UCLIBC_BLEEDING_EDGE=y
+        # BR2_TARGET_ROOTFS_TAR is not set
+        """
+    toolchain_prefix = "microblazeel-linux"
+
+    def test_run(self):
+        TestExternalToolchain.common_check(self)
+
+
 class TestExternalToolchainBootlinMicroblazeelUclibcStable(TestExternalToolchain):
     config = """
         BR2_microblazeel=y
toolchain/toolchain-external/toolchain-external-bootlin/Config.in.options +877 -737

2,880 lines not on this page · raw message

toolchain/toolchain-external/toolchain-external-bootlin/toolchain-external-bootlin.hash +436 -424

860 lines not on this page · raw message

toolchain/toolchain-external/toolchain-external-bootlin/toolchain-external-bootlin.mk +248 -212

460 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 6 lines
2.50.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

Part of the diff is not shown here. View the raw message.

#12 lore raw

Re: [Buildroot] [PATCH 3/3] toolchain/toolchain-external/toolchain-external-bootlin: update to Bootlin toolchains 2025.08-1

Quoted 28 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni via buildroot <[email protected]> writes:

The toolchains have been rebuilt with a recent Buildroot, and are based on:

- Stable toolchains:
GCC 14.3
Binutils 2.43.1
GDB 15.2
Linux headers 5.4
glibc 2.41
musl 1.2.5
uclibc-ng 1.0.45

- Bleeding edge toolchains
GCC 15.1
Binutils 2.44
GDB 16.3
Linux headers 5.15
glibc 2.41
musl 1.2.5
uclibc-ng 1.0.45

The microblaze bleeding-edge toolchains are back, since we integrated the "atomic issue" fix.

All tests are successful:

Quoted 7 lines

https://gitlab.com/tpetazzoni/buildroot/-/pipelines/1976388296

(note: the test branch had one more commit doing tweaks on the wget option and re-enabling the backup site for unit tests, which are needed to avoid intermittent failures of Gitlab CI jobs)

Committed, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot