All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] mozjs: set -fno-schedule-insns2 on both CFLAGS and CXXFLAGS
@ 2018-08-01  3:06 Ricardo Salveti
  2018-08-01  3:06 ` [PATCH 2/2] mozjs: add support for RISC-V Ricardo Salveti
  2018-08-02  8:34 ` [PATCH 1/2] mozjs: set -fno-schedule-insns2 on both CFLAGS and CXXFLAGS Khem Raj
  0 siblings, 2 replies; 6+ messages in thread
From: Ricardo Salveti @ 2018-08-01  3:06 UTC (permalink / raw)
  To: openembedded-devel

Mozjs fails to start on several architectures due broken build
optimizations when building with GCC >= 6.

Set -fno-schedule-insns2 as workaround (flag also used by Firefox and
Debian).

Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
---
 meta-oe/recipes-extended/mozjs/mozjs_52.8.1.bb | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta-oe/recipes-extended/mozjs/mozjs_52.8.1.bb b/meta-oe/recipes-extended/mozjs/mozjs_52.8.1.bb
index da80b63..adc27ac 100644
--- a/meta-oe/recipes-extended/mozjs/mozjs_52.8.1.bb
+++ b/meta-oe/recipes-extended/mozjs/mozjs_52.8.1.bb
@@ -30,6 +30,11 @@ CONFLICT_DISTRO_FEATURES_mipsarchn32 = "ld-is-gold"
 
 DEPENDS += "nspr zlib"
 
+# Avoid broken JIT on several architectures (from Firefox and Debian)
+# https://bugzilla.mozilla.org/show_bug.cgi?id=1245783
+CFLAGS += "-fno-schedule-insns2"
+CXXFLAGS += "-fno-schedule-insns2"
+
 # nspr's package-config is ignored so set libs manually
 EXTRA_OECONF = " \
     --target=${TARGET_SYS} \
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-08-16  2:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-01  3:06 [PATCH 1/2] mozjs: set -fno-schedule-insns2 on both CFLAGS and CXXFLAGS Ricardo Salveti
2018-08-01  3:06 ` [PATCH 2/2] mozjs: add support for RISC-V Ricardo Salveti
2018-08-02  8:34 ` [PATCH 1/2] mozjs: set -fno-schedule-insns2 on both CFLAGS and CXXFLAGS Khem Raj
2018-08-14 18:50   ` Andy
2018-08-16  2:17     ` Ricardo Salveti
2018-08-16  2:27       ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.