Skip to contentSkip to conversation

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

PATCH Superseded Waldemar Brodkorb 2 participants 2 messages Jun 12, 2014

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 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.

---
 package/gcc/Config.in.host |    1 +
 1 file changed, 1 insertion(+)
package/gcc/Config.in.host +1 -0
index b6d4b5e..ecb98fc 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
Signature · 1 line
1.7.10.4
#1 lore raw

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

Dear Waldemar Brodkorb,

Quoted 10 lines · Waldemar Brodkorb

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.

---
 package/gcc/Config.in.host |    1 +
 1 file changed, 1 insertion(+)

If gcc 4.8.x is indeed broken on sparc, shouldn't we completely prevent the selection of 4.8.x on SPARC ?

Have you tested 4.9.x ?

Thanks for the report and patch!

Thomas

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