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

Bug#1032404: webkit2gtk: Please add m68k to the list of architectures with limited address space



Source: webkit2gtk
Version: 2.38.5-1
Severity: normal
Tags: patch
User: debian-68k@lists.debian.org
Usertags: m68k
X-Debbugs-Cc: debian-68k@lists.debian.org

Hi!

webkit2gtk needs to built with reduced optimizations on m68k for the build to
succeed as gcc runs out of memory at some point.

Thus, please add m68k to the following list of architectures in debian/rules:

--- debian/rules.orig   2023-02-15 18:10:55.000000000 +0100
+++ debian/rules        2023-03-06 07:45:52.437878152 +0100
@@ -63,7 +63,7 @@
 endif
 
 # Lower memory requirements on architectures with only 2 GB address space
-ifneq (,$(filter $(DEB_HOST_ARCH),mips mipsel sh4))
+ifneq (,$(filter $(DEB_HOST_ARCH),m68k mips mipsel sh4))
        CFLAGS := $(CFLAGS:-g1=-g0)
        CFLAGS := $(CFLAGS:-O2=-Os)
        CPPFLAGS += --param ggc-min-expand=10

I'm also attaching a patch.

Note: There is a second issue on m68k which makes the build fail due to incorrect
      alignment. This issue will be addressed in a different manner hopefully soon
      by switching the default alignment on m68k to 32 bits.

Adrian

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
--- debian/rules.orig	2023-02-15 18:10:55.000000000 +0100
+++ debian/rules	2023-03-06 07:45:52.437878152 +0100
@@ -63,7 +63,7 @@
 endif
 
 # Lower memory requirements on architectures with only 2 GB address space
-ifneq (,$(filter $(DEB_HOST_ARCH),mips mipsel sh4))
+ifneq (,$(filter $(DEB_HOST_ARCH),m68k mips mipsel sh4))
 	CFLAGS := $(CFLAGS:-g1=-g0)
 	CFLAGS := $(CFLAGS:-O2=-Os)
 	CPPFLAGS += --param ggc-min-expand=10

Reply to: