Skip to contentSkip to conversation

package/guile: disable jit for host and target gcc < 5

PATCH New Fabrice Fontaine 2 participants 2 messages Nov 10, 2020 – Nov 11, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/guile: disable jit for host and target gcc < 5

jit also raises build failures with host gcc 4.9.2 and x86_64 so disable it if host gcc < 5 and update workaround added by commit d8dad069c861468b17397f01875b95e7375891d7 to apply it for all architectures and not only ARM

Fixes:
- http://autobuild.buildroot.org/results/c2c/c2c31ff5c206bd3791d64d953dc1574546644b05

---
 package/guile/guile.mk | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
package/guile/guile.mk +5 -2
index 5e901bb10f..0e7328f199 100644
@@ -38,10 +38,13 @@ ifeq ($(BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_ARM)$(BR2_OPTIMIZE_S),yy)
 GUILE_CFLAGS += -O2
 endif
 
-# jit triggers build failures on ARM and gcc < 5
-ifeq ($(BR2_arm):$(BR2_TOOLCHAIN_GCC_AT_LEAST_5),y:)
+# jit triggers build failures with gcc < 5
+ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_5),)
 GUILE_CONF_OPTS += --disable-jit
 endif
+ifeq ($(BR2_HOST_GCC_AT_LEAST_5),)
+HOST_GUILE_CONF_OPTS += --disable-jit
+endif
 
 # It can use readline, but on the condition that it was build against
 # ncurses. If both aren't present disable readline support since the
Signature · 1 line
2.28.0
#1 lore raw

PATCH 1/1 package/guile: disable jit for host and target gcc < 5

Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

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

jit also raises build failures with host gcc 4.9.2 and x86_64 so disable it if host gcc < 5 and update workaround added by commit d8dad069c861468b17397f01875b95e7375891d7 to apply it for all architectures and not only ARM

Fixes:
- http://autobuild.buildroot.org/results/c2c/c2c31ff5c206bd3791d64d953dc1574546644b05

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard