Skip to contentSkip to conversation

gcc 4.8.x does not compile a working kernel for sparc

PATCH Superseded Waldemar Brodkorb 3 participants 5 messages Jun 13, 2014 – Jun 14, 2014

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 gcc 4.8.x does not compile a working kernel for sparc

Since the switch to 4.8.x as default, the qemu-sparc target is broken. For a gcc bug report see here:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60624

Switch back to gcc 4.7.x as default for sparc.
Disable 4.8/4.9 as suggested by Thomas Petazzoni.
I even disabled gcc snapshot, it works right now, because it is an old 4.8.0 snapshot by default, but as soon as this is updated sparc build will break.

---
 package/gcc/Config.in.host |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
package/gcc/Config.in.host +4 -3
index 3bdfffc..309750c 100644
@@ -10,6 +10,7 @@ choice
 	prompt "GCC compiler Version"
 	default BR2_GCC_VERSION_4_4_X if BR2_sparc_sparchfleon || BR2_sparc_sparchfleonv8 || BR2_sparc_sparcsfleon || BR2_sparc_sparcsfleonv8
 	default BR2_GCC_VERSION_4_2_2_AVR32_2_1_5 if BR2_avr32
+	default BR2_GCC_VERSION_4_7_X if BR2_sparc
 	default BR2_GCC_VERSION_4_8_X if BR2_aarch64
 	default BR2_GCC_VERSION_4_8_ARC if BR2_arc
 	default BR2_GCC_VERSION_4_9_X if BR2_microblaze || BR2_powerpc64le
@@ -61,7 +62,7 @@ choice
 		bool "gcc 4.7.x"
 
 	config BR2_GCC_VERSION_4_8_X
-		depends on !BR2_microblaze && !BR2_arc && !BR2_avr32 && !BR2_bfin && !BR2_cortex_a12 && !BR2_sparc_sparchfleon && !BR2_sparc_sparchfleonv8 && !BR2_sparc_sparcsfleon && !BR2_sparc_sparcsfleonv8 && !BR2_powerpc64le
+		depends on !BR2_microblaze && !BR2_arc && !BR2_avr32 && !BR2_bfin && !BR2_cortex_a12 && !BR2_sparc_sparchfleon && !BR2_sparc_sparchfleonv8 && !BR2_sparc_sparcsfleon && !BR2_sparc_sparcsfleonv8 && !BR2_powerpc64le && !BR2_sparc
 		select BR2_GCC_NEEDS_MPC
 		select BR2_GCC_SUPPORTS_GRAPHITE
 		bool "gcc 4.8.x"
@@ -72,13 +73,13 @@ choice
 		bool "gcc 4.8-arc"
 
 	config BR2_GCC_VERSION_4_9_X
-		depends on !BR2_arc && !BR2_avr32 && !BR2_bfin && !BR2_sparc_sparchfleon && !BR2_sparc_sparchfleonv8 && !BR2_sparc_sparcsfleon && !BR2_sparc_sparcsfleonv8
+		depends on !BR2_arc && !BR2_avr32 && !BR2_bfin && !BR2_sparc_sparchfleon && !BR2_sparc_sparchfleonv8 && !BR2_sparc_sparcsfleon && !BR2_sparc_sparcsfleonv8 && !BR2_sparc
 		select BR2_GCC_NEEDS_MPC
 		select BR2_GCC_SUPPORTS_GRAPHITE
 		bool "gcc 4.9.x"
 
 	config BR2_GCC_VERSION_SNAP
-		depends on !BR2_arc && !BR2_avr32 && !BR2_sparc_sparchfleon && !BR2_sparc_sparchfleonv8 && !BR2_sparc_sparcsfleon && !BR2_sparc_sparcsfleonv8
+		depends on !BR2_arc && !BR2_avr32 && !BR2_sparc_sparchfleon && !BR2_sparc_sparchfleonv8 && !BR2_sparc_sparcsfleon && !BR2_sparc_sparcsfleonv8 && !BR2_sparc
 		select BR2_GCC_NEEDS_MPC
 		# musl patches only for gcc 4.7+
 		depends on !BR2_TOOLCHAIN_BUILDROOT_MUSL
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH v2 1/1 gcc 4.8.x does not compile a working kernel for sparc

Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Waldemar" == Waldemar Brodkorb <[email protected]> writes:

Since the switch to 4.8.x as default, the qemu-sparc target is broken. For a gcc bug report see here:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60624

Quoted 7 lines

Switch back to gcc 4.7.x as default for sparc.
Disable 4.8/4.9 as suggested by Thomas Petazzoni.
I even disabled gcc snapshot, it works right now, because it is an old 4.8.0 snapshot by default, but as soon as this is updated sparc build will break.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

PATCH v2 1/1 gcc 4.8.x does not compile a working kernel for sparc

In reply to Waldemar Brodkorb
Quoted 22 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Waldemar" == Waldemar Brodkorb <[email protected]> writes:

Since the switch to 4.8.x as default, the qemu-sparc target is broken. For a gcc bug report see here:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60624

Switch back to gcc 4.7.x as default for sparc.
Disable 4.8/4.9 as suggested by Thomas Petazzoni.
I even disabled gcc snapshot, it works right now, because it is an old 4.8.0 snapshot by default, but as soon as this is updated sparc build will break.

---
 package/gcc/Config.in.host |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
package/gcc/Config.in.host +0 -0
index 3bdfffc..309750c 100644

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

Quoted 4 lines
package/gcc/Config.in.host +1 -0
@@ -10,6 +10,7 @@ choice
 	prompt "GCC compiler Version"
 	default BR2_GCC_VERSION_4_4_X if BR2_sparc_sparchfleon || BR2_sparc_sparchfleonv8 || BR2_sparc_sparcsfleon || BR2_sparc_sparcsfleonv8
 	default BR2_GCC_VERSION_4_2_2_AVR32_2_1_5 if BR2_avr32
+	default BR2_GCC_VERSION_4_7_X if BR2_sparc

On a related note, this was presumably for the v8 variant? Do you know if we still need to stick to gcc 4.4.x for the leon variants?

Signature · 1 line
Bye, Peter Korsgaard
#3 lore raw

PATCH v2 1/1 gcc 4.8.x does not compile a working kernel for sparc

Hi Peter,
Peter Korsgaard wrote,

Quoted 17 lines
Quoted 16 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Waldemar" == Waldemar Brodkorb <[email protected]> writes:

Since the switch to 4.8.x as default, the qemu-sparc target is broken. For a gcc bug report see here:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60624

Switch back to gcc 4.7.x as default for sparc.
Disable 4.8/4.9 as suggested by Thomas Petazzoni.
I even disabled gcc snapshot, it works right now, because it is an old 4.8.0 snapshot by default, but as soon as this is updated sparc build will break.

---
 package/gcc/Config.in.host |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
Quoted 11 lines

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

Quoted 9 lines
package/gcc/Config.in.host +1 -0
index 3bdfffc..309750c 100644
@@ -10,6 +10,7 @@ choice
 	prompt "GCC compiler Version"
 	default BR2_GCC_VERSION_4_4_X if BR2_sparc_sparchfleon || BR2_sparc_sparchfleonv8 || BR2_sparc_sparcsfleon || BR2_sparc_sparcsfleonv8
 	default BR2_GCC_VERSION_4_2_2_AVR32_2_1_5 if BR2_avr32
+	default BR2_GCC_VERSION_4_7_X if BR2_sparc

On a related note, this was presumably for the v8 variant?

Yes.

Quoted 2 lines

Do you know
if we still need to stick to gcc 4.4.x for the leon variants?

I have no idea. I asked about the price of a leon3 evaluation board in the past, but 1000 euro was to high for me. The simulators are non-free, so I could not try these. Do you have hardware or a license for leon simulators? Who has added support for these systems?

best regards
Waldemar

#4 lore raw

PATCH v2 1/1 gcc 4.8.x does not compile a working kernel for sparc

Dear Waldemar Brodkorb,

Quoted 5 lines · Waldemar Brodkorb

I have no idea. I asked about the price of a leon3 evaluation board in the past, but 1000 euro was to high for me. The simulators are non-free, so I could not try these. Do you have hardware or a license for leon simulators? Who has added support for these systems?

You should talk with Konrad Eisele <[email protected]>, who added the Leon Sparc support in Buildroot, and sent a couple of patches around this topic in the past.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com