Bug#1101547: webkit2gtk: Please build with -mlarge-data and -mlarge-text on alpha

John Paul Adrian Glaubitz glaubitz at physik.fu-berlin.de
Sat Mar 29 07:20:05 GMT 2025


Source: webkit2gtk
Version: 2.48.0-1
Severity: normal
Tags: patch
User: debian-alpha at lists.debian.org
Usertags: alpha
X-Debbugs-Cc: debian-alpha at lists.debian.org

Hi,

webkit2gtk fails to build from source due to overflowing sections
during the linking stage [1]:

Source/WTF/wtf/CMakeFiles/WTF.dir/./DateMath.cpp.o: in function `_GLOBAL__sub_I_DateMath.cpp':
./build-soup3/./Source/WTF/wtf/DateMath.cpp:104:(.text.startup._GLOBAL__sub_I_DateMath.cpp+0x8): relocation truncated to fit: GPREL16 against symbol `WTF::weekdayName' defined in .bss._ZN3WTF11weekdayNameE section in Source/WTF/wtf/CMakeFiles/WTF.dir/./DateMath.cpp.o
Source/WTF/wtf/CMakeFiles/WTF.dir/./DateMath.cpp.o: in function `__static_initialization_and_destruction_0':
./build-soup3/./Source/WTF/wtf/DateMath.cpp:105:(.text.startup._GLOBAL__sub_I_DateMath.cpp+0x24): relocation truncated to fit: GPREL16 against symbol `WTF::monthName' defined in .bss._ZN3WTF9monthNameE section in Source/WTF/wtf/CMakeFiles/WTF.dir/./DateMath.cpp.o
./build-soup3/./Source/WTF/wtf/DateMath.cpp:106:(.text.startup._GLOBAL__sub_I_DateMath.cpp+0x54): relocation truncated to fit: GPREL16 against symbol `WTF::monthFullName' defined in .bss._ZN3WTF13monthFullNameE section in Source/WTF/wtf/CMakeFiles/WTF.dir/./DateMath.cpp.o
collect2: error: ld returned 1 exit status

This can be fixed by passing -mlarge-data and -mlarge-text to gcc:

--- debian/rules.orig   2025-03-14 23:12:01.000000000 +0100
+++ debian/rules        2025-03-27 10:18:12.936034298 +0100
@@ -63,6 +63,10 @@
 # Don't build with -gsplit-dwarf (see #1016936)
 EXTRA_CMAKE_ARGUMENTS += -DDEBUG_FISSION=OFF
 
+ifneq (,$(filter $(DEB_HOST_ARCH),alpha))
+       CPPFLAGS += -mlarge-data -mlarge-text
+endif
+
 # Use the CLoop Javascript interpreter and disable the JIT. This is
 # slow but it is the most compatible solution for old (non-SSE2) CPUs.
 ifneq (,$(filter $(DEB_HOST_ARCH),i386))

Could you patch debian/rules as shown above to adjust CPPFLAGS on alpha?

Thanks,
Adrian

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
-------------- next part --------------
--- debian/rules.orig	2025-03-14 23:12:01.000000000 +0100
+++ debian/rules	2025-03-27 10:18:12.936034298 +0100
@@ -63,6 +63,10 @@
 # Don't build with -gsplit-dwarf (see #1016936)
 EXTRA_CMAKE_ARGUMENTS += -DDEBUG_FISSION=OFF
 
+ifneq (,$(filter $(DEB_HOST_ARCH),alpha))
+	CPPFLAGS += -mlarge-data -mlarge-text
+endif
+
 # Use the CLoop Javascript interpreter and disable the JIT. This is
 # slow but it is the most compatible solution for old (non-SSE2) CPUs.
 ifneq (,$(filter $(DEB_HOST_ARCH),i386))


More information about the Pkg-webkit-maintainers mailing list