haproxy: disable on sh4 with gcc < 7
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Mon, 28 Jan 2019 19:07:02 +0000 (20:07 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 28 Jan 2019 21:06:51 +0000 (22:06 +0100)
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

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/haproxy/Config.in

index cbcbc0c388699c9ef563b00df8e6be5aafe2e478..78cbf6e103dc9e4dbb5189fe89986533839c476b 100644 (file)
@@ -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