Skip to contentSkip to conversation

haproxy: disable on sh4 with gcc < 7

PATCH New Fabrice Fontaine 2 participants 4 messages Jan 28, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 haproxy: disable on sh4 with gcc < 7

Build fails on sh4:
src/dns.c:290:1: error: unable to find a register to spill in class 'R0_REGS'
}

This build failure seems related to a known gcc bug that has been fixed only in gcc 7:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60040

Fixes:
- http://autobuild.buildroot.org/results/2e181cc874d5389f10ecddb0d11253c3aa5e7fc4

---
 package/haproxy/Config.in | 2 ++
 1 file changed, 2 insertions(+)
package/haproxy/Config.in +2 -0
index cbcbc0c388..78cbf6e103 100644
@@ -1,5 +1,7 @@
 config BR2_PACKAGE_HAPROXY
 	bool "haproxy"
+	# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60040
+	depends on !(BR2_sh4 && !BR2_TOOLCHAIN_GCC_AT_LEAST_7)
 	depends on BR2_USE_MMU # fork()
 	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # __sync_*_4 intrisics
 	help
Signature · 1 line
2.14.1
#1 lore raw

PATCH 1/1 haproxy: disable on sh4 with gcc < 7

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

"Fabrice" == Fabrice Fontaine <[email protected]> writes:

Build fails on sh4:
src/dns.c:290:1: error: unable to find a register to spill in class 'R0_REGS'
}

Quoted 8 lines

This build failure seems related to a known gcc bug that has been fixed only in gcc 7:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60040

Fixes:
- http://autobuild.buildroot.org/results/2e181cc874d5389f10ecddb0d11253c3aa5e7fc4

Committed, thanks.

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

PATCH 1/1 haproxy: disable on sh4 with gcc < 7

In reply to Fabrice Fontaine
Quoted 23 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabrice" == Fabrice Fontaine <[email protected]> writes:

Build fails on sh4:
src/dns.c:290:1: error: unable to find a register to spill in class 'R0_REGS'
}

This build failure seems related to a known gcc bug that has been fixed only in gcc 7:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60040

Fixes:
- http://autobuild.buildroot.org/results/2e181cc874d5389f10ecddb0d11253c3aa5e7fc4

---
 package/haproxy/Config.in | 2 ++
 1 file changed, 2 insertions(+)
package/haproxy/Config.in +0 -0
index cbcbc0c388..78cbf6e103 100644

package/haproxy/Config.in line 4

Quoted 4 lines
package/haproxy/Config.in +2 -0
@@ -1,5 +1,7 @@
 config BR2_PACKAGE_HAPROXY
 	bool "haproxy"
+	# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60040
+	depends on !(BR2_sh4 && !BR2_TOOLCHAIN_GCC_AT_LEAST_7)

Have you btw verified that this only happens on sh4 and not the other sh variants?

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

PATCH 1/1 haproxy: disable on sh4 with gcc < 7

Dear Peter,

Le lun. 28 janv. 2019 ? 22:08, Peter Korsgaard <[email protected]> a ?crit :

Quoted 19 lines
Quoted 18 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

"Fabrice" == Fabrice Fontaine <[email protected]> writes:

Build fails on sh4:
src/dns.c:290:1: error: unable to find a register to spill in class 'R0_REGS'
}

This build failure seems related to a known gcc bug that has been fixed only in gcc 7:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60040

Fixes:
- http://autobuild.buildroot.org/results/2e181cc874d5389f10ecddb0d11253c3aa5e7fc4

---
 package/haproxy/Config.in | 2 ++
 1 file changed, 2 insertions(+)
Quoted 12 lines

package/haproxy/Config.in line 4

Quoted 9 lines
package/haproxy/Config.in +2 -0
index cbcbc0c388..78cbf6e103 100644
@@ -1,5 +1,7 @@
 config BR2_PACKAGE_HAPROXY
     bool "haproxy"
+    # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60040
+    depends on !(BR2_sh4 && !BR2_TOOLCHAIN_GCC_AT_LEAST_7)

Have you btw verified that this only happens on sh4 and not the other sh variants?

Nope, I will test it and keep you informed of the results.

Quoted 3 lines

--
Bye, Peter Korsgaard

Best Regards,

Fabrice