[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#909180: mozjs60: Please build with -mlra on sh4



Source: mozjs60
Version: 60.1.0-1
Severity: normal
Tags: patch
User: debian-superh@lists.debian.org
Usertags: sh4

Hello!

mozjs60 currently fails to build from source on sh4 because gcc's
register allocator on sh4 is failing for one source file.

Luckily, gcc has an alternative register allocator called "lra"
which can be enabled with "-mlra". It's been planned to make "-mlra"
the default on sh4 but that hasn't happened yet since the new allocator
can sometimes have issues, too, as it's not been thoroughly tested
yet.

Please apply the attached patch to build with -mlra.

Adrian

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
--- mozjs60-60.1.0/debian/rules.orig	2018-08-16 09:00:48.000000000 +0200
+++ mozjs60-60.1.0/debian/rules	2018-09-19 11:33:39.881130333 +0200
@@ -31,6 +31,10 @@
         DEB_CFLAGS_MAINT_APPEND += -fno-schedule-insns
         DEB_CXXFLAGS_MAINT_APPEND += -fno-schedule-insns
 endif
+ifneq (,$(findstring $(DEB_BUILD_ARCH),sh4))
+        DEB_CFLAGS_MAINT_APPEND += -mlra
+        DEB_CXXFLAGS_MAINT_APPEND += -mlra
+endif
 export DEB_CFLAGS_MAINT_APPEND DEB_CXXFLAGS_MAINT_APPEND
 
 ifeq ($(DEB_HOST_ARCH),mips)

Reply to: